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

Production-proven Mesosphere DC/OS is now even better with GPU scheduling, pods, troubleshooting, enhanced security, and over 100+ integrated services deployed in one-click.

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.



 

Simply build, test, and deploy. Mesosphere DC/OS is the best way to run containers and big data anywhere offering production-proven flexibility and reliability.

Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

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

{{ parent.tldr }}

{{ parent.urlSource.name }}