Open urandon opened 3 years ago
User expects that bot's database cache is updated when the command /update@${BOT_NAME} sent. However, the command does not solve that task for the bot as a service.
/update@${BOT_NAME}
See: only the request receiver bot instance gets an update: https://github.com/ZaMaZaN4iK/holywar-telegram/blob/cf4fc11bb1587d5abd79611b597d543cf5c1bfde/src/commands.rs#L33-L59
Typical bot have to use many instances to keep SLA close to %99.9999. So, the update command have to be designed for such distributed architecture.
User expects that bot's database cache is updated when the command
/update@${BOT_NAME}
sent. However, the command does not solve that task for the bot as a service.See: only the request receiver bot instance gets an update: https://github.com/ZaMaZaN4iK/holywar-telegram/blob/cf4fc11bb1587d5abd79611b597d543cf5c1bfde/src/commands.rs#L33-L59
Typical bot have to use many instances to keep SLA close to %99.9999. So, the update command have to be designed for such distributed architecture.