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?
0 Replies
dev
MODERATOR
6 days ago
Are you using FastAPI?
No, I am using django-bolt https://github.com/FarhanAliRaza/django-bolt . It is using basic middleware like cors and compression.
On localhost, the average latency is under 5 ms.