My application very slow response
faizalsalleh
PROOP

3 months ago

I am using laravel 12 with Liviewire.

Recently my app has been experiencing slow response. There are 5 concurrent users. My app has an autocomplete search that accesses a lot of db. Previously there was no problem.

I have upgraded my plan to Pro Plan. But I am still facing slow response. I tried accessing the test page which does not have a db connection at backend. But it is still slow.

https://program-tanah-merah.up.railway.app/test.html

1 / 9 requests

0.1 kB / 118 kB transferred

0.0 kB / 118 kB resources

Finish: 13.43 s

DOMContentLoaded: 7.46 s

Load: 7.47 s

Please help.

https://program-tanah-merah.up.railway.app

$20 Bounty

3 Replies

Railway
BOT

3 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!


3 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 3 months ago


3 months ago

You might need to update the DB_HOST variable in your Laravel application settings to use the Private Networking host found in your Database Connect tab so that the application connects internally instead of over the slow public internet. You can also optimize excessive database operations by deploying a Redis database to implement a cache-aside strategy that handles requests before they reach your default database.


rubenszinho

You might need to update the DB_HOST variable in your Laravel application settings to use the Private Networking host found in your Database Connect tab so that the application connects internally instead of over the slow public internet. You can also optimize excessive database operations by deploying a Redis database to implement a cache-aside strategy that handles requests before they reach your default database.

faizalsalleh
PROOP

3 months ago

My DB_HOST variable is indeed using the Private Network host. As I shared, I tried to access a test page that had no db connection at all. It was just simple static html (https://program-tanah-merah.up.railway.app/test.html). and it took 7.47 seconds to load. That's why I'm stumped as to why.


Loading...