-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify Broker and Subscriber functionality (#450)
Previously, brokers in Protean were the primary conduits for events. So, a lot of their functionality included automatic translation of events to messages and back, and handling Protean elements. This commit simplifies broker functionality and retains one primary responsibility: communicating with a broker (publish and receive). * `Broker.publish()` is used to push messages to a broker. * Subscribers connected to channels receive messages from brokers. * Publish messages on UoW exit: Messages pushed into brokers within a UoW are published only on UoW exit, adhering to transaction boundaries. * Add type annotations to the broker adapter base
- Loading branch information
Showing
33 changed files
with
425 additions
and
944 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.