Posted by tobi — 07:48 PM Jun 13
Enjoy the screencast:
Build and deploy a Shopify app in 8 minutes from shopify on Vimeo.
Posted by tobi — 07:48 PM Jun 13
Enjoy the screencast:
Build and deploy a Shopify app in 8 minutes from shopify on Vimeo.
Posted by tobi — 12:51 PM Jun 02
Today marks two events.
First, Shopify was launched exactly 3 years ago. I started hacking on it more than 5 years ago, originally just for myself so that I could sell snowboards online, free from the tyranny of horrible online store software such as Yahoo Stores, but it quickly grew into something much larger. Now we are a profitable multi-million dollar company with one of the best teams in the industry. It’s been an amazing ride, at times a bumpy road but never less than exhilarating.
The other event is the launch of something I’m infinitely excited about: the Shopify Platform. Let me explain. E-commerce is one of those software areas where individualization matters. This has been clear from day one of running Snowdevil and selling our first snowboard. If you build a store on the Internet you are providing a customer experience that is not unlike walking into any physical store in the downtown area of the town you live in. If the floorboards squeak, the wall colors don’t match, if the service is slow or the lighting is off, you will not like the experience. You won’t be back. There will probably be no sale. This goes for online stores as well. An online store must look good because you are building a brand of trust with your client. Poor design begets poor customers and poor customers lead to unsustainable margins. This is the reason I wrote liquid, which allows you to build awesome looking stores on Shopify.
However, there are a lot of common elements to every e-commerce store. There is this small nucleus of core functionality that all software has to provide (and most do). These are things like inventory management, order processing, payment processing, shipping support and so on. Shopify excels at all these things—our customer satisfaction rate is north of 90%. However after you are done with all those features something funny happens. The next feature everyone wants is different for each store. Some people want live auctions, some people want a wholesale area, some people want community forums, license key generation, digital delivery, integrations with MS Commerce Server, Oracle Inventory, international tax form printers, etc.
None of these features is particularly hard to implement. The problem is that they fail our basic test which we use to determine whether we should implement a feature or not: Implement what most people need most of the time.
There is no cheating. Digital delivery is only needed by some people most of the time and international tax form printing is only needed by some people some of the time.
![]()
The trouble is, if we were to add all these features to Shopify, we would simply end up with software like the others on the market; filled to the brim with features that only some people need some of the time. I’m a firm believer that every time you add a feature to you are diminishing all other features. Adding features and especially adding elements to a user interface is not something to take lightly.
So that is the solution. Facebook and Salesforce showed us the way and this is what we are bringing to e-commerce: We are turning Shopify into a development platform and our merchants can supplement the pristine Shopify core with only the additional features they need. E-commerce à la carte.
The Shopify platform allows any programmer to create applications that integrate natively with the administration interface or storefront. These applications can be written in any language and communicate with Shopify using our handcrafted REST API. We even provide some amazing rails generators to get started quickly.
Obviously we need developers to make this happen. Reasons why you should develop for the Shopify Platform:
The sum total is that Shopify is now as extensible as any self hosted Wordpress system but still hosted on a world-class server farm. It’s the best of both worlds and surely will be the way a lot of hosted apps will develop in the coming years.
Exciting times.
Posted by tobi — 10:28 AM May 27
My friends from unspace are putting together FutureRuby, the spiritual successor to Rubyfringe which turned out to be one of the best conferences of last year.
The theme of the conference is obviously the future of ruby but one thing that is clear from the lineup is that the event doesn’t forget that ruby is part of a greater ecosystem and that ruby is as much a language as a mindset.
One great example of this is this workshop which Dan Grigsby is putting together which teaches iPhone development specifically to Ruby developers.
Shopify is shipping 8 people to the conference. Hope to see you there :-)
Posted by tobi — 09:16 PM Mar 18
Ottawa friends of mine launched Gazaro, a really remarkable comparison shopping engine that transcribes a full history of price fluctuations and allows you to see how good of a deal a deal really is.
I’ve been using it for the last few weeks and it really works great, give it a try.
Now to get Shopify’s product base on there…
Posted by tobi — 01:07 PM Dec 20
Posted by tobi — 10:51 PM Dec 12
Facebook’s server installation has been a point of interest for a long time. When an engineer on the memcached mailing list casually mentioned that they are running 4TB worth of caches, a lot of people got their panties in a knot.
Since then Facebook has been more forthcoming with details about their exciting architecture. For example they explained how they created a custom Mysql to solve problems with cross-datacenter cache expiry and replication lag which is a great read for anyone looking into multi location hosting.
Today there was another memcached centric post that talks about their fork of the memcached codebase which they also made available on github.
We use more than 800 servers supplying over 28 terabytes of memory to our users. Over the past year as Facebook’s popularity has skyrocketed, we’ve run into a number of scaling issues. This ever increasing demand has required us to make modifications to both our operating system and memcached to achieve the performance that provides the best possible experience for our users. [...]
Fascinating read.
Posted by tobi — 01:14 PM Nov 15
So there is a lot of talk about Phusion Passenger lately and I feel the need to chime in here. David pointed out that Shopify is running on passenger which is something I announced on Twitter a few months ago.
Some context on Shopify’s installation: We launched Shopify originally on Lighttpd with FastCGI and later migrated to nginx with mongrels. Obviously we had to use HAProxy between Nginx and mongrels to avoid the dreaded “queue behind long running process” problem. We also added Monit to the mix which observed all mongrels to make sure that everything is running according to plan. After a process reaches 260 mb of memory we signal it to shut down after the next request so that a new one can start out with less memory. For this we added runit to the mix which supervises the mongrels and starts them up quickly once they hit the ground.
It’s important to note that we are not talking about a memory leak here. The reason for the 260mb ceiling comes from two issues with Ruby’s garbage collector:
Now why did we switch to Passenger? Simple: the keyword is remove moving parts.
Every additional tool you add will come with it’s own bugs. Many people I talked to over the past years considered haproxy to be the most solid piece of infrastructure in their stack but even there was a really nasty bug recently (search for request queue handling).
We treat our server farm very similar to Shopify’s codebase. We are in this for the long haul and we cannot accept complex solutions when simple ones present themselves. Maintainability of our code and servers is paramount to the long term success of our product. Yes the Mongrel setup worked very well but Passenger allowed us to remove: Nginx, Haproxy, Runit and Monit. That’s a nice refactoring!
At the same time Passenger introduced some tangible improvements. We switched to enterprise ruby to get the full benefit of the COW memory characteristics and we can absolutely confirm the memory savings of 30% some others have reported. This is many thousand dollars of savings even at today’s hardware prices. We allow Passenger to adaptively spawn more processes with demand but most of the time our application servers are running about 40 processes to handle more than a million dynamic requests a day. However, because passenger constantly despawns and respawns rails processes they always stay fresh, run short GC cycles and are generally a lot more responsive. All this means that the total amount of memory that is used by Shopify during normal operations went from average of 9GB to an average of 5GB. We evenly distributed the savings amongst more Shopify processes and more memcached space which moved our average response time from 210ms to 130ms while traffic grew 30% in the last few months.
In conclusion: I cannot see any reason to choose a different deployment strategy at this point. Its simple, complete, fast and well documented.
Posted by tobi — 12:30 PM Nov 07
openvista posted their interview with me in which I talk about entrepreneurship and the early days of Shopify.
Posted by tobi — 02:02 PM Oct 28
InfoQ posted the video to my rockstar memcaching presentation from ruby fringe.
Posted by tobi — 06:08 PM Oct 23
I’ve been playing around with mobile development lately which is a nice change of pace. Before Shopify and Rails I used to count myself amongst the ranks of the C++ desktop developers ( go WTL!! ) so in many ways the concepts of mobile development feel like the good’ old times—without all the things that drive you up the walls.
What’s so fun about it is the innocence of it all. It’s the gold rush all over again. For example that bastard Hampton managed to sell his Wikipedia browser iPedia 50k times. Check out www.mobileorchard.com which just published an interview with him.
Posted by tobi — 02:41 PM Oct 06
Brand and community development where always the guiding principles behind Shopify and today we launched an important aspect of this: Your visitors can now comment on blog posts.
Read more about it on the shopify blog
We will provide an import tool for wordpress and other blogging systems soon (implemented as an open source shopify api app. )
Posted by tobi — 09:54 PM Aug 30
Color me impressed.
Matt Mccray ported Liquid to javascript. Go here to get the gist of it (yea, bad pun)
Pretty awesome work Matt :-)
<script>
Liquid.readTemplateFile = function(path) {
var elem = $(path);
if(elem) {
return elem.innerHTML;
} else {
path +" can't be found."; // Or throw and error, or whatever you want...
}
}
var tmpl = Liquid.parse("{% include 'myOtherTemplate' with current_user %}");
alert( tmpl.render({ current_user:'M@' }));
</script>
<script type="text/liquid" id="myOtherTemplate">
Hello, {{ current_user }}!
</script>
Posted by tobi — 03:14 PM Aug 22
Shopify got profiled last week in Practical E-Commerce as cart of the week . According to them they found 300 different Shopping cart packages, I know our market was big but that’s pretty insane.
Anyways, their Cart of the Week feature pits one Cart against another by asking a competitor to comment on the software, CNN style. In our case they asked Rick Wilson of Miva Merchant to comment on Shopify. Here is what he dislikes:
The obvious weaknesses I saw were the limits on what they called ‘enterprise’ level offering of only 10,000 SKUs. The other major weakness is the product is built using Ruby On Rails. Ruby On Rails seems to be a development environment with a lot of future possibilities, but as a general rule you don’t want your revenue-generating product to be based on cutting edge technology. There’s a lot of unforeseeable pitfalls in that area.
(emphasis mine).
So to deconstruct the first part of this argument let me just say that we have millions of products in Shopify right now and it’s a pure business decision to limit SKUs to 10k and has nothing to do with the software. There are millions of products in the database. In fact i’d buy Rick lunch if Shopify isn’t right now handling twice the traffic any given Miva Merchant store has ever sustained.
What’s left is the advice that you shouldn’t run a revenue-generating web site based on cutting edge technology. I don’t think I have to point out how ridiculous that statement is. First of all I presume that perl was pretty cutting edge ( definitely more than ruby is today ) in 1998 when Miva was written and also we are talking about bloody Miva Merchant here, the e-commerce system that runs on a proprietary closed source database that is known for corruption issues after several hundred products. Not only that, it seems to be one of their main sources of revenue: For 129$ setup + 20$ a month you can get some support and basic database recovery. Unfortunately:
** Due to the nature of database problems not all database corruption can be covered under this package
Isn’t it nice that you never have to worry about such tactics with hosted systems and SaaS packages like Shopify?
Posted by tobi — 05:37 AM Jul 21
I’m back from Rubyfringe which was hands down the best conference i’ve been to.
Pete Forde asked me to present on memcached (mem-cache-dee) after my popular blog article Secret to memcached. The talk covers different use cases such as simple html snippet stores to advanced expiry systems such as generational cache keys.
Every talk at rubyfringe was taped so I’ll update this space with the video once its online. In the meantime enjoy the slides which probably make zero sense on their own.
Download the PDF or watch it on slideshare:
P.S: 30 minute is the ideal length for talks at a Tech Conference.
Update: The video was posted here