© Jorge Acetozi 2017

Jorge Acetozi, Pro Java Clustering and Scalability, https://doi.org/10.1007/978-1-4842-2985-9_9

9. WebSocket

Jorge Acetozi

(1)São Paulo / SP, Brazil

In the beginning, the Web was built on top of a model that consists of the following:

  • The client sending an HTTP request to the web server

  • The web server returning an HTTP response with the requested resource

This works really well, and almost every web application is entirely based on this model.

As web applications got more advanced and pages more dynamic, a new model emerged, called Ajax.1 Using Ajax , it’s possible to perform an HTTP request and get the HTTP response without having to refresh the whole page, which is amazing because pages now can be very dynamic. When using JavaScript ...

Get Pro Java Clustering and Scalability: Building Real-Time Apps with Spring, Cassandra, Redis, WebSocket and RabbitMQ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.