Upgrade to Pro — share decks privately, control downloads, hide ads and more …

JWTB - Begin EventSourcing With Lagom

JWTB - Begin EventSourcing With Lagom

Ola Petersson

April 17, 2018
Tweet

More Decks by Ola Petersson

Other Decks in Education

Transcript

  1. .

  2. CMD

  3. { addBurger } { food: [], drinks: [] } {

    burgerAdded } commands Events AGGREGATE
  4. { addBurger } { food: [burger], drinks: [] } {

    burgerAdded } commands Events AGGREGATE
  5. { addBurger } { food: [burger], drinks: [] } {

    addBeer } { burgerAdded } commands Events AGGREGATE
  6. { addBurger } { food: [burger], drinks: [] } {

    addBeer } { burgerAdded } { beerAdded } commands Events AGGREGATE
  7. { addBurger } { food: [burger], drinks: [beer] } {

    addBeer } { burgerAdded } { beerAdded } commands Events AGGREGATE
  8. { addBurger } { food: [burger], drinks: [beer] } {

    addSalad } { addBeer } { burgerAdded } { beerAdded } commands Events AGGREGATE
  9. { addBurger } { food: [burger], drinks: [beer] } {

    addSalad } { addBeer } { burgerAdded } { saladAdded } { beerAdded } commands Events AGGREGATE
  10. { addBurger } { food: [burger, salad ], drinks: [beer]

    } { addSalad } { addBeer } { burgerAdded } { saladAdded } { beerAdded } commands Events AGGREGATE
  11. { addBurger } { food: [burger, salad ], drinks: [beer,

    water] } { addSalad } { addBeer } { addWater } { burgerAdded } { saladAdded } { beerAdded } { waterAdded } commands Events AGGREGATE
  12. .

  13. • lagom - lagomframework.com/ • Akka - https://akka.io/ • reactive

    microsystems - https://t.co/dm4wLJKV6f by Jonas Bonér • develop reactive microservices - https://www.lightbend.com/blog/developing-reactive-microservices-free -oreilly-mini-book-by-java-champion-markus-eisele by Markus Eisele • Event Sourcing - https://martinfowler.com/eaaDev/EventSourcing.html by Martin Fowler • Sebastian Daschner - EventSourcing and JavaEE tutorial https://www.youtube.com/watch?v=CYocFQvl6s0&list=PLEV9ul4qfGOZ5gWIPMl FGMUpenSs1EvxZ • Axon framework - http://www.axonframework.org/ • Eventuate - http://eventuate.io/ • EventStore - https://eventstore.org/