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

Issue 93 #97

Merged
merged 7 commits into from
Jul 31, 2024
Merged

Issue 93 #97

merged 7 commits into from
Jul 31, 2024

Conversation

dajtxx
Copy link
Collaborator

@dajtxx dajtxx commented Jul 31, 2024

This change vastly simplifies the code of individual delivery services, while adding extra protection against service failure.

The BaseWriter class accepts messages from logical_timeseries RabbitMQ exchange and writes them to a service-specific database table. A thread reads from the table and invokes the service-specific on_message method to deliver the message to the destination platform. on_message may return ok, fail, or retry. The service-specific code is responsible to deciding how many times a message should be retried before being marked as a fail.

The Ubidots client code was updated to include the broker correlation id in its log messages, and also have the 0.3s delay before calls to adding data which is probably what caused some of the error responses we're seeing.

@dajtxx dajtxx merged commit 35c1c38 into master Jul 31, 2024
1 check failed
@dajtxx dajtxx deleted the issue_93 branch July 31, 2024 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant