Giter Site home page Giter Site logo

Comments (10)

mbadolato avatar mbadolato commented on July 24, 2024

What is your use case?

from broadway.

cordoval avatar cordoval commented on July 24, 2024

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.

mbadolato avatar mbadolato commented on July 24, 2024

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.

cordoval avatar cordoval commented on July 24, 2024

yeah I guess we don't have a use case really. Closing then, big thanks 👍 👴 you are the saga 🎱

from broadway.

francescotrucchia avatar francescotrucchia commented on July 24, 2024

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.

wjzijderveld avatar wjzijderveld commented on July 24, 2024

@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.

codeliner avatar codeliner commented on July 24, 2024

@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.

francescotrucchia avatar francescotrucchia commented on July 24, 2024

@wjzijderveld @codeliner thanks for suggestions 👍

from broadway.

francescotrucchia avatar francescotrucchia commented on July 24, 2024

@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.

codeliner avatar codeliner commented on July 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.