Slow page navigation? #3049
-
I've now built my first Remix app, and in general I'm really impressed with the framework. The app is now hosted on Vercel, and the Postgres database on Heroku. The problem I'm having is that page navigation is quite sluggish. Is this expected in production or am I doing something wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Ok it's defintely faster when deploying to fly.io at least |
Beta Was this translation helpful? Give feedback.
-
The reason for the slow navigation is most likely because your app (Vercel) and your DB (Heroku) are not in the same server, so there’s a latency, if they are also in different regions the latency will increase making it even slower. The reason why Fly.io feels faster is because both app and DB are deployed together so the latency is minimal and almost imperceptible. |
Beta Was this translation helpful? Give feedback.
The reason for the slow navigation is most likely because your app (Vercel) and your DB (Heroku) are not in the same server, so there’s a latency, if they are also in different regions the latency will increase making it even slower.
The reason why Fly.io feels faster is because both app and DB are deployed together so the latency is minimal and almost imperceptible.