Should I use WebSockets or REST API?

WebSocket approach is ideal for real-time scalable application, whereas REST is better suited for the scenario with lots of getting request . WebSocket is a stateful protocol, whereas REST is based on stateless protocol, i.e. the client does not need to know about the server and the same hold true for the server.

Sizin İçin Seçtik  Are WebSockets obsolete?

Leave a Reply

Your email address will not be published. Required fields are marked *