Comments (10)
What is your use case?
from broadway.
i was just curious since symfony event listeners do have priority if that thing works in broadway too or if there is any thing like that similar or any usage.
from broadway.
I don't really know that there's a need for one without specific use cases. The listeners are projectors and processors so I don't know that a priority is really of any use
from broadway.
yeah I guess we don't have a use case really. Closing then, big thanks 👍 👴 you are the saga 🎱
from broadway.
In my use case I need to send an email after an event is dispatched. In the email I need some information created after a projection handle by the same event. In my case have a priority could be useful
from broadway.
@francescotrucchia That is in the nature of eventual consistency. There is no promise which projector or processor get's the event first. There are quit some good resources about this: https://www.google.nl/search?q=event+sourcing+eventual+consistency
from broadway.
@francescotrucchia In addition to the eventual consistency topic you may need a process manager aka Saga when your email depends on information created by a projection. This can be a simple class listening on the event and delegating the work to the projection first and in a second step to the email service.
from broadway.
@wjzijderveld @codeliner thanks for suggestions 👍
from broadway.
@wjzijderveld I understand the problem of eventual consistency, but in an environment request/response where the process are synchronous I think that the ventual consistency doesn't exists and in this case could be more pragmatic using the priority on listener.
from broadway.
@francescotrucchia I can follow your argument, but eventual consistency depends on the transaction boundary not on PHP's request/response environment.
from broadway.
Related Issues (20)
- drop test/Broadway/TestCase
- make PHPUnit a dependency HOT 5
- test the test helpers with examples HOT 2
- Built-in asynchronous way to run processors? HOT 3
- Example/explanation on event sourcing for aggregate roots HOT 1
- What is the overall state of the project? Is it GDPR ready? HOT 2
- Simple Command Bus - Manage Throwable exceptions
- Could you do a new release? HOT 2
- Are there any plans to update broadway? HOT 1
- Asymmetry between EventBus interface and EventListener interface HOT 2
- Broadway does not seem to survive hot upgrades HOT 2
- duck-typing vs interface HOT 1
- Replaying events to rebuild elastic search index HOT 1
- PHP 8 support HOT 2
- Processor after projector HOT 2
- Aggregator HOT 3
- Indirect development dependency used in src ConcurrencyConflictResolvers
- no recent tags? HOT 1
- Get uncommitted events without empty the aggregate HOT 4
- Give serializers flexibility to map based on event type
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from broadway.