Answer the question
In order to leave comments, you need to log in
How is the interaction between the web server (site) and the client?
Greetings.
I am new to web technologies, so I have a few questions that I would like to clear up. I broke one big question into several questions. In some questions, I assume that "it" works like this, and if I'm wrong, please correct me.
So, I'm interested in the interaction of a web server (for example, which hosts a site) and a client (which opens this site in its browser) at the transport level. Imagine that this site is built on AJAX technology. That is, the content is loaded dynamically. How the loaded content is rendered on the client using JS does not interest me. I can not understand the transportation of packages.
Questions:
1) What does synchronicity / asynchrony mean in web technologies?
2) The client opens the site in his browser. What's happening? Is a TCP/IP connection created? How does the server know where to send the packet when there is new content (AJAX)? Does it save information (doesn't it close?) TCP/IP connection and uses this transport to communicate with the client?
If so, then
3) Does this connection remain active until the client closes the tab with this site in his browser? And if the client opened a tab with the site and left for N hours to drink tea, then in this case the server should serve this connection for all these N hours? How resource intensive is this? If a client has opened N tabs with N sites in his browser, does that mean there are N TCP/IP connections open? What are the limits on the number of such connections for the client and for the server?
4) What technologies are used for chats?
I will be grateful for the answers.
Answer the question
In order to leave comments, you need to log in
1) What does synchronicity / asynchrony mean in web technologies?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question