An Azure service that provides a general-purpose, serverless container platform.
Hi @Owen-5717
The fact that moving the workers to dedicated capacity stopped the timeouts is the strongest clue. It points to the client side rather than Redis itself, because the cache and private endpoint stayed the same. Microsoft's Redis timeout guide lists client-side causes first, and two of them fit consumption replicas well:
- High client CPU. If the app can't process responses fast enough, requests time out even though Redis answered quickly. Microsoft recommends keeping client CPU under 80%.
- Traffic bursts and thread pool limits. A burst can queue requests behind a small thread pool, and they time out before they're even sent.
What I'd check:
- Replica CPU and memory in the Container Apps metrics for the consumption workers, during the windows with timeouts. If they spike near their limits, give them more CPU per replica or let them scale out sooner.
- Connection reuse. Make sure each replica creates one Redis client or connection multiplexer and reuses it. New connections per request quickly cause high client connections, which Microsoft also lists as a cause.
- Keep-alive. Azure Cache for Redis closes connections that sit idle for 10 minutes. Set your client's keep-alive or heartbeat well under that, so quiet workers don't hit a dead connection on their next call.
- Server side, to rule it out: look at the cache's Server Load, Connected Clients and Errors metrics for the same timestamps. If those stay low while timeouts spike, that confirms the problem sits on the consumption side.
Which Redis client library and version are the workers using?
If these checks show the cause, please consider accepting it as the answer. If the client side looks healthy, let me know what the server metrics show and I'll be happy to keep helping.
Reference: