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 …
What is the difference between HTTP and HTTPS
HTTP: No Data Encryption Implemented Every URL link that begins with HTTP uses a basic type of “hypertext transfer protocol”. HTTP is also called “a stateless system”, which means that it enables connection on demand. You click on a link, requesting a connection, and your web browser sends this request to the server, which responds …
Continue reading “What is the difference between HTTP and HTTPS”
Properties and advantages of REST APIs
Client-server architecture The API defines all communication between the client and the server, which are separate components and free to be developed independently. Layered system The client is indifferent to whether it is communicating directly or indirectly with the server. Cacheability A response can be cached if the same request will return the same result …
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 …
Error: Web server failed to start. Port **** was already in use.
Use the code to kill this port: npx kill-port ****
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 …
Continue reading “Application Layer – Reading Notes on Computer Networking A Top-Down Approach Ch.2”