Hello friends welcome to the next lecture in this lecture, we will learn out of process costing. In previous lesson we learned in process hosting about increase in hosting there is only one server which is used and it is by default as if we run your program in Visual Studio then it you eyes experts, but if you host your site and that is on a server, then it is us w three web process. Okay. Now, we will see how to process we'll see how to achieve this. There are two methods to achieving this. First one is go to the end it was fine After that, you can see here a spinet core OSI model you have to figure out a process I need to write okay then this is one way oh first time then I assume here after that I will run this project from HP dotnet core CLR then it closes out of closes with another way is that if I completely remove this line from the Cs proj then it uses out of process now, if I want to run our program from CLA How am I want to do that?
You know local commercial Fall of 2017 Okay, initializing. Okay, now I'm going here. Then after that, Oh, hold on a minute with APA. Now I'm moving in data rotating after that one more folder. And if I use dotnet then come on then with our application and run for rating The reason I need to open the browser, so I'm opening Firefox didn't know It is not running. Okay, now it's running and our listening quality.
Welcome. Now, I'm going here in Denver. So, now you can see it uses dotnet processing in our process dotnet is a process name. Now, moving forward in our process, there are two web server issue. One is an internal one and second one is an external one. First is an internal one internal one.
Very crystal browser. Sorry, Kestrel server is an inbuilt server. You but SP dotnet core. Okay. maybe explain the crystal server functionality by showing the image I'm opening image. Now.
You can see clients and requests. Here is our pool or one Kestrel server, it processed that request and send response back to the client. Then this is used as a standalone server. But you can use your Kestrel server with Apache like that. So in a second finger, you can see clients and request request is processed by ice or Apache. And then this request forward to the Kestrel server, the Kestrel server, process that request send response back to our remote proxy server and then this reverse proxy server sends a response back to our client machine.
Then you will ask, if I use Kestrel server standalone, then why there is a need of reverse proxy server. By using reverse proxy server, you can achieve load balancing. If you host your application on the server and you have lots of clients, then you need to load balancing for your project. Also, there are configuration setting which you can use with reverse proxy server and security to achieve more security that you okay so this is all about Out of closet and in processes, the main difference is that performance point of view in process of steam, have a better performance then out of processes, okay. And in process hosting, there is only one server issue, but in total process it required to server. Also, when you run your program, one from Visual Studio, then it used is Express as a reverse proxy server four out of process mostly remember this that's all about out of process and in process we will make the next line Thank you for watching