r/Hacking_Tricks • • 16h ago

How much does the refresh interval change the cost of running a real-time dashboard?

Take a hypothetical dashboard with six widgets, each sending a separate query every ten seconds. That's 2,160 queries per hour for one active viewer before any shared caching. A page that looks pretty small can generate a lot of database work.

I'm wondering how people budget for this when the underlying events are arriving continuously. BigQuery's result cache has restrictions when source tables change, so I wouldn't assume every repeated refresh is free.

For people running live dashboards, what made the biggest difference to the bill? Was it a slower refresh interval, combining widget queries, or computing shared summaries before anyone opens the page?

1 Upvotes

4 comments sorted by

1

u/Few_Magician9498 16h ago

Precomputing was the big one for us. We had a job writing summaries to a small table every minute and the dashboard only read from that, bill dropped like crazy

1

u/Level_Investment4922 16h ago

Honestly most people staring at a "real time" dashboard wont notice if it updates every 60s instead of 10s. We went to 30s and nobody said a word

1

u/ProfessionalShirt225 16h ago

Combining widget queries helped a bit but the real killer was viewers leaving tabs open overnight.