You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
The Timeout design pattern is crucial in a microservices architecture to handle latency and prevent cascading failures. By setting a timeout, we can avoid long waits for responses from dependent services, improving overall system resilience and performance. This pattern helps in defining a period within which a service call must complete, otherwise, it gets aborted and a fallback mechanism is triggered. This implementation is particularly important for maintaining the robustness of the system under heavy load or when some services are down or slow to respond.
Main Elements of the Pattern:
Timeout Duration: Defines the maximum time a service call is allowed to take.
Fallback Mechanism: Provides a default response or alternative workflow if a service call times out.
Configuration: Ability to configure different timeouts for different services based on their response times.
Logging and Monitoring: Capture timeout events for monitoring and debugging purposes.
Circuit Breaker Integration: Work in conjunction with the Circuit Breaker pattern to prevent repeated calls to failing services.
This issue has been automatically marked as stale because it has not had recent activity. The issue will be unassigned if no further activity occurs. Thank you for your contributions.
Hi @iluwatar, I picked this one up. Per-service configurable timeouts with cancellation, timeout metrics and fallback, plus tests, README and class diagram are in #3598. Happy to adjust anything in review.
Activity
[-]Implement Timeout Design Pattern[/-][+]Timeout pattern[/+]kanishkawithanawasam commentedon Aug 1, 2024
Hello,
I am a third-year undergraduate computer science student. I am new to this project and would like to contribute. I will be working on this issue.
stale commentedon Oct 5, 2024
This issue has been automatically marked as stale because it has not had recent activity. The issue will be unassigned if no further activity occurs. Thank you for your contributions.
33 remaining items
Add Timeout pattern implementation - Fixes iluwatar#2845
github-actions commentedon Aug 3, 2026
This issue is stale because it has been open 60 days with no activity.
ylcn91 commentedon Sep 3, 2026
Hi @iluwatar, I picked this one up. Per-service configurable timeouts with cancellation, timeout metrics and fallback, plus tests, README and class diagram are in #3598. Happy to adjust anything in review.
feat: add Timeout pattern (iluwatar#2845)
feat: add Timeout pattern (iluwatar#2845)