If web servers handles the request from the client and app server has the bussiness logic, then how web and app servers will communicate? Also, what is the need for different servers? Instead can we have app servers behind load balancers?
webserver mainly have the static content like HTML, CSS, JS and Images. whereas the ApplicationServer will be executing the application logic and processing business logic.
Not exactly, for example you have a website, all your contents are hosted in GoDaddy, then that's your webserver. Your user is accessing the website contents (HTML, JS, CSS) in the GoDaddy.
Your JS code sends request to your backend server (application server) to retrive data.
I think the order should be slightly different. Before jumping into HLD, we should list all the APIs. Based on the APIs list, we can separate the concerns, group the APIs, and eventually we can identify, how many micro services are required along with their responsibilties.
If web servers handles the request from the client and app server has the bussiness logic, then how web and app servers will communicate? Also, what is the need for different servers? Instead can we have app servers behind load balancers?
webserver mainly have the static content like HTML, CSS, JS and Images. whereas the ApplicationServer will be executing the application logic and processing business logic.
You mean CDN?
Not exactly, for example you have a website, all your contents are hosted in GoDaddy, then that's your webserver. Your user is accessing the website contents (HTML, JS, CSS) in the GoDaddy.
Your JS code sends request to your backend server (application server) to retrive data.
I think the order should be slightly different. Before jumping into HLD, we should list all the APIs. Based on the APIs list, we can separate the concerns, group the APIs, and eventually we can identify, how many micro services are required along with their responsibilties.
great article, loved it
❤️❤️❤️🫡