Hacker News new | ask | show | jobs
by huntaub 453 days ago
What are some example use cases where having the ability for the database to push updates to an application would be helpful (vs. the traditional polling approach)?
1 comments

One example is when you want to display live data on a website. Could be a dashboard, a chat, or really the whole site. Polling is both slower and more resource hungry.

If it is built into your language/framework, you can completely ignore the problem of updating the client, as it happens automatically.

Hope that makes sense.

Interesting -- is that normally done with database updates + polling vs. something purpose-built?
Not sure how many such solutions there are out there so no idea about the norm. I doubt polling is a real option.

You may want to search for realtime databases.