railway app websockets?

Any clue if railway supports a server using websockets?
10 Replies
Sean Cassiere
Sean Cassiere2y ago
Yes the railway app doesn't shutdown so Websockets should be possible. Just need to expose the PORT using the env variable.
Web Dev Cody
Web Dev Cody2y ago
@SeanCassiere any clue what happens behind the scenes as they scale your servers up and down? like if they auto-scale your container down, won't that kill all your websocket connections?
Sean Cassiere
Sean Cassiere2y ago
That's actually a really good question. TBH I'm not too sure on that. I mean, they offer a Soketi template, so they must have someway in which they deal with it. https://railway.app/templates Although, I'm not sure about their strategy behind it. May be a good question, for the Railway team on their Discord server.
Railway
Railway Templates
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
Sean Cassiere
Sean Cassiere2y ago
Was looking to find any responses from the Railway team on this, and noticed that you already had a thread open. I'm definitely interested in their response. https://discord.com/channels/713503345364697088/1026649912529666138
Web Dev Cody
Web Dev Cody2y ago
yeah, they don't explain how they scale up or down just that they scale.... I wonder if they just scale your container's cpu and VM up and that's about it they might not even load balance and distribute your containers
Sean Cassiere
Sean Cassiere2y ago
Yup quite possibly just moving the container resources up and down. TBH I haven't really been bothered to load test it. Maybe if I get a free day I may give it a shot... Just don't want to walk away with a ridonkulous bill 😬
Web Dev Cody
Web Dev Cody2y ago
well if you ever figure it out, send me a pm plz!
Sean Cassiere
Sean Cassiere2y ago
Will do 🙌🏼
robotkutya
robotkutya2y ago
@SeanCassiere mind reporting back here? I'd love to know too! 🙏 🖖 🖖
Sean Cassiere
Sean Cassiere2y ago
Yup yup, just need to find a day I'm free.
Want results from more Discord servers?
Add your server