Hello and welcome to this lecture.
This picture harby explaining some of the web server options available to be used for development in
Ruby on Rails a web server is basically a program that uses TTP request.
It's called hypertext transfer protocol to serve the files that form the web page.
So basically when you go to for example you go to Google and typing Google dot com or wherever that
is known as the TTP request.
So a web server physically responds to that request.
If you go in and type in Google dot com or you demi dot com web servers that the artists at the other
end that received that response and then sends you back the answer.
So last.
Basically what the web server does in it not so dedicated computers and appliances can also be referred
to has web servers.
There are different types of web servers.
So what we actually need for development.
We need something that's going to take a request from a user.
And then when they're typing in they request all the ground and then send that request to the rails
application the RIAs application would then return it results to the web server which then gets sent
back to the user who made the request.
So web servers are quite an essential process in your Ruby on Rails development.
If you are using a product on a web server you're probably going to be using a paci too which is a heavy
weights but mainly used for production or Jynx also known as Engine X. So these are the two heavyweights
that you come on to find being used in a production environment.
They are quite robust and have lots and lots of features.
We've also got lightweight servers that can be used in a production environment either to reduce this
stress load on Apache and engine X or just to use it on its own as a web server.
They're not as power not as powerful but can be used.
We've got one called a passenger Phil this is a more lightweight version compared to our patch.
He had engine X and then we've also got another one called unicorn unicorn.
It's also lightweight in the same category as passenger.
However for development purposes from Ruby Ruby prior to Ruby on Rails 5 the can't.
Built in web server code web brick which comes preinstalled.
We've turned Ruby on real installation but things Ruby on Rails 5 web break has been replaced by another
one called Puma and pull my is quite solid as well.
It can be used in both development and production are instances where it has been used in the production
environment as well.
So when you install or create a new Real's projet in rels file it automatically installs the pumar server
which is Taus seamlessly and works behind the scene.
The main difference between pool and web break is that pool allows multi threaded request so it allows
threads and concurrences in a way that web preeg didn't and multi trading is one of the features of
Ruby on Rails.
Version 5.
So that's it for this Lectro I just wanted to introduce you to some types of server.
In terms of development proposes for Ruby on Rails it automatically calms installed with the pull Ma
serve us so you can use that for your development to serve up your request so that's fit for this page.
Thanks for watching and bye for now.