Best Practices
Example configuration
{
"observers": {
"subscriberTimeout": 5,
"maxRetryAttempts": 10
},
"events": {
"queues": 8
}
}
| Property |
Description |
| observers.subscriberTimeout |
Keep observer timeouts aligned with infrastructure latency |
| observers.maxRetryAttempts |
Tune retries to balance resilience and recovery time |
| events.queues |
Scale queues based on expected event throughput |
- Use specific version tags instead of
latest for production deployments.
- Mount configuration as read-only to prevent accidental modifications.
- Use environment-specific connection strings for MongoDB.
- Configure appropriate timeouts based on your infrastructure.
- Use environment variables for sensitive configuration like connection strings.
- Use secrets management for production environments.
- Set appropriate observer retry policies based on reliability requirements.
- Configure event queues based on event throughput needs.