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
Percy
Percy2y ago
Project ID: 31e28d69-ffc7-4ab3-83ec-06f54cba5018
Percy
Percy2y ago
⚠️ experimental feature
JustinMauriceM
JustinMauriceMOP2y ago
31e28d69-ffc7-4ab3-83ec-06f54cba5018
Finn
Finn2y ago
Maybe your home computer is faster? Not sure.
JustinMauriceM
JustinMauriceMOP2y ago
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
Finn
Finn2y ago
Wdym slow in big groups?
JustinMauriceM
JustinMauriceMOP2y ago
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
Finn
Finn2y ago
Have you got a dB involved? Is that hosted in the us where railways servers are hosted?
JustinMauriceM
JustinMauriceMOP2y ago
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
Adam
Adam2y ago
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?
JustinMauriceM
JustinMauriceMOP2y ago
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
Want results from more Discord servers?
Add your server