Server-sent events (SSE) is a technology where the server sends events to the client, instead of the client polling the server to check the information availability. The message flow will not get interrupted until the client or server closes the stream.
The most important thing to understand here is the direction of the information flow. The server decides when to send data to a client.
It is very important to handle resource load and bandwidth usage. The client will receive the chunk of data instead to apply load on the server through the polling techniques.
Twitter has a stream API and the Spring Framework WebClient supports SSE. It is time to consume the Twitter stream.