-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Topic syncing and concurrency (#335)
1. Only pull down payloads we haven't already processed (via `pull_from_topic`) 2. Do all payload processing within an atomic transaction that also updates the `last_synced_payload_time` (via `process_for_topic`) These methods are agnostic to which topic, so can be used for both welcomes and group message processing, as well as any other case in the future. Unsure if they belong on `Client` or somewhere else. Some missing pieces: 1. More complicated concurrency test cases 1. Sophisticated error handling (when an error happens, do we update `last_synced_payload_time` or do we not?) 1. Will add a follow-up PR to improve the [safety](#335 (comment)) of borrowing the DB connection in a transaction
- Loading branch information
1 parent
945205f
commit 6c05ffa
Showing
5 changed files
with
327 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.