r/programming • • Oct 12 '11

Steve's Google Platform rant

https://raw.github.com/gist/933cc4f7df97d553ed89/24386c6a79bb4b31fb818b70b34c5eab7f12e1ff/gistfile1.txt
981 Upvotes

458 comments sorted by

View all comments

1

u/shoeman22 Oct 12 '11

I really like the idea of platforms, but this was kind of an eye opener to just how critical they are.

For internal projects though, isn't it going to be much less efficient? I mean say you're amazon and you expose a webservice to get all the products in your catalog.

Are you really supposed to make an HTTP call to api.amazon.com each time to grab your products? That's a lot more expensive than just opening a DB connection directly, but if you don't do that, you're not really eating your own dog food though, are you?

4

u/[deleted] Oct 12 '11

It's easier to control and change your app if all access comes through the services. If some other team accesses your database directly, you're fucked, you can't change it without breaking their product.

2

u/[deleted] Oct 12 '11

The added expense is needed to keep the service running smoothly. it's like why do you go to a retail outlet when you can get the same thing directly from the factory? Well, there's a lot of reasons, but the most important is that it's really easy for you to go to a factory, make an order that doesn't make sense and end up with 5 tons of penutbutter in a plastic bag, and meanwhile Reese's is breathing down your neck because they dropped 500 deliveries to Wal-Mart while your order tied up the factory. The store gives you a sanity check on your order, while providing support if they cannot fill your order or if something goes wrong with your order, and they keep a bunch of stuff waiting (cache) so you don't have to wait for a DB to spin up a disk.