because polling uses offsets to retrieve new updates. If your application is scaled to multiple instances, each of these instance will use its own and separate offset. Therefore, there exists the chance that different application instances will process the same update.
However, when using webhooks it is scalable. How? You would bot.setWebhook(url), where url points to a load balancer, such as Nginx, that'd re-route the request to an application instance, depending on set strategy.
крутяк
Обсуждают сегодня