<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Heroku &#8211; Sumanas Tech</title>
	<atom:link href="https://www.sumanastech.com/category/heroku/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.sumanastech.com</link>
	<description></description>
	<lastBuildDate>Tue, 08 Jan 2019 11:51:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://www.sumanastech.com/wp-content/uploads/2025/03/sumanas-logo-square.png</url>
	<title>Heroku &#8211; Sumanas Tech</title>
	<link>https://www.sumanastech.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>This is how Heroku works!!</title>
		<link>https://www.sumanastech.com/this-is-how-heroku-works/</link>
					<comments>https://www.sumanastech.com/this-is-how-heroku-works/#respond</comments>
		
		<dc:creator><![CDATA[sumanasweb]]></dc:creator>
		<pubDate>Tue, 08 Jan 2019 11:51:48 +0000</pubDate>
				<category><![CDATA[Heroku]]></category>
		<category><![CDATA[how]]></category>
		<category><![CDATA[works]]></category>
		<guid isPermaLink="false">https://www.sumanastech.com/?p=1338</guid>

					<description><![CDATA[Heroku is nothing but a popular Cloud platform called Platform of Service (PaaS). This helps you to deploy, run and manage applications written in open languages and frameworks such as Ruby, Node.js, Java, Python, Clojure, Scala, Go and PHP. To deploy your code you can make use of popular developer tools like git, GitHub, and [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><span style="font-weight: 400;">Heroku is nothing but a popular Cloud platform called Platform of Service (PaaS). This helps you to deploy, run and manage applications written in open languages and frameworks such as Ruby, Node.js, Java, Python, Clojure, Scala, Go and PHP. </span></p>
<p><span style="font-weight: 400;">To deploy your code you can make use of popular developer tools like git, GitHub, and Docker using a single command. </span></p>
<p><span style="font-weight: 400;">If you aren’t aware of how a Heroku works, then this blog is definitely for you!</span></p>
<p><span style="font-weight: 400;">Here we have listed out how the Heroku actually works!</span></p>
<p><b>Heroku- The Cloud Application</b></p>
<p><span style="font-weight: 400;">An application is a collection of source code which is written any of the above-stated languages. </span></p>
<p><span style="font-weight: 400;">In each language, the dependency platform varies, such as Ruby you use a Gemfile, in Python a requirements.txt, in Node.js a package.json, in Java a pom.xml and so on.</span></p>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-1339" src="https://sumanastech.com/wp-content/uploads/2019/01/11-1-1.jpg" alt="Heroku- The Cloud Application" width="700" height="350" srcset="https://www.sumanastech.com/wp-content/uploads/2019/01/11-1-1.jpg 700w, https://www.sumanastech.com/wp-content/uploads/2019/01/11-1-1-300x150.jpg 300w" sizes="(max-width: 700px) 100vw, 700px" /><span style="font-weight: 400;">The source code of your application along with the dependency file will help you to build the Heroku platform.</span></p>
<p><b>Knowing what should be executed</b></p>
<p><span style="font-weight: 400;">When you want to run the applications on Heroku, you don’t need to make any changes to them.</span></p>
<p><span style="font-weight: 400;">If you are using some established framework, Heroku can figure it out. For example, in </span><b>Ruby on Rails</b><span style="font-weight: 400;">, it’s typically the </span><b>rails server</b><span style="font-weight: 400;">, in </span><b>Django</b><span style="font-weight: 400;">, it’s </span><b>python &lt;app&gt;/manage.py runserver</b><span style="font-weight: 400;"> and in </span><b>Node.js</b><span style="font-weight: 400;"> it’s the main field in </span><b>package.json.</b></p>
<p><span style="font-weight: 400;">But for other applications, you need to declare what needs to be executed. You do this in a text file that accompanies your source code &#8211; a Procfile. Each line declares a process type that is: a named command that can be executed against your built application. </span></p>
<p><b>Deploying the Applications:</b></p>
<p><span style="font-weight: 400;">You can make use of Git which is a powerful, distributed version control system that many developers use to manage and version source code. Even the Heroku uses Git platform to deploy the applications. </span></p>
<p><span style="font-weight: 400;">Whenever you create an application in Heroku, it gets associated with a new Git Remote which is named as Heroku, with the local Git repository for your application.</span></p>
<p><span style="font-weight: 400;">One of the ways to deploy your application is by:</span></p>
<p><b>$ git push heroku master</b></p>
<p><span style="font-weight: 400;">There are many other ways which can also be used to deploy your applications. </span></p>
<p><b>Building Applications</b></p>
<p><span style="font-weight: 400;">Whenever the Heroku platform receives the application source, it initiates a build of the source application. The application which is built is language specific but it follows the same pattern, by retrieving the specific dependencies and creating assets. </span></p>
<p><span style="font-weight: 400;">Slug is nothing but the composition of your 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.</span></p>
<p><b>Running Applications on Dynos</b></p>
<p><span style="font-weight: 400;">Heroku executes applications which are running the command which you have specified in Procfile.</span></p>
<p><span style="font-weight: 400;">Basically, if you deploy an application for the first time, Heroku will run 1 web dyno automatically.</span></p>
<p><b>HTTP Routing</b></p>
<p><span style="font-weight: 400;">Depending on the type of your dyno formation, some of your dynos will be running the command associated with the web process type, and some will be running other commands associated with other process types.</span><span style="font-weight: 400;"><br />
</span><span style="font-weight: 400;"><br />
</span><span style="font-weight: 400;">The dynos which run process types named web are different in one way from all other dynos &#8211; they will receive HTTP traffic. Heroku’s HTTP routers distributes the incoming requests for your application across your running web dynos.</span><span style="font-weight: 400;"><br />
</span><span style="font-weight: 400;"><br />
</span><span style="font-weight: 400;">So to scale an app’s capacity to handle web traffic involves scaling the number of web dynos:</span><span style="font-weight: 400;"><br />
</span><span style="font-weight: 400;"><br />
</span><b>heroku ps: scale web+5</b></p>
<p><span style="font-weight: 400;">A random selection algorithm is basically used for HTTP request load balancing across web dynos &#8211; and this routing handles both HTTP and HTTPS traffic. Added, it also supports multiple simultaneous connections, as well as timeout handling.</span></p>
<p><b>Conclusion</b></p>
<p><span style="font-weight: 400;">The above concepts can be summed together into two buckets: Those which involve the deployment and deployment of the application and on the other end which involves the run time operation of the Heroku platform and the application after it is deployed.</span></p>
<p><span style="font-weight: 400;">If you have any interesting information to make this more clear, you can jot down your comments in the comments section below.</span></p>
<p><span style="font-weight: 400;">Thanks for reading!!</span></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sumanastech.com/this-is-how-heroku-works/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
