webhooks
Using
Webhooks — an HTTP callback: the service pushes an event to you when something happens, instead of the client polling it constantly. I used them heavily when working with external APIs and writing Telegram bots. A simple but powerful integration pattern.