Comment by catwell
3 years ago
I wrote a blog post advocating for something like this recently, with an additional push to notify the client when it should poll: https://blog.separateconcerns.com/2022-03-05-push-to-poll.ht...
I wasn't aware of this but it fits the use case perfectly, I will update the post.
Indeed, these kinds of abbreviated notifications are a great way to implement realtime updates. The code is simpler and there's less chance of screwing something up.
I've also seen this described as hints: https://blog.andyet.com/2014/09/23/send-hints-not-data/