Skip to content

queueing events for batch-write#4

Open
alandyer wants to merge 10 commits intomasterfrom
dynamo-dispatcher
Open

queueing events for batch-write#4
alandyer wants to merge 10 commits intomasterfrom
dynamo-dispatcher

Conversation

@alandyer
Copy link
Copy Markdown
Contributor

@alandyer alandyer commented Nov 3, 2017

Update to the dynamo event store. Now put_event queues an event for persistence and returns control to the calling process. Periodically the process sends a message to remind itself to persist the events it has collected. Passes the (modified) tests but needs additional tests to expose how dynamo handles payloads greater than the batch-write limit.

Should get_event check pending events before submitting the request to dynamo? Probably. I had to add waits to the tests to prevent "eventual consistency" failures.

Ignore the 1ms interval, that was from my testing. I would like to provide a way to configure the interval to persist.

Getters are still static code that blocks the calling process, which would have to change if it checked the pending events.

@alandyer alandyer requested a review from Version2beta November 3, 2017 14:35
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