How to do a Realtime Basketball Boxscore Widge Properly?
I have created a basketball stats tracker . Now I wanted to create a widget so that sports site can embed my boxscore widget to their site. My plan is add a job in my app that push the game boxscore json to a cloud server every 1 minute or while game tracking is on progress. I am thinking of using rethinkdb as my boxscores database. One of my requirements is to be able to update widget data without refreshing browser. Thats why I thought of using rethinkdb with rails server sent event. Am I on right path? Is there a tutorial or sample app using rethinkdb and SSE? Any suggestions would be helpful.
Thanks.
Consider using websockets, it would allow you to feed the refreshed data immediately, not wait for a minute potentially, which is kinda long when you're talking about real-time.
Read more here if your app is Rails: https://guides.rubyonrails.org/action_cable_overview.html
Hi thanks for the response. I dont need bidirectional communication thats why I thought of SSE
Every football lover knows the struggle of switching between matches and missing key moments. That’s exactly why I started using best zoom livescore today. It lets me follow multiple games in real-time, showing all the important updates as they happen. What I like most is how customizable the interface is—I can focus on my favorite teams and get instant alerts when goals are scored or cards are issued. It’s a huge upgrade from traditional live score apps. The Zoom feature keeps everything within view without overwhelming me. Honestly, I wish I’d found this tool sooner. It makes watching football even more exciting.
This sounds like a solid plan! Using RethinkDB with SSE for real-time updates is a great approach. Consider exploring server-sent events in conjunction with a caching layer to optimize performance. Just like strategically placing blocks in Block Blast game, caching balances data retrieval and minimizes server load.