IQ 9: Whats the difference between Web and App Server?

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys what I wanted to do today was talk to you about the differences between a web server and application server so what are the differences between a web server and an application server all right so let's first talk about web servers web servers process HTTP requests by responding with HTML pages so basically when you're dealing with servers like this these type of servers actually only deal with static content such as HTML images or any other form of static content another thing to take note of is that there is no server-side programming which basically means that the content that's going to be returned on your end is pretty much just going to be a user and user interface type content another thing is that when I say no server-side programming that pretty much means that there's going to be no business logic associated with the application that you're running and another thing is that there are no databases are dynamically generated content which pretty much is also a part of server-side programming now below what I have here are just a couple of types of web servers you may be familiar with some of these on the Apache HTTP server by Apache internet information services by Microsoft or the Sun Java system web server so these are some of the web servers that are out there right now and that's pretty much what a web server is and I'm going to explain this a little bit more clearer with a picture now all right so this is how web servers work so imagine yourself on the computer your to fly it you go to your web browser open it up and then you type in a URL or address now after you type in the address you press ENTER once you press Enter there's going to be requests sent to those web servers through the internet the web server is then going to process your request your HTTP requests and then send back a response to the client and then the content is going to be displayed in your browser and that's pretty much how it works as I said before when it comes to web servers it only serves static content so the website that you're trying to access is pretty much just going to be a user interface that you can interact with but there won't be any core functionality behind that okay what I want to talk about now our application servers now application servers are basically servers that serve business logic to application programs and what that means is that whenever you make a request in a web based application basically basically there's going to be some information sent to the backend of that application in order to be processed another thing is that application servers they handle all application operations between users and organizations back in business application or database it's pretty much you know what I've stated before but I mean this pretty much means that whenever you're working with an application that uses an application server it's going to some type of way tie in with the underlying logical structure of this web based application another thing is that they can help you deploy applications that pretty much just means make your application available online now what I have here next are the different parts of an application server I didn't want to go too much into it I just wanted to mention this to you guys to give you an understanding of what this application is made out of made up of the pretty much consists of a web container application client as well as an EJB container all these things work together in order to process that well in order to allow you to interact with back in type of information and the last thing I want to mention are the different types of application servers Apache Tomcat which I'm sure a lot of you guys are probably familiar with especially if you worked with web applications or work with business your business web type applications another one is JBoss web logic as well as WebSphere now here's a picture that tries to explain how application servers work so imagine you're on your computer you go to your browser you type in the URL and you make a request that request is going to be sent to this application server this application server is going to interact with a servlet of some sort and pretty much from that servlet there may be some more code on the back end that the servlet interacts with in order to process a certain piece of information it may consist of logical information within the application itself or it may reference a database which is what I have here in order to gather the information that it needs to respond back to the client with so after processes the information in this application server there's going to be an HTTP response that is going to be sent back to this client and basically that's how the user is going to be presented with information and another note I wanted to noting I wanted to know was that some application servers also contain web servers and that is ideal when you're working with a very large or a very complex web-based application so basic so basically what I'm saying is that if you're only dealing with an application server these servers are pretty much made to interact with other applications if it's just purely an application server but there are some application servers that also contain web servers which allow you to perform both actions pretty much respond with static content or respond with some type of logical content as well as the static content and all them makes sense all right now if you guys have any questions about web servers or application servers please leave them in the comments below don't forget to like the video and thanks for watching
Info
Channel: The Coding Interview
Views: 258,996
Rating: 4.6862202 out of 5
Keywords: application server, web server, server, application, web, http, http request, http response, request, response, servlets, business logic, logic, sql, database, MVC, static, static content, html, images, JSP
Id: S97eKyv2b9M
Channel Id: undefined
Length: 7min 20sec (440 seconds)
Published: Sat Jul 16 2016
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.