6 ms·
This is true. To be honest I was only considering the benefits to the client - if there are 10m client's polling this could mean a lot of server resources for S
by justsomeuser 4y ago
This is true. To be honest I was only considering the benefits to the client - if there are 10m client's polling this could mean a lot of server resources for Stripe.
But an indexed last_update_ts could take less than 1ms to query, HTTP connections are kept alive, meaning the server handling the poll is still not using a huge amount of resources.
- tasn 4y agoKeeping all of these connections alive is also not great. Updating them when things change means either polling (so 10m at least once a second) or some complex messaging mechanism.