Inquiry About User Capacity on the Free Plan
Anonymous
TRIALOP

a year ago

Dear Railway Support Team,

I hope this message finds you well. I am currently exploring Railway as a platform to host a WebSocket server for an IoT project and would like to better understand the capabilities of your free plan.

The server will handle communication between IoT devices (e.g., ESP32) and user applications. Each IoT device sends a small message (approximately 70-80 bytes) every second, and user applications may also connect to the WebSocket server to receive these updates.

Here is an overview of my intended usage:

  • Data Transmission: Each IoT device sends a message every second.

  • Connections: Approximately 20-30 simultaneous WebSocket connections to start.

  • Activity: 24/7 operation with occasional spikes in activity.

Could you kindly clarify:

  1. How many simultaneous WebSocket connections can a server handle under the free plan, assuming the instance uses the provided 256 MB of RAM and single CPU core?

  2. If additional scaling is needed, is it possible to seamlessly transition to a paid plan without downtime?

Your platform's ease of deployment and scalability are highly appealing, and I would appreciate your guidance to determine if it aligns with my project needs.

Thank you for your assistance. I look forward to your response.

Best regards,
ADELI AHMED

1 Replies

a year ago

Hello and welcome to Railway!

  1. This would more-so be a question of how many simultaneous websocket connections your code can handle given the resource limitations on the trial plan, I don't know what language, or the code quality of your project, and even if I did, it's still impossible to tell you, if you'd like an answer to this you should stress test this yourself for the most accurate answer as this question has far more to do with your code's capabilities than it does with the platforms capabilities.

  2. Yes, you upgrade to a paid plan, and then simply redeploy, then provided you are using a readiness type health check and aren't using a volume, there will be a zero-downtime switch over, though of course existing websocket connections will be dropped, your clients would need to gracefully handle that per best practices.

I'd like like to note that it's a trial, eventually your services will use up all the trial credits and be shut down, so make sure to upgrade before that happens!

Hope this helps!

Best,

Brody


Loading...