Railway Deployment Slower than Terminal
Does anybody know why as soon as i deploy the bot to railway and dont run it in my terminal the bots respond is slow in bigger groups
11 Replies
Project ID:
31e28d69-ffc7-4ab3-83ec-06f54cba5018
You might find these helpful:
- too slow
- bot not starting and project always errors after building and deploying
- Python Bot
⚠️ experimental feature
31e28d69-ffc7-4ab3-83ec-06f54cba5018
Maybe your home computer is faster? Not sure.
I am running it over the run and debug / run terminal in VS Code and it runs without any problems in the moment i deploy 1to1 thr same code to railway it is so slow in big groups it does not work what can i do there i have already the developer plan in railway
Wdym slow in big groups?
The responses of the bot spins endless in big telegram groups and through that fails ive even integratet a retry function but it just fails for every retry 90% of the time
I have a function which sends a gif as loadimg screen which than gets replaced by the calculatet answer of the bot but the deletion and replace of the calculatet answer does not happen 90% of the time
I thought that it might be the api connection or the way how i have codet the bot first but i have made stress tests with the same code just in the debug and run terminal and the run terminal of vs code and it runs without problemd but as soom as i deploy it it does not work right anymore
In small groups it works way better
What is a problem as the bot should be a part of my Telegram Bot Managment and should be available for big groups and multiple groups in the same time
Have you got a dB involved? Is that hosted in the us where railways servers are hosted?
What is a db sorry i am completly new in this space
If yoi mean a database no all request calculations go over a api
This sounds like an issue with your code compounded with Railway servers being less powerful than your pc. Is there any part of your code that iterates over a list of members?
Normaly not that is what wonders me the only checks i have are if group or privat chat for the whitelists and the whitelists itself for the bot owner accounts so mine, the whitelisted privat chats and the whitelisted groups i am currently completly rewriting the code i will retest it completly afterwards again and compare the library versions and so on
As i have just startet with coding and have directly updatet all librarys and with that the versions are completly up to date it might be that there is a version difference which makes problems
But i have the idea for a different way of error handling what might help there to lets see