See more Heroku articles on AOD.

Powered by
Share this page on
Article provided by Wikipedia

( => ( => ( => Heroku [pageid] => 19127434 ) =>
Heroku, Inc.
Industry "Cloud "platform as a service
Founded 2007 (2007)
Founder James Lindenbaum, Adam Wiggins, Orion Henry
Headquarters "San Francisco, "California
Key people
"Tod Nielsen (Former CEO)
Products Heroku Platform, Heroku Postgres, Heroku Redis, Heroku Enterprise, Heroku Teams, Heroku Connect, Heroku Elements
"Parent "

Heroku is a cloud "Platform-as-a-Service (PaaS) supporting several "programming languages that is used as a web application deployment model. Heroku, one of the first "cloud platforms, has been in development since June 2007, when it supported only the "Ruby programming language, but now supports "Java, "Node.js, "Scala, "Clojure, "Python, "PHP, and "Go.[1][2] For this reason, Heroku is said to be a "polyglot platform as it lets the developer build, run and scale applications in a similar manner across all the languages. Heroku was acquired by " in 2010.[3]



Heroku was initially developed by James Lindenbaum,[4] Adam Wiggins,[5] and Orion Henry[6] for supporting projects that were compatible with the Ruby programming platform known as "Rack.[7] The prototype development took around six months. Later on, Heroku faced drawbacks because of lack of proper market customers as many app developers used their own tools and environment.["citation needed] In Jan 2009 a new platform was launched which was built almost from scratch after a three-month effort. In October 2009, Byron Sebastian joined Heroku as CEO.[8] On December 8, 2010, acquired Heroku as a wholly owned subsidiary of On July 12, 2011, "Yukihiro "Matz" Matsumoto, the chief designer of the "Ruby programming language, joined the company as Chief Architect, Ruby.[9] That same month, Heroku added support for "Node.js and "Clojure. On September 15, 2011, Heroku and "Facebook introduced Heroku for Facebook.[10] At present Heroku supports "MongoDB and "Redis databases[11][12] in addition to its standard "PostgreSQL.[13]


The name "Heroku" is merger of "heroic" and "haiku".[14][15] The Japanese theme is a nod to "Matz for creating Ruby. The creators of Heroku did not want the name of their project to have a particular meaning, in Japanese or any other language, and so chose to invent a name.


A diagrammatic view of the working of Heroku Platform

Applications that are run from the Heroku server use the Heroku "DNS Server to direct to the application domain (typically ""). Each of the application containers,[16] or dynos,[17] are spread across a "dyno grid" which consists of several servers. Heroku's "Git server handles application repository pushes from permitted users.[18][19]

The working can be summarized into two major categories:



A detailed description of the architecture involves-

The definition of the application i.e. the source code and the description is built on the framework provided by Heroku which converts it into an application. The dependency mechanisms vary across languages: for Ruby the developer uses a "Gemfile, in Python a requirements.txt, in Node.js a package.json, in Java a pom.xml, and so on.

Developers don’t need to make many changes to an application in order to run it on Heroku. One requirement is informing the platform as to which parts of the application are runnable. This is done in a Procfile, a text file that accompanies the source code.[22] Each line of the Procfile declares a process type — a named command that can be executed against the built application.

Application development on Heroku is primarily done through git. The application gets a new git remote typically named as Heroku along with its local git repository where the application was made. Hence to deploy heroku application is similar to using the git push command.

There are many other ways of deploying applications too. For example, developers can enable GitHub integration so that each new pull request is associated with its own new application, which enables all sorts of continuous integration scenarios. Dropbox Sync lets developers deploy the contents of "Dropbox folders to Heroku, or the Heroku API can be used to build and release apps.

Deployment then, is about moving the application from a local system to Heroku.

The mechanism for the build is usually different for different languages, but follows the consistent pattern of retrieving the specified dependencies, and creating any necessary assets (whether as simple as processing style sheets or as complex as compiling code).The source code for the application, together with the fetched dependencies and output of the build phase such as generated assets or compiled code, as well as the language and framework, are assembled into a slug.

Applications in Heroku are run using a command specified in the Procfile, on a dyno that’s been preloaded with a prepared slug (in fact, with the release, which extends the slug, configuration variables and add-ons).

It's like running dyno[21] as a lightweight, secure, "virtualized Unix container that contains the application slug in its file system. Heroku will boot a dyno, load it with the slug, and execute the command associated with the web process type in the Procfile. Deploying a new version of an application kills all the currently running dynos and starts new ones (with the new release) to replace them, preserving the existing dyno formation.

A customization of the existing configuration is possible as the configuration is done not within the code but in a different place outside the source code. This configuration is independent of the code currently being run. The configuration for an application is stored in config vars.

At runtime, all of the config vars are exposed as environment variables so they can be easily extracted programatically. A Ruby application deployed with the above config var can access it by calling ENV["ENCRYPTION_KEY"]. All dynos in an application will have access to exactly the same set of config vars at run-time.

The combination of slug and configuration is called a release. Every time a new version of an application is deployed, a new slug is created and release is generated.

As Heroku contains a store of the previous releases of the application, it’s designed to make it easier to roll back and deploy a previous release. A release, then, is the mechanism behind how Heroku lets the developer modify the configuration of the application (the config vars) independently of the application source (stored in the slug) — the release binds them together. Whenever the developer changes a set of config vars associated with the application, a new release will be generated.

Dyno manager help maintain and operate the dynos created. Because Heroku manages and runs applications, there’s no need to manage operating systems or other internal system configuration. One-off dynos can be run with their input/output attached to the local terminal. These can also be used to carry out admin tasks that modify the state of shared resources, for example database configuration, perhaps periodically through a scheduler.

Dynos do not share file state, and so add-ons that provide some kind of storage are typically used as a means of communication between dynos in an application. For example, Redis or Postgres could be used as the backing mechanism in a queue; then dynos of the web process type can push job requests onto the queue, and dynos of the queue process type can pull jobs requests from the queue. Add-ons are associated with an application, much like config vars, and so the earlier definition of a release needs to be refined. A release of the applications is not just the slug and config vars; it’s the slug, config vars as well as the set of provisioned add-ons.

Heroku treats logs as streams of time-stamped events, and collates the stream of logs produced from all of the processes running in all dynos, and the Heroku platform components, into the Logplex- a high-performance, real-time system for log delivery. Logplex keeps a limited buffer of log entries solely for performance reasons.

Heroku’s HTTP routers distribute incoming requests for the application across the running web dynos. A random selection algorithm is used for HTTP/HTTPS request load balancing across web dynos. It also supports multiple simultaneous connections, as well as timeout handling.


The Heroku Platform
The Heroku network runs the customer's apps in virtual containers which execute on a reliable runtime environment, heroku calls these containers Dynos. These Dynos can run code written in Node, Ruby, PHP, Go, Scala, Python, Java, Clojure. Heroku also provides custom buildpacks with which the developer can deploy apps in any other language. Heroku lets the developer scale the app instantly just by either increasing the number of dyno or by changing the type of dyno the app runs in.
Heroku Postgres
Heroku Postgres is the "Cloud database (DBaaS) service form Heroku based on "PostgreSQL. Heroku Postgres provides features like continuous protection, rollback and high availability and also forks, followers and dataclips
Heroku Redis
Heroku Redis is the customized "Redis from Heroku to provide a better developer experience, it is fully managed and is provided as a service by Heroku. It helps in managing instances with a CLI, associate data with Postgres to gain business insights using SQL tools and lets customer gain performance visibility
Heroku Teams
Heroku Teams is a team management tool which provides collaboration and controls to bring customer's developers, processes and tools together in order to build better software. With Heroku Teams, teams can self-organize, add and manage members, get fine grained control with app-level permissions and also use collaboration tools like Heroku Pipelines. It also provides delegated administration and centralized billing.
Heroku Enterprise
Heroku Enterprise provides services to large companies which help them to improve collaboration among different teams. It provides a set of features like fine grained access controls, identity federation and private spaces, to manage their enterprise application development process, resources and users.
Heroku Connect
Heroku Connect lets users to Heroku apps that can easily integrate with "Salesforce deployments at scale. This is done by having a seamless data synchronization between Heroku Postgres databases and Salesforce organizations
Heroku Elements
Heroku Elements provides users with Add-ons -Tools and services for developing, extending, and operating the app , Buildpacks-Buildpacks automate the build processes for the preferred languages and frameworks and Buttons -one-click provision, configure and deploy third party components, libraries and pattern app.

See also[edit]


  1. ^ "Heroku". Crunchbase. Retrieved March 2, 2016. 
  2. ^ "About Heroku". Stack Overflow. Retrieved March 2, 2016. 
  3. ^ Bay Area mergers and acquisitions, Dec. 13 (news article), SF Gate 
  4. ^ "James Lindenbaum - Founder @ Heavybit - crunchbase". Retrieved 22 October 2016. 
  5. ^ "Adam Wiggins". Retrieved 22 October 2016. 
  6. ^
  7. ^ Ruby on Rails Startup Heroku Gets $3 Million, Tech Crunch, 2008-05-08 
  8. ^ SourceLabs' Byron Sebastian Joins Heroku as CEO, Venture Beat, 2009-10-14 
  9. ^ Ruby’s Creator, Matz, Joins Heroku (article), Ruby Inside, 2011-07-12 
  10. ^ Facebook Partners With Heroku to Offer Developers Free Sample Application Hosting, Social Times 
  11. ^ "Six Things to Consider When Using Redis on Heroku". Redis Labs. Retrieved March 2, 2016. 
  12. ^ NoSQL, Heroku, and You (weblog), Heroku, 2010-07-20 
  13. ^ "Rails Heroku Tutorial". RailsApps Project. Retrieved March 2, 2016. 
  14. ^ "The term is merger of "Hero" and "Haiku". | Hacker News". Retrieved 2016-08-05. 
  15. ^ "Douglas Drumond's answer to What does Heroku mean? - Quora". Retrieved 2016-08-05. 
  16. ^ "What is application containerization (app containerization)? - Definition from". Retrieved 22 October 2016. 
  17. ^ "Dynos and the Dyno Manager - Heroku Dev Center". Retrieved 22 October 2016. 
  18. ^ "Scalability: How does Heroku work? - Quora". Retrieved 22 October 2016. 
  19. ^ "Deploying Node.js Apps on Heroku - Heroku Dev Center". Retrieved 22 October 2016. 
  20. ^ "Heroku Working Model". 
  21. ^ a b Heroku Cloud Application Development. Packt Publishing Ltd. 2014. 
  22. ^ "Process Types and the Procfile - Heroku Dev Center". Retrieved 22 October 2016. 

External links[edit]

) )