A Deep Dive into Spring Application Events

Поделиться
HTML-код
  • Опубликовано: 26 сен 2024
  • Events have become a key element of modern application design, especially when it comes to distributed applications. But in monolithic applications, they can also be used to improve modularity, as Spring’s Application Event abstraction and the associated infrastructure components make it easy to design, publish and consume events.
    The talk starts by giving an overview about the building blocks of Spring’s core event infrastructure. It continues with an example of how to decouple Spring components using events, discusses different ways of implementing a variety of interaction scenarios, and how Spring Data allows you to take a more domain-driven approach to event publication. We end up by discussing advanced event handling scenarios and failure handling.
    Oliver Drotbohm: Senior Principal Software Engineer, VMware
    Slides: www.slideshare...

Комментарии • 8

  • @NilsElHimoud
    @NilsElHimoud 3 года назад

    Good Stuff. Thanks!

  • @sameeramanorathna1316
    @sameeramanorathna1316 3 года назад

    great stuff

  • @DavidePavan
    @DavidePavan 3 года назад +1

    Very interesting! Thank you so much.

  • @smithdragon6477
    @smithdragon6477 3 года назад +3

    where is the code

    • @naregbar190
      @naregbar190 3 года назад +3

      Here: github.com/odrotbohm/spring-events-deep-dive

  • @jfractal2009
    @jfractal2009 7 месяцев назад

    If method which is marked as EventListener returns some object it will publish as a new event? Really? I tried but there wasn’t any new event. As far as I know Spring just ignores such objects

    • @ianwanjala8621
      @ianwanjala8621 19 дней назад +1

      I think he means that if you want to return an object from an event then you'd need to publish another event

  • @whatslifespurpose
    @whatslifespurpose 2 года назад

    SpringEvents are not helpful at all when deploying on instances that can just restart due to updates to server box, it is better to use Queues or something persistent to handle events.