Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

253 implement fault tolerance mechanisms eg retries dead letter queues circuit breakers e5 #280

Open
wants to merge 35 commits into
base: main
Choose a base branch
from

Conversation

ndefokou
Copy link
Collaborator

@ndefokou ndefokou commented Dec 4, 2024

@ndefokou ndefokou self-assigned this Dec 5, 2024
@Hermann-Core
Copy link
Collaborator

Have you implemented the circuit breaker logic? I didn't see it.

@Blindspot22 Blindspot22 added enhancement New feature or request Pending labels Dec 17, 2024
@ndefokou
Copy link
Collaborator Author

@IngridPuppet Please the test on the pickup are very slow and are not working correctly please can you help me to solve that

Copy link
Collaborator

@Blindspot22 Blindspot22 left a comment

Choose a reason for hiding this comment

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

I think it's good to go 🚀

crates/web-plugins/didcomm-messaging/shared/src/retry.rs Outdated Show resolved Hide resolved
@chendiblessing chendiblessing marked this pull request as draft January 14, 2025 15:01
@Blindspot22 Blindspot22 self-requested a review January 23, 2025 15:06
@Hermann-Core Hermann-Core marked this pull request as ready for review January 24, 2025 14:34
let next = checks(
&message,
&repository.connection_repository,
state.circuit_breaker.get(MEDIATE_FORWARD_2_0).as_deref(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Here, if the circuit breaker is not correctly configured, the fallback (None) could skip validation. This could unintentionally bypass safety checks.

suggestion
Add logging or a fallback mechanism that fails securely if the circuit breaker is misconfigured.

Copy link
Collaborator

Choose a reason for hiding this comment

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

What do you mean? The circuit has nothing to do with the checks logic. Take a look at the checks function implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Pending
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement fault tolerance mechanisms (e.g., retries, dead-letter queues, circuit breakers) E5.
4 participants