node.js - CloudRun service API can't respond in less than 200ms - Stack Overflow

admin2025-04-26  4

I have an express app on CloudRun with very minimal code. Practically a route with a health check that just responds to a GET request with 'OK'.

I have noticed all my requests takes a minimum of 200ms, even the health check takes 200ms (when warmed up).

app.get("/", (_req: express.Request, res: express.Response) => {
  res.status(200).send("OK")
})

Is this a limitation of CloudRun? Can it not do a latency of less than 200ms?

I am testing this API from Postman in Australia while the API is deployed in us-central1, where I was expecting it to complete within 100ms or 50ms.

Docker node version: node:20-alpine

转载请注明原文地址:http://anycun.com/QandA/1745600073a91009.html