Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Heroku: Use Unicorn to Add Concurrency to Rails Apps

DZone's Guide to

Heroku: Use Unicorn to Add Concurrency to Rails Apps

· Cloud Zone ·
Free Resource

Site24x7 - Full stack It Infrastructure Monitoring from the cloud. Sign up for free trial.

Over at the Heroku blog, the team published a tutorial for improving performance of Rails apps by using a concurrent server.  In this case, they focused on Unicorn , which is an "HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels."

You can find the full tutorial for adding concurrency to Rails apps on Heroku by checking out the original post.   Here's a little more information on what you'll find there:

If you are running Ruby on Rails with Thin, or another single-threaded server, you may be seeing bottlenecks in your application. These servers only process one request at a time and can cause unnecessary queuing. Instead, you can improve performance by choosing a concurrent server such as Unicornwhich will make your app faster and make better use of your system resources. In this article we will explore how Unicorn works, how it gives you more processing power, and how to run it on Heroku.



 

Site24x7 - Full stack It Infrastructure Monitoring from the cloud. Sign up for free trial.

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}