zamazan4ik / holywar-telegram

Telegram bot for the chat in Telegram!
MIT License
4 stars 1 forks source link

update command does not update db cache on all instances #6

Open urandon opened 3 years ago

urandon commented 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.

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.