News for hackers. Stuff that matters.
Re:Heroku Isn't for Idiots by pbiggar on Thursday August 30, 2012 @08:14PM (#4457559)
I love this post, and hope it keeps coming up. Some day, developers will learn that even though they could do it as well as Heroku, given enough time and effort, it's just a lot cheaper not to!

This comes up all the time with my company. We make hosted Continous Integration (https://circleci.com), and often hear "can't I just set up Jenkins?". And the answer is the same, "you could, but ...". Run it on EC2, where your tests fail because the IO is bad? What about when three people push at once and you want to get results ASAP? Are you going to manually compile Postgres 9.1? And again when you add a second box to you cluster?

I could go on.

Re:Heroku Isn't for Idiots by aaronblohowiak on Thursday August 30, 2012 @08:30PM (#4457598)
... except heroku doesn't do multi-region, which is where things start getting tricky. They make the easy immediate, but haven't really tackled the hard (yet.)
Re:Heroku Isn't for Idiots by MattRogish on Thursday August 30, 2012 @11:28PM (#4458129)
We use heroku, and every now and again that terrifies us. I'm not sure which will come first: Heroku going multi-region, or us having an outage due to another AWS problem and switching providers.

:fingers crossed:

Re:Heroku Isn't for Idiots by batista on Friday August 31, 2012 @02:38PM (#4461053)
>or us having an outage due to another AWS problem and switching providers.

Why, because the other providers (or a roll-your-own solution) will not have outages?

Or because the customers cannot tolerate even the more or less half a day of outage per year AWS has?

Even critical businesses like banking have work stoppages far more often than that for tons of reasons, in both the physical world and the digital/networked one.

Re:Heroku Isn't for Idiots by calinet6 on Friday August 31, 2012 @09:07AM (#4459502)
Good to know Circle is running on Heroku. At least now we'll know why our CI isn't up when there's another lightning storm in North Carolina.

Heroku does make a lot of sense: it's an abstraction. You're using a system designed to do a lot of the heavy lifting so you don't have to deal with those details, and for many startups and small operations, it's a great value proposition.

But you have to admit that it is only a value proposition; and fundamentally a tradeoff. The truth is, especially from the perspective of a seasoned operations manager, all of the things above are just not that hard, nor are any of the complaints outlined in the OP article.

The more layers you put between you and your infrastructure, the harder it will be to control your availability. When EBS's start failing and you have no idea why and Amazon only shows a green dot on their status page with a cryptic message like "minor availability issues experienced in certain availability zones; investigating." Now that is hard.

Cloning a server and keeping a mirrored backup in another data center if you really need the availability? On hardware you have full control over? Not that hard. http://whoownsmyavailability.com/

Re:Heroku Isn't for Idiots by Deinumite on Thursday August 30, 2012 @10:46PM (#4457994)
I tried out Circle CI... I have some feedback if you want.

First the UI could use some work, but it was really awesome seeing it pull down a Flask app and knowing to activate venv and install pip.

Also, not having an option to delete your account is a bit scary, seeing as I'm part of an organization on github and not comfortable with you having access to that code.

Re:Heroku Isn't for Idiots by pbiggar on Thursday August 30, 2012 @11:05PM (#4458056)
Cool, thanks for trying! The UI could definitely use work, and we're working on it.

There is an option to delete your account. One option is to contact us (I know, that's not great, but we delete same day). The other option is to rip out Circle's authentication via GitHub, if you're worried about us doing it properly.

Re:Heroku Isn't for Idiots by jordanthoms on Friday August 31, 2012 @04:25AM (#4458806)
Hey, BTW the join using github button at the bottom of the page doesn't work (links to undefined), the one at the top does. Probably want to fix that :)
Re:Heroku Isn't for Idiots by pbiggar on Friday August 31, 2012 @02:32PM (#4461022)
Cool, thanks!
Re:Heroku Isn't for Idiots by heretohelp on Thursday August 30, 2012 @08:57PM (#4457681)
The persistence scaling story for Heroku seems pretty questionable to me. Once you've maxed out what they offer for MySQL and Postgres, what exactly are you supposed to do? Start using EC2 RDS?

Heroku seems to be like a more useful Google App Engine, a good place to host a blog or experimental project if you're not into dev-ops.

If you have a knack (at all) for dev-ops, you're not saving yourself anything.

The downtime is pretty bleh too. The moment you start doing multi-provider to offset this, you'll end up doing all the dev-ops work you would've had to have done before. Except now, you have to do it all at once in a time of what is probably high stress.

If you do the dev-ops/automation yourself from the start, you can start small/simple and grow that as you go, deploying your services to arbitrary hosting providers (EC2, Linode, dedicated boxes, whatever).

This is why whenever anybody asks me my opinion of Heroku, I respond, "it's a great place to host that blog engine you wrote in Haskell/Clojure/{hipster_language_of_choice}".

Re:Heroku Isn't for Idiots by rapind on Friday August 31, 2012 @12:14AM (#4458235)
There are definitely reasons that you would want to be on your own managed metal infrastructure, but let's not exaggerate so much and say that it's only use is for blogs and experimental projects. Why do people have to always be so extreme to try and make a point?

There are a ton of real sites that never see more than a couple hundred thousand visitors a month. E-commerce sites, mobile APIs, SAAS apps, etc. I've used Heroku for higher traffic sites than this without any issues at all. Incredibly easy actually.

Saying it's only good for your hipster blog? C'mon man really? Have you even done anything commercial / critical on their platform?

Re:Heroku Isn't for Idiots by wisty on Friday August 31, 2012 @01:43AM (#4458443)
So Heroku is good for higher margin sites. You couldn't run Facebook, because the value of each customer is marginal, and they are expensive customers.

You could host a B2B app no problem, because they are paying (high margin) customers, and will probably not use too many resources.

Re:Heroku Isn't for Idiots by dasil003 on Friday August 31, 2012 @04:21AM (#4458798)
No platform could run Facebook. There is a certain scale where you have to do it yourself because no one else has done it that way before.
Re:Heroku Isn't for Idiots by j-kidd on Thursday August 30, 2012 @09:22PM (#4457734)
> The persistence scaling story for Heroku seems pretty questionable to me.

Agree. Those people who tell horror stories about Heroku/EC2, usually give solid numbers, i.e. this was how much I spent, this is how much I save by moving away, and our response time is now X% faster.

On the other hand, we have article like this that shows pretty graph for a web app serving 16.2 requests per minute, and make bold claims that everything will scale.

Re:Heroku Isn't for Idiots by benologist on Thursday August 30, 2012 @10:52PM (#4458013)
Here's my pretty graph for serving ~500,000 requests per minute on Heroku:

https://api.playtomic.com/load.html

Savings aren't exclusively because of Heroku, I also switched the underlying architecture during that migration from C# / ASP.NET to NodeJS which is exceptionally well suited to what I'm doing there.

Previously: Dedicated servers, ~$1600 a month

8x dedicated servers at ~$200 each, each running 3 to 5 instances of the API depending on how many IP addresses they were provisioned with. Uploading was done via a simple hand-rolled script that'd just FTP everything to each server.

Now: Heroku, current usage $400 - $500 a month

With Heroku I don't have to worry about concurrent connections (typically 200 - 400 thousand people at once), I don't have to maintain all those servers and I don't have to fuck around with all the stupid things that can go wrong when you're operating at scale.

It was a lot of work to get to this point and I made a lot of mistakes like having a heavy redis pub/sub outside of the EC2 network that cost me $350 in excess bandwidth providing inter-dyno communication, and I saturated database connections lots of times because in the old days those dedicated servers each had a local mongodb which could keep up with ordinary connection pooling, but it was totally worth it.

Re:Heroku Isn't for Idiots by zeeg on Thursday August 30, 2012 @11:07PM (#4458062)
So let's assume thats $500 in dynos, that's approximately 14 dynos. You have 30k concurrent users per dyno using Node.JS?

It's not that I don't believe you, I just think you don't understand what you're saying.

(Actually, it is that I don't believe you)

That said, if this is if you're doing 500 requests/sec (that's very different than 500 concurrent users) per dyno, good for you. My main bottleneck was not so much CPU on the web machines (I hit memory limitations), but the database layer.

Re:Heroku Isn't for Idiots by benologist on Thursday August 30, 2012 @11:26PM (#4458124)
Just over 20,000,000 people hit my API yesterday 700,749,252 times, playing the ~8,000 games my analytics platform is integrated in for a bit under 600 years in total play time. That's just yesterday.

There are lots of different bottlenecks waiting for people operating at scale. Heroku and NodeJS, for my use case, eventually alleviated a whole bunch of them very cheaply.

Re:Heroku Isn't for Idiots by zeeg on Thursday August 30, 2012 @11:30PM (#4458137)
>>> 20000000/24/60/60.0 ~231.46666666666667 requests a second?
Re:Heroku Isn't for Idiots by benologist on Thursday August 30, 2012 @11:34PM (#4458144)
That's people, not requests. :)
Re:Heroku Isn't for Idiots by zeeg on Thursday August 30, 2012 @11:36PM (#4458148)
Is your graph showing concurrent (as in active connection) users?
Re:Heroku Isn't for Idiots by benologist on Thursday August 30, 2012 @11:48PM (#4458177)
The graph shows http requests, each individual person sends 'event.general...' requests approximately 2x per minute.

In the last minute ~460,000 of those requests were made which means somewhere around 230,000 people sent data although there's room for that to be higher or lower depending on sessions starting, sessions ending, and just what period of time you want 'concurrent' to live within.

Re:Heroku Isn't for Idiots by j-kidd on Saturday September 01, 2012 @10:11AM (#4463713)
So, another pretty graph for Heroku, yet no comparison to alternatives due to the total architecture change. The numbers are useless for comparison purpose.
Re:Heroku Isn't for Idiots by heretohelp on Friday August 31, 2012 @01:03AM (#4458330)
Your app isn't "serving" anything up, it's an event API. 100% different use-case than what I was talking about.
Re:Heroku Isn't for Idiots by batista on Friday August 31, 2012 @02:31PM (#4461015)
You keep using that word "serving". I don't think it means what you thing it means. Parent is spot on.
Re:Heroku Isn't for Idiots by heretohelp on Friday August 31, 2012 @04:05PM (#4461457)
>The persistence scaling story for Heroku seems pretty questionable to me.

I said this and was talking exclusively about this. Read my original comment.

Re:Heroku Isn't for Idiots by heretohelp on Thursday August 30, 2012 @09:25PM (#4457743)
>16.2 requests per minute

Was it written in TCL? ;)

Re:Heroku Isn't for Idiots by greghinch on Thursday August 30, 2012 @11:14PM (#4458082)
Just because you can do the devops work doesn't mean that's the best use of your time. Particularly on a small team (or in my current situation, sole developer). Heroku makes a lot of sense in that case. And since for the most part the follow standard development practices, there's little to no lock-in when you actually have the money to hire a sysadmin
Re:Heroku Isn't for Idiots by wmf on Thursday August 30, 2012 @10:18PM (#4457919)
Some people may be defending the Platonic ideal of Heroku (multi-AZ, NewSQL, etc.) rather than Heroku as it stands today.
Re:Heroku Isn't for Idiots by heretohelp on Friday August 31, 2012 @07:34PM (#4462143)
Pretty sure you're right, most seem like they haven't done anything with Heroku than host their 200 uniques a month blog.
Re:Heroku Isn't for Idiots by 1qaz2wsx3edc on Thursday August 30, 2012 @09:25PM (#4457744)
heretotroll: Heroku provides plenty of tunable capacity.
Re:Heroku Isn't for Idiots by heretohelp on Thursday August 30, 2012 @09:29PM (#4457762)
Considering their only support for sharding or replication is their async read-only slaves mechanism, I'm going to assume you don't know what you're talking about and think the difference between "1/10th of an overloaded EC2 machine running postgres" and "a whole slow EC2 machine running postgres" somehow constitutes "scalability".
Re:Heroku Isn't for Idiots by 1qaz2wsx3edc on Friday August 31, 2012 @12:26AM (#4458254)
Cool bro.

Who said I'm using postgres? And if you don't like the postgres setup, sure, roll your own. EC2 has those badass SSD instances for you.

Apps' that need more capacity then what Heroku offers can surely drop the dev-ops dollars. Until then, why waste your time?

Re:Heroku Isn't for Idiots by adgar on Thursday August 30, 2012 @09:26PM (#4457748)
> Heroku seems to be like a more useful Google App Engine, a good place to host a blog or experimental project if you're not into dev-ops.

Considering Heroku is single-homed, I find it hilarious that you say it's less of a toy than GAE.

Re:Heroku Isn't for Idiots by heretohelp on Thursday August 30, 2012 @09:30PM (#4457763)
I was giving it the benefit of the doubt since there wasn't as much platform specific lock-in as GAE.

But yeah, the single-homing is pants-on-head.

Re:Heroku Isn't for Idiots by rbanffy on Thursday August 30, 2012 @09:35PM (#4457783)
> there wasn't as much platform specific lock-in as GAE

You can always host your App Engine application on top of an AppScale or Typhoonae install.

I wish they were easier to set up, but, if your Google bill starts getting high, you can dedicate the resources required to do it. And multi-homing them is a whole different game.