Skip to content

History is lost when using BlobsStorage #191

Closed Locked Answered by corinagum
nemesv asked this question in Q&A
Discussion options

You must be logged in to vote

@nemesv Thanks for your patience in me getting back to you. I was looking into possible solutions for this problem, particularly around comparing etags for history, but input from Steve was different feedback.

from @Stevenic:

the last writer wins is typically the best approach. We normally tell developers to treat the bot's state memory as cookie storage and don’t use it to store anything transactional. If you need transactions you’ll need to write directly to a database.

The idea I was looking into (as a custom solution to deal with the rest error) would be to put a delay on writing to blob storage in case two of the same etag come in, resolving the discrepancy, then writing to storage.


Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by corinagum
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
support answered completed items previously under dev support label
2 participants
Converted from issue

This discussion was converted from issue #181 on June 22, 2023 18:07.