WebSocket in Java

The WebSocket API is an advanced technology that makes it possible to open a two-way interactive communication session between the user’s browser and a server. With this API, you can send messages to a server and receive event-driven responses without having to poll the server for a reply. Writing a WebSocket server in Java This example shows …

HttpSession

What is HttpSession Server will create a independent HttpSession for each register user. What does HttpSeesion do When user first time visit the Servlet, the server will create a independent Session for user. And generate an Session ID. This Session ID could be stored in explorer’s cookie. When user visit this Servlet next time, the …

Application Layer – Reading Notes on Computer Networking A Top-Down Approach Ch.2

Principle of Network Application Application Architecture Client-Server Architecture Data Center, housing a large number of hosts Google, Amazon, etc. P2P Architecture Peers. Application exploits direct communication between pairs of intermittently connected hosts. Traffic-intensive applications: BitTorrent, XunLei, etc. Processing Communicating Processes communicate among different end-system hosts Processes on two different end systems communicate with each other …