News for hackers. Stuff that matters.
Re:Ask HN: What is the future of back-end development? by leecarraher on Friday August 12, 2016 @11:03AM (#12276253)
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.

There are no comments on this comment yet.