1
00:00:00,540 --> 00:00:02,960
Hello and welcome to this lecture.

2
00:00:03,030 --> 00:00:13,380
This picture harby explaining some of the web server options available to be used for development in

3
00:00:13,710 --> 00:00:23,650
Ruby on Rails a web server is basically a program that uses TTP request.

4
00:00:23,980 --> 00:00:29,740
It's called hypertext transfer protocol to serve the files that form the web page.

5
00:00:29,730 --> 00:00:36,150
So basically when you go to for example you go to Google and typing Google dot com or wherever that

6
00:00:36,150 --> 00:00:38,790
is known as the TTP request.

7
00:00:38,810 --> 00:00:43,720
So a web server physically responds to that request.

8
00:00:43,740 --> 00:00:49,680
If you go in and type in Google dot com or you demi dot com web servers that the artists at the other

9
00:00:49,680 --> 00:00:54,170
end that received that response and then sends you back the answer.

10
00:00:54,180 --> 00:00:54,630
So last.

11
00:00:54,630 --> 00:01:03,210
Basically what the web server does in it not so dedicated computers and appliances can also be referred

12
00:01:03,210 --> 00:01:06,460
to has web servers.

13
00:01:06,720 --> 00:01:10,390
There are different types of web servers.

14
00:01:10,650 --> 00:01:13,810
So what we actually need for development.

15
00:01:13,830 --> 00:01:18,920
We need something that's going to take a request from a user.

16
00:01:19,440 --> 00:01:26,970
And then when they're typing in they request all the ground and then send that request to the rails

17
00:01:27,090 --> 00:01:35,100
application the RIAs application would then return it results to the web server which then gets sent

18
00:01:35,100 --> 00:01:38,710
back to the user who made the request.

19
00:01:38,880 --> 00:01:46,300
So web servers are quite an essential process in your Ruby on Rails development.

20
00:01:46,470 --> 00:01:56,120
If you are using a product on a web server you're probably going to be using a paci too which is a heavy

21
00:01:56,130 --> 00:02:04,110
weights but mainly used for production or Jynx also known as Engine X. So these are the two heavyweights

22
00:02:04,890 --> 00:02:09,840
that you come on to find being used in a production environment.

23
00:02:10,230 --> 00:02:16,110
They are quite robust and have lots and lots of features.

24
00:02:16,110 --> 00:02:26,900
We've also got lightweight servers that can be used in a production environment either to reduce this

25
00:02:26,910 --> 00:02:34,430
stress load on Apache and engine X or just to use it on its own as a web server.

26
00:02:34,440 --> 00:02:38,280
They're not as power not as powerful but can be used.

27
00:02:38,280 --> 00:02:45,310
We've got one called a passenger Phil this is a more lightweight version compared to our patch.

28
00:02:45,310 --> 00:02:53,030
He had engine X and then we've also got another one called unicorn unicorn.

29
00:02:53,220 --> 00:02:57,310
It's also lightweight in the same category as passenger.

30
00:02:57,630 --> 00:03:06,080
However for development purposes from Ruby Ruby prior to Ruby on Rails 5 the can't.

31
00:03:06,240 --> 00:03:12,240
Built in web server code web brick which comes preinstalled.

32
00:03:12,270 --> 00:03:20,910
We've turned Ruby on real installation but things Ruby on Rails 5 web break has been replaced by another

33
00:03:21,300 --> 00:03:25,800
one called Puma and pull my is quite solid as well.

34
00:03:25,800 --> 00:03:33,600
It can be used in both development and production are instances where it has been used in the production

35
00:03:33,600 --> 00:03:35,140
environment as well.

36
00:03:35,220 --> 00:03:44,370
So when you install or create a new Real's projet in rels file it automatically installs the pumar server

37
00:03:44,820 --> 00:03:50,390
which is Taus seamlessly and works behind the scene.

38
00:03:50,400 --> 00:03:58,770
The main difference between pool and web break is that pool allows multi threaded request so it allows

39
00:03:58,860 --> 00:04:07,620
threads and concurrences in a way that web preeg didn't and multi trading is one of the features of

40
00:04:07,620 --> 00:04:08,880
Ruby on Rails.

41
00:04:08,910 --> 00:04:11,140
Version 5.

42
00:04:11,880 --> 00:04:17,440
So that's it for this Lectro I just wanted to introduce you to some types of server.

43
00:04:17,490 --> 00:04:24,780
In terms of development proposes for Ruby on Rails it automatically calms installed with the pull Ma

44
00:04:24,880 --> 00:04:31,860
serve us so you can use that for your development to serve up your request so that's fit for this page.

45
00:04:31,890 --> 00:04:34,270
Thanks for watching and bye for now.
