Too high latency
Anonymous
HOBBYOP

6 days ago

A simple health check view
@api.get("/health")
async def health():
"""Health check endpoint."""
return {"status": "healthy", "timestamp": time.time()}

is giving a latency of 300 ms to 500 ms.
I am on a hobby plan . How do I fix this?

https://check-host.net/check-http?host=https://gallant-adaptation-production-f6d4.up.railway.app/health&csrf_token=d42c132c580a50c1a9519993ecf1b3dd916e32d6

0 Replies

dev
MODERATOR

6 days ago

Are you using FastAPI?


jasperchess
PRO

6 days ago

Also any chance you have some middleware running on that endpoint?


Anonymous
HOBBYOP

6 days ago

No, I am using django-bolt https://github.com/FarhanAliRaza/django-bolt . It is using basic middleware like cors and compression.


Anonymous
HOBBYOP

6 days ago

On localhost, the average latency is under 5 ms.


Loading...