An Azure service that provides a general-purpose, serverless container platform.
Hello Phillip S. Stenger Jr •,
Thanks for reaching out!
The errors you're seeing are likely due to your app invoking Dapr before the sidecar is fully ready during scale-out, or after it's terminated during scale-in. This causes intermittent failures during scaling operations.
- Use Dapr sidecar health checks before making calls to ensure it's ready.
- Handle graceful shutdowns in your app to avoid calling Dapr after it's stopped.
- Implement retry logic with exponential backoff and circuit breakers.
- In Durable Functions, wrap Dapr calls in try-catch with retries and avoid placing them directly in orchestrations.
- Monitor sidecar and app lifecycle events via Dapr logs and Azure Monitor.
- Optimize your Container App scaling configuration to avoid frequent scale events.
These steps will help reduce invocation errors and improve reliability during scale transitions.
For your reference, please refer the following documentation:
lifecycle management in Azure Container Apps
container-apps/application-lifecycle-management
Hope this helps!