Notifying big number of clients about R2 file changes

I have a R2 bucket that one client uploads files to using a Worker. Then, I have a couple 1000 other clients that should be informed about these changes as soon as possible (within 10-60 seconds) so they can download the updated files.

What would be the best way to achieve this? Currently I have the clients poll for changes once a minute or so, which works but doesn't really scale well. I need a setup that works well with 1M+ clients :NyanThinking:
Was this page helpful?