3 ms·
i often get the, can we make this a websocket instead of an api call. that way it can just get updated instead of you having to run a query... 1. not neccessari
by leecarraher 10y ago
i often get the, can we make this a websocket instead of an api call. that way it can just get updated instead of you having to run a query...
1. not neccessarily faster (push vs pull depends entirely on the data creation consumption model)
2. the push scenario is not how most database access patterns work. Instead it's likely just polling the db on the backend instead of the front end. So same db load. and now lots of open connections to simultaneously maintain and garbage collect.