Skip to Main Content
Heroku: Up and Running
book

Heroku: Up and Running

by Neil Middleton, Richard Schneeman
November 2013
Intermediate to advanced content levelIntermediate to advanced
100 pages
2h 36m
English
O'Reilly Media, Inc.
Content preview from Heroku: Up and Running

Chapter 2. How Heroku Works

At the time of writing, Heroku has had over three million separate applications deployed on its infrastructure, and this number grows day by day. Running a large number of applications day to day requires a substantially different approach than running just a handful, and this is one of the reasons that the Heroku architecture is markedly different from what you or I might develop if we were setting up our own environment on our own hardware for a single application. Heroku’s task is to support the running of all of these applications at the same time, managing the deployments that users are requesting, as well as scaling applications’ needs.

In order to achieve this, the Heroku platform is broken up into several key segments; the most important among these are:

  • Routers, which ensure your application receives the requests from users on the Web
  • Dynos, where your application code actually runs day to day

In addition to these, there are a number of extra components, such as the Logplex and the various add-ons and services available to your applications (see Figure 2-1).

So, let’s walk through all of these parts in turn.

What Is a Dyno?

When you deploy an application to Heroku, it is run in a container called a dyno. The more dynos your app has, the more running instances of your application are available to take requests. Each dyno is completely isolated from other dynos. You can add dynos to extend capacity and to allow for fault tolerance (since one dyno ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Heroku Cloud Application Development

Heroku Cloud Application Development

Anubhav Hanjura
Professional Heroku Programming

Professional Heroku Programming

Chris Kemp, Brad Gyger

Publisher Resources

ISBN: 9781449341381Errata Page