8 months ago
We have deployed the application in the Railway app, and want to further scale the application via horizontal scaling. How can we do that? Is there any specific platform/method to obtain this? Kindly guide us.
Additionally, we are looking for a reduction in the latency of the application. Kindly guide us in this as well.
2 Replies
8 months ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
8 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • 8 months ago
8 months ago
Railway currently doesn't offer automatic horizontal scaling based on traffic, but you can manually scale your app by increasing the number of replicas in your service settings. https://docs.railway.com/reference/scaling?utm_source=chatgpt.com.
If you're facing latency or performance issues, it's a good idea to scale your app manually by increasing the number of replicas. Deploying these replicasin multiple regions can significantly reduce latency by serving users from the closest location.
If you're not sure whether the issue is due to resource limits or traffic spikes, try increasing both your CPU/RAM and the number of replicas, then monitor the results. For advanced load balancing and geo-routing, consider using a service like Cloudflare in front of your app.