3 months ago
Can anyone help me setup my Services, so they they communicate over the private Networks, while strapi is accessible via both?
I have a Strapi CMS
An express Server to fetch Data
Python FastApi engine for data aggregation
Next.js Webapp
I want all Services communicate over the Private connection except the connection between next.js and strapi (Alternatively I can host my next app on railway and also use the Private connection, as I dont have direct Client side requests to strapi.
9 Replies
3 months ago
Hi there, you can set up as follows:
Your express server as one service
Your python fastapi as one service
Your next.js as one service.
Is the strapi cms outside of railway?
I am not sure I fully understand your usecase.
Status changed to Awaiting User Response railway[bot] • 3 months ago
3 months ago
i currently have my Strapi, Express, Postgres as a service inside railway ( Excluded the python engine for a start)
Next.js is currently hosted on Vercel.
I attached a sketch of the desired architecture
Attachments
Status changed to Awaiting Railway Response railway[bot] • 3 months ago
3 months ago
I got it now, but for some reason i get horendous response times, while the server is almost under no load according to the metrics
[2025-02-20 00:10:36.474] http: POST /api/transactions/process-transaction-batch/EDozia8CitSkQCnpXu3ekLJCoiLvPUWWLgiRTKiES2j2 (104489 ms) 200
[2025-02-20 00:10:36.548] http: POST /api/transactions/process-transaction-batch/EDozia8CitSkQCnpXu3ekLJCoiLvPUWWLgiRTKiES2j2 (103763 ms) 200
[2025-02-20 00:10:36.584] http: POST /api/transactions/process-transaction-batch/EDozia8CitSkQCnpXu3ekLJCoiLvPUWWLgiRTKiES2j2 (103656 ms) 200
[2025-02-20 00:10:37.395] http: POST /api/transactions/process-transaction-batch/EDozia8CitSkQCnpXu3ekLJCoiLvPUWWLgiRTKiES2j2 (88316 ms) 200
[2025-02-20 00:10:44.867] http: POST /api/transactions/process-transaction-batch/EDozia8CitSkQCnpXu3ekLJCoiLvPUWWLgiRTKiES2j2 (93363 ms) 200
Created 29 transactions
Created 42 transactions
Created 27 transactions
Created 28 transactions
Created 27 transactions
Created 33 transactions
3 months ago
What region is the Nextjs on Vercel deployed on?
You can deploy the Nextjs as a service here on Railway and deploy it in the same region as the other services.
Status changed to Awaiting User Response railway[bot] • 3 months ago
3 months ago
Don't think the problem is Next.js
Maybe strapi can't handle 500 RPS
Status changed to Awaiting Railway Response railway[bot] • 3 months ago
3 months ago
Okay, maybe you can install this Next.js template in your project and run the experiment of connecting it with your strapi and measure the response time.
Then you can compare with what you got from connecting it to your next.js app on Vercel.
Status changed to Awaiting User Response railway[bot] • 3 months ago
3 months ago
it is not next.js only
i have my connector deployed and connected privatly
I think strapi can't handle the load
Status changed to Awaiting Railway Response railway[bot] • 3 months ago
3 months ago
Can you please provide specific errors, and show how you are having Use Poly Connector
try to make calls to Use Poly CMS
Status changed to Awaiting User Response railway[bot] • 3 months ago
3 months ago
Everything is fine. As i said, strapi was the problem. it was the bottleneck
Status changed to Awaiting Railway Response railway[bot] • 3 months ago
Status changed to Solved brody • 3 months ago