Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

ruby
web servers
web development

Ruby Web Server Technologies

Educative Answers Team

Ruby Web Servers

Ruby has a number of different technologies designed for deploying web servers. Even though it is also possible to program one’s own server, these technologies offer scalable and secure solutions for most situations.

svg viewer

Phusion Passenger

The Phusion Passenger is a free web server technology designed to directly integrate with Apache and NGINX web servers. However, it can also be run on its own.

widget

Passenger can host multiple applications on a single server. It is designed to be immune to Slowloris attacksallows a single machine to take down another machine’s web server, which take up server resources. Passenger, being the go-to server for Ruby, has a large amount of online support, and a multi-process, single-threaded mode in its free version. However, more advanced features like concurrency and multithreading are only available in its paid version.

Puma

Puma is a Ruby web server designed to work exclusively with Ruby’s Rack interface. Puma was designed for maximum efficiency in speed and memory usage.

widget

Puma makes use of very few resources due to their philosophy. With its multiple options of modes and minimum and maximum amountx of threads for operation, Puma offers a versatile solution to web development. Puma also works well with JRuby. To help with multiple applications, Puma has a tool called Jungle.

Unicorn

Unicorn is an open-source web server technology designed to work with Ruby.

widget

Unicorn does not offer multi-threading capabilities. Instead, it makes use of a process model that spawns and monitors worker processes and kills those that take too much time or have memory issues. Unicorn uses the operating system for load-balancing and allows rolling rollouts where updates can be deployed without breaking active connections; thus, minimizing downtime.

RELATED TAGS

ruby
web servers
web development
Copyright ©2022 Educative, Inc. All rights reserved
RELATED COURSES

View all Courses

Keep Exploring