6 months ago
First of all I would like to say that I absolutely love Railway, and had completely switched my infra to it by the end of May, 2025.
However, initially I got really nice build times for my main application server(a FastAPI application) around 25-30s deployment time.
However, over time, this has considerably increased, and now it takes around 12-15 minutes for a single deployment. I haven't changed deployment file at all!
Not many new packages have been added either!
I would appreciate your help with this regard, as we are a startup, and pushing bug fixes in real time matters to us a lot!
3 Replies
6 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!
6 months ago
Hello,
Thank you for your kind words about Railway - we appreciate that feedback.
The increased build times are not due to any fault or regression on our infrastructure. Build times are determined by the dependencies and processes in your application's build. Looking at your build logs, there's an extensive dependency tree that's consuming most of the build time.
The main contributors to your build time include:
The PyTorch ecosystem (torch, transformers, sentence-transformers) plus NVIDIA CUDA packages - PyTorch alone is 888MB and CUDA libraries add approximately 3GB, consuming 4-5 minutes of build time.
You're also installing multiple overlapping ML/AI libraries, multiple cloud SDKs (Google Cloud, Firebase, AWS), various communication services (Twilio, Vonage, Slack SDK, SendGrid), and multiple database drivers simultaneously.
Your 11+ minute build time could drop to 2-3 minutes by removing unused packages and creating separate requirements files for different environments to avoid installing unnecessary dependencies.
To achieve faster deployments for your bug fixes, optimizing your build by reducing these dependencies will be the most effective approach.
Best,
Brody
Status changed to Awaiting User Response Railway • 6 months ago
Status changed to Awaiting Railway Response Railway • 6 months ago
