Stateless support for failed calls #4640
ColinBoisLydia
started this conversation in
General
Replies: 1 comment
-
Hey, @ColinBoisLydia we would love to go on a meeting with you to understand the use cases here. Can I have your email so that I can send you invite or join our Slack channel? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
Due to built-in retries and given the way Go SDK catch failed calls to a Rudder stack, it is impossible to build a stateless application with delivery assurance.
At the moment,
analytics.Client
embed aCallback
implementation where we don't have access to the internal payload of ananalytics.Message
given its signature:Thus, we cannot copy internal data into a cache DB nor retrieve an ID which could allow us to reconstruct an
analytics.Message
from data stored in a DB for instance. With this SDK implementation, we have to add a stateful internal retry queue in our services which can lead to data loss during a fast rolloutSteps to reproduce the bug
N/A
Expected behavior
I see two possible solutions:
Data()
toanalytics.Message
to let us copy the internal data to DB for instance (a builder method who ingest the output ofData()
would be a huge plus)Screenshots
N/A
Beta Was this translation helpful? Give feedback.
All reactions