Skip to content

Conversation

@AhmedAbdelRaheem1
Copy link

This PR provides the complete implementation of the Fallback Pattern with Circuit Breaker. The Fallback Pattern gracefully handles failures by providing alternative solutions when the primary service fails to prevent cascading failures and monitor the health of the primary service while ensuring thread safety and proper synchronization.

Close #2846

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
66.7% Coverage on New Code (required ≥ 80%)
D Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Comment on lines +40 to +44
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not needed, comes from parent pom.xml

@@ -0,0 +1,72 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related to this file, but I noticed that README.md is missing. It has a very specific format described here: https://github.com/iluwatar/java-design-patterns/wiki/01.-How-to-contribute You can also check the other patterns for examples.

@github-actions
Copy link

This PR is stale because it has been open 60 days with no activity.

@github-actions github-actions bot added the Stale label Mar 10, 2025
@iluwatar
Copy link
Owner

Closed due to inactivity. Thank you for the contribution.

@iluwatar iluwatar closed this Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Fallback design pattern

2 participants