With the advancements in web architecture and emerging platforms, which can provide real-time or near real-time information, the necessity of having an effective way of communicating these updates to clients caused the urge of introducing new programming models and new standards that make use of this real-time information easier for the consumer side of the system, also known as clients (mostly web browsers).
In this chapter we will cover the following topics:
The programming models and solutions that can be used to address near real-time update transfer to clients
Using Server-sent Events (SSE)
Using WebSockets
Different snippets are included in this chapter but complete samples which shows these snippet in actions are included as part of the book's source code download bundle.