Very slow connection

Hey, I've built an app that uses Remix, Prisma and Postgres and is hosted in vercel and railway.

Locally, everything is fast, but when I have my app in production, it is really slow which majorly impacts the user experience.

I just wanted to check if there is anything I can do to speed it up or if it is slow for any reason?

It's my first time building an app using this stack and I don't know if I've maybe done something wrong or if it is location based?
so just the database part of your app is hosted on Railway?
Yeah, it’s remix and prisma on vercel and Postgres on railway.

Feel like this might be a dumb question, but could I put it all on railway?
not a dumb question at all, you definably could put it all on railway, but keep in mind railway is not geared towards frontend hosting like vercel is, thus railway will run your code as is, and you could run into issues with that if for example you rely on platform features from vercel
Yeah I’ll need to check, I’m not doing anything special just a basic remix app with crud for prisma.

However, if that doesn’t work, the app is still far to slow so I’ll still need to work that out.
sounds good!

Looking for more? Join the community!

Recommended Posts
Postgres sql update query inserting "$1" instead of "?"I have a Postgres server and I runned the query: update "Table_name" set("column_name") = ("Column_nInquiry about Next.js SSR and ISR Support on RailwayHello Railway Community 👋, I'm currently exploring the possibility of migrating my Next.js projectPerformance questionsHi all! Does performance between Hobby and Pro plan differs? I'm mostly curious about initial connHow to specify deployment strategy?Hey, previously i'm a fly io user and I want to migrate to Railway. Is it possible to define the deI do not scroll rightWhen I access log and view it but I do not scroll right to sell full logs. Is it a bug of you?Build failed directus api templateI tried to deploy directus app using railway template (Directus api) and it failed every time. Does Network Error While sending a file.I have uploaded my telegram bot on a Railway Pro plan. The bot sends file back to users through Telego-cron jobs not running in railwayHello, so I'm using the go-cron(https://github.com/go-co-op/gocron) library for managing my cron jobpnpm not foundHi! I'm having trouble building my app, and haven't had success with any of the suggestions with othDo you guys have prepaid options?Say I pay 5$ once and I get to use those 5$ worth of resources all year round. I'd rather do that thChange Heroku to RailwayI need more info because I have a problem with Heroku with my hosted proyect there WebSocket doesnt I am getting this error on my deployment```console GET failed with status code 403 (a proxy could be disallowing the use of 'Upgrade: derp')Flask app wont work with port not respondingmemory usage doesn't decreasememory usage of one of my python processes was instantly increased to ~2700 mb, it was my mistake, bAutomated Postgres backup onto a volume ?Since now the project I was developing for a while is almost ready for production, we need to make show can i deploy my vue projecti get this errorHosting Django backend and React frontend from the same DomainI have two services, one for my backend and one for my frontend. They currently have two separate doResponse Pending with OpenAIHi I have SAAS website running on Railway using OpenAI with Next js , the problem is the endpoint no