eiffel-community / eiffel-gerrit-plugin

Eiffel Gerrit plugin listens on the changes in Gerrit and sends out Eiffel events
Apache License 2.0
3 stars 15 forks source link

Add retry handling when sending Eiffel message to REMReM #31

Closed Christoffer-Cortes closed 5 years ago

Christoffer-Cortes commented 5 years ago

Description

We need to implement some sort of thread safe retry handling for our requests.

Motivation

We don't want to immediately dismiss messages that don't reach REMReM.

Exemplification

Spring-retry Spring has a solution for a retry mechanism. CircuitBreaker pattern CircuitBreaker Spring Also look at circuit breaker pattern and the implementation by spring.

Benefits

Avoid lost requests.

Possible Drawbacks

It could potentially put an extra burden on resources and make the system more unresponsive. This needs to be implemented carefully.