What is the Listen to Yourself Pattern? | Designing Event-Driven Microservices

Поділитися
Вставка
  • Опубліковано 27 вер 2024

КОМЕНТАРІ • 9

  • @kevinding0218
    @kevinding0218 4 місяці тому

    Thanks a lot for the video. With the Listen to Yourself pattern, it implies that when our microservice performs a calculation or similar operation, the resulting data should be included in the event payload. This enables the service to rely on the data within the event payload to update its own database when it listens to itself.
    In this setup, I feel it's crucial to pay careful attention to the message bus configuration, particularly aspects like order delivery guarantees.
    Alternatively, employing event sourcing might be beneficial to provide a mechanism for reconciliation in case of discrepancies. For instance, if the process involves calculating a deposit check, merely having a snapshot of the calculation in the event payload might be insufficient.

  • @robreid_io
    @robreid_io 7 місяців тому +3

    The Transactional Outbox pattern (with CDC) always works nicely as a way to avoid the Dual Write problem!

    • @Fikusiklol
      @Fikusiklol 7 місяців тому

      I believe that outbox is just straight up slower and sending an event right away is more perfomant. Do I get it right?

    • @MaxingMix
      @MaxingMix 7 місяців тому +1

      @@Fikusiklol but you may run into dual write problem without oubox

    • @Fikusiklol
      @Fikusiklol 7 місяців тому

      @@MaxingMix Yeah, I get it. I usually just stick to outbox, cause there are no perfomance issues in my domain. Thanks!

    • @thats_mr_rob
      @thats_mr_rob 7 місяців тому +1

      @@ConfluentDevXTeam You've thought of everything! 😄 Thanks for sharing and for the great content, Wade.

    • @caspersthrane
      @caspersthrane 6 місяців тому

      Outboxing is a far better solution, to solve the dual write problem.

  • @sabaokangan
    @sabaokangan 7 місяців тому

    Thank you so much for sharing this with us on UA-cam ❤️‍🔥 from SeoulNatU

  • @SwapnilDharane
    @SwapnilDharane 6 місяців тому

    How is it different than the saga pattern