Using Websockets with RESTful API

by wdavies973   Last Updated November 08, 2018 22:05 PM

I've seen many apps use two separate servers to handle traffic. These services have a RESTful HTTP api server AND a websocket gateway.

I guess I'm not sure how the websocket gateway interacts with the database of the RESTful server. Does the websocket server make HTTP GET,PUSH,etc commands to the RESTful API in the background? Does the websocket server have direct write access to the database? Or should the websocket and API server be seperate?



Related Questions


Long lived connections

Updated March 17, 2017 10:05 AM

Is HTTP fully replaceable by WebSockets?

Updated March 12, 2018 00:05 AM

Should/Could I add MQTT to this design?

Updated March 26, 2018 10:05 AM

REST API with optional resource creation

Updated July 23, 2016 08:02 AM

When should I append an extension to an endpoint?

Updated December 21, 2017 22:05 PM