News for hackers. Stuff that matters.
Re:Infrastructure Mistakes Companies Should Avoid by calcsam on Friday September 30, 2016 @01:19AM (#12610639)
There are basically three tiers of startup infrastructure needs, dependent business model. Your decision process should be driven by which one you are operating in.

(1) Consumer ad-supported. Pinterest, Instagram, Buzzfeed, etc.

Your CPM is going to be pretty low, so you probably want to run your own infra -- it's all gonna come down to the margins. Dropbox notably transitioned to running their own infra after years on AWS.

(2) Freemium software with heavy data ingestion needs, eg enterprise messaging or CRM. Slack, Streak, etc.

You have pretty high value per customer, but you still have a ton of data streaming in to your system all the time. Probably use a public cloud provider, but monitor your bill somewhat carefully lest it get out of control.

(3) Typical B2B workflow SaaS, or very high CPM consumer site. Airbnb, Zenefits, Gusto, etc.

You store a relatively low amount of data, on the order of megabytes per customer if not less. Use public cloud infra and make it widely available. Eliminate "how much will this increase our AWS bill" from discussions about eg event sourcing, proposed ML experiments, etc.

Re:Infrastructure Mistakes Companies Should Avoid by reitzensteinm on Friday September 30, 2016 @04:47AM (#12611246)
At my day job, we receive a real money for processing each transaction, which adds maybe 1kb of information to the database. This makes the scaling story laughably easy. By the time we're maxing out the biggest database you can buy, it's IPO time.

For most of my life I worked in games, which is almost the exact opposite problem. Tiny CPMs, insane traffic. Multiple providers of cheap bandwidth have gone bankrupt and left me high and dry; but the savings were worth it, and I continued to chase those deals. It was the right call.

Engineers love to design architecture that (they believe/hope/pray) will scale to Uber sizes. But if you're not having a conversation with the business as to whether that's a sensible goal, it's negligence bordering on fraud. You aren't being paid to needlessly teach yourself cool new technology to solve imaginary problems.

Which is all to say: ignore parent's advice at your peril.

Re:Infrastructure Mistakes Companies Should Avoid by davedx on Friday September 30, 2016 @03:07PM (#12614556)
> it's negligence bordering on fraud

That's the first time I've heard designing scalable software called fraudulent. I'm not sure it means what you think it does. ;)

Re:Infrastructure Mistakes Companies Should Avoid by adamzochowski on Saturday October 01, 2016 @01:06AM (#12616584)
Parent spoke about 'sensible goal' that is needed by business. If engineer delivers something that is not sensible but overengineered, then maybe it could be called fraudulent.

Business needs wheelbarrow, receives a tesla instead.

Re:Infrastructure Mistakes Companies Should Avoid by skuhn on Friday September 30, 2016 @01:49AM (#12610705)
Agreed, there are different solutions that make sense for different businesses. The smaller your margins, the more important it can be to run your own stuff. Or maybe you just want to cut out a layer of someone else's profit from your own revenue to give you more flexibility in your business. If you can get costs to $5/unit at the same margin when everyone else in your industry is $10/unit, that can be a big motivator.

It also depends on how your service is positioned to grow. If you have any sort of reliable, foreseeable growth then you can save money by building infrastructure yourself. You are paying for Amazon's overhead to allow you to spin up any instance anywhere at any time (and there's no guarantee it will really be there) -- even if you're buying hardware 6 months ahead of when you actually need it, as long as you're growing and not missing the mark too badly you can do a better job on cost.

Most importantly: are you planning for success? If you sign a giant customer, will it help you grow your margins by getting you to better economies of scale with your vendors and your expenses? Or will it crush you because now your burn rate just doubled? There are economies of scale available with AWS, but they aren't great and you have to be pretty huge to get anything meaningful.

Two of your examples stuck out to me:

Dropbox was never entirely run in AWS. That complicated things operationally to a degree, but ultimately made it a lot easier to move pieces of the service in or out of AWS as it made financial and technical sense.

Pinterest was built in AWS. Since they waited so long to start seriously considering alternatives, they're in a tough spot. Migrating out will require a substantial capital commitment (not to mention engineering and product commitments), and they'll have to pay for both environments during what is liable to be a lengthy cutover period. You have more resources to leverage, but the scale of the problem just gets harder over time.

Re:Infrastructure Mistakes Companies Should Avoid by xorgar831 on Friday September 30, 2016 @02:42AM (#12610839)
The problem with onsite data centers is that it's rare for the total cost to be tracked effectively, they often don't include salaries for example.

Additionally to say that building something outside of the cloud ensures you're cloud agnostic is too simplistic. There are many more shops that would like to move to the cloud to reduce their costs, but can't due to on-site lock-in. They then run into much more expensive problems around expanding datacenters, network or power limitations, or staffing to maintain physical machines which have real world MTBFs you have to do something about when they fail.

I think the issue isn't as much lock-in as much as apps being designed poorly, reliant on a specific feature that's not necessary, but then means their app will only work in one cloud as a result. However in the cases where there is no way around that feature, then you're getting a huge benefit of an instant solution so you can focus on your product rather than infrastructure. And if that cloud does provide a single killer feature you need, then just run that feature there.

Re:Infrastructure Mistakes Companies Should Avoid by skuhn on Friday September 30, 2016 @02:55AM (#12610875)
I agree that there is no one right answer for all cases. Companies have definitely implemented their own datacenters poorly and been trapped as a result. You can avoid that fate, but you have to hire right and plan right.

In my experience, the difference in personnel between a service built in AWS versus one built in datacenters isn't wildly different. If you have a five person team for the former, you might need a six or seven person team for the latter. You aren't dealing with hardware and vendor problems in AWS necessarily, but it's also not as simple as 'just run your app and forget the rest' (at least once you start to scale up).

Again though, this is if you're smart about how you build the datacenter. There are a lot of tricks of the trade and a bunch of gotchas that aren't necessarily apparent until you've experienced them for yourself. Hiring experience here is the key.

While you don't necessarily want to limit yourself to the lowest common denominator of cloud providers or your own hardware, any time you make use of something unique you need to make a decision. Is it worth getting locked in? What will you do if that solution goes poof in the night?

To use a real recent example: what do you do if AWS runs out of X1 instances and you really really need some more right now to do your work? It sucks to get into a situation where you have no control over the outcome and even money can't fix it, either in your own datacenter or in AWS.

Re:Infrastructure Mistakes Companies Should Avoid by xorgar831 on Friday September 30, 2016 @03:19AM (#12610938)
You just end up wasting your time maintain relationships with hardware vendors, troubleshooting low level issue, upgrading firmware. It wastes a lot of people's time in the company, not just the team, and you're building one off tooling to work with some vendor's half broken management API. No thanks. :)
Re:Infrastructure Mistakes Companies Should Avoid by skuhn on Friday September 30, 2016 @05:19AM (#12611367)
Sure, that happens. If you can save millions of dollars a month and move your business from non-viable to viable, I think it's a good tradeoff. That's what I do for a living, so I see value in it. Not everyone should have to deal with it though.

Also, AWS is not problem free. When low level issues (like a firmware problem) strike, which they sometimes will, you often cannot identify or fix the issue yourself. AWS instances still run on that same shitty hardware, and while your odds are better that Amazon figured out most of the issues before you encountered them, your odds are also worse that they tested your particular special use case.

So you can wind up playing the 'debug by support ticket' game. Check everything on your end. Check your deployment times for correlations to the problem. Finally give up and reach out to AWS support. Insist that the issue isn't on your end. Find out that the issue can't be resolved until their deployment next week. It's all understandable given the scope of what Amazon is doing, but they will never be as incentivized as you are to solve your problem.

Re:Infrastructure Mistakes Companies Should Avoid by xorgar831 on Friday September 30, 2016 @05:47AM (#12611440)
I don't think non-viable to viable is exactly what's going on however, at least in most cases. I think the costs are not being fully understood, the impact to the mindshare of the team, the quality of service and redundancy, the additional headcounts and quirky management code that someone's going to be toiling away on when a cloud provider can handle it at a much lower cost.

Yes, you still have to open tickets, and yes, they still have problems that suck up a lot of time, however they spend the brunt of the time burning folks out fixing those issues, not you. If you talk to folks working with physical systems, that consumes their mindshare to the point that they're not focusing on their core product anymore.

Re:Infrastructure Mistakes Companies Should Avoid by skuhn on Friday September 30, 2016 @05:54AM (#12611468)
> If you talk to folks working with physical systems, that consumes their mindshare to the point that they're not focusing on their core product anymore.

All I can say is, it isn't always the case and it doesn't have to be with the right organizational and design decisions.

Re:Infrastructure Mistakes Companies Should Avoid by coredog64 on Friday September 30, 2016 @08:58AM (#12612159)
That story isn't much different from my interactions with the on premise infrastructure team.
Re:Infrastructure Mistakes Companies Should Avoid by kuschku on Friday September 30, 2016 @05:20AM (#12611371)
Which is why often the best tradeoff can be in colocating in existing datacenters, and just putting a few dozen of your own racks in.

Or in renting dedicated servers.

I’ve done some checks for the same performance between colocating, dedicated, VPS, and stuff like container engine + cloud databases, and with each level of abstraction the cost per month usually goes up by an order of magnitude.

Re:Infrastructure Mistakes Companies Should Avoid by skuhn on Friday September 30, 2016 @05:48AM (#12611443)
Absolutely, there's a whole spectrum of options. "Building a datacenter" doesn't have to mean finding an empty field next to a river. Get a dedicated or shared cage, rent servers, do what fits your needs.

It makes sense that each layer of abstraction costs dramatically more, because these services aren't vertically integrated -- they operate as value adds on top of other services. Heroku runs on AWS who buys server hardware and network hardware from vendors and puts it in racks that sit in buildings operated by datacenter providers who supply power from the electric company.

So when you run something at the abstraction layer of a Heroku dyno, you're contributing to the profit margins of at least:

  1. The actual service you use (Heroku, and Salesforce)
  2. Their instance provider (Amazon)
  3a. (maybe) Their server hardware manufacturer (HP / Dell / Supermicro)
  3b. (maybe) Their network hardware manufacturer (Cisco / Juniper / Arista)
  4a. Their server ODM (Quanta / et. al.)
  5a. Their server components manufacturer (Intel / Hynix / Samsung / HGST / Mellanox / Adaptec / Avago / etc.)
  5b. Their network ODM or ASIC designer (Avago)
  6. (maybe) Their hosting provider (Peer1 or someone)
  7. (maybe) Their retail datacenter provider (Equinix / CoreSite / etc.)
  8. Their wholesale datacenter provider (DuPont Fabros / Digital Realty / etc.)
  9. Their suppliers and contractors (electrical contractors / Square D / security guards /
  10. The electricity and the taxes paid to the municipality
Each of these companies intends to make a profit on the services they provide to the company up the food chain, and that all gets bundled into what you pay.

Sure there are economies of scale here that you can't get, and smart companies are trying to eliminate some of these layers -- but that doesn't necessarily mean you are paying less.

The margins increase as you go up the stack. Electric companies make peanuts for margins (8-10%) compared to a company like Mellanox that makes $1200 network cards (20+%).

But who cares about selling you a $1200 network card when you can charge people $100/mo to use a dyno?

Re:Infrastructure Mistakes Companies Should Avoid by xorgar831 on Friday September 30, 2016 @05:55AM (#12611471)
Right, but you're just offloading lots of the work to staff then. So you prob can do it cheaper, but is is really going to be good? Or just a pile of hackery one guy put together?
Re:Infrastructure Mistakes Companies Should Avoid by dorfsmay on Friday September 30, 2016 @10:17AM (#12612563)
But, similarly, a lot of people new to the clouds thinks that it runs itself and you need zero staff. You still need somebody to set it up for you!