TechDays 2017 - Scalable Enterprise Applications with CQRS and Service Fabric

TechDays 2017 - Scalable Enterprise Applications with CQRS and Service Fabric

In this session we will show how we use CQRS and event sourcing to deploy our ERP solution on Service Fabric. We will talk about the pitfalls and the lessons learned. But we will also talk about how we keep this maintainable and testable by applying the ports and adapters approach from hexagonal architecture.

03dc1d993fa7d5de422c1f35d53f80e6?s=128

Michiel Overeem

October 13, 2017
Tweet

Transcript

  1. 4.

    Filmpje mark (eerste plaat van het filmpje hier) 4752 cores,

    70 TB RAM, 380 TB SSD storage 18.000 concurrent RDP users 450.000 unique users a month 5.600.000 API calls a day AFAS Online (89% customers)
  2. 5.
  3. 7.

    Client Command system Query system Eventing system “PlaceOrderCommand”: { “OrderId”:

    “0b81b458-7671-4e9b-844b-9934255f5406”, “CustomerName”: “Linus Torvalds”, “OrderLines”: [ … ] }
  4. 8.

    Client Command system Query system Eventing system The command system

    validates the command, using its own datamodel.
  5. 9.

    Client Command system Query system Eventing system “OrderPlacedEvent”: { “OrderId”:

    “0b81b458-7671-4e9b-844b-9934255f5406”, “CustomerName”: “Linus Torvalds”, “OrderLines”: [ … ] }
  6. 14.

    Client Command system Query system Eventing system Use the events

    published to built up the state in the Command system.
  7. 15.

    Client Command system Query system Eventing system Use the events

    published to built up the state in the Command system.
  8. 17.
  9. 18.
  10. 19.
  11. 23.
  12. 24.

    Client Command system Query system Eventing system “PlaceOrderCommand”: { “OrderId”:

    “0b81b458-7671-4e9b-844b-9934255f5406”, “CustomerName”: “Linus Torvalds”, “OrderLines”: [ … ] }
  13. 25.

    Client Command system Query system Eventing system “OrderPlacedEvent”: { “OrderId”:

    “0b81b458-7671-4e9b-844b-9934255f5406”, “CustomerName”: “Linus Torvalds”, “OrderLines”: [ … ] }
  14. 27.
  15. 28.
  16. 29.
  17. 30.
  18. 31.
  19. 32.
  20. 33.
  21. 34.

    Client Query system Eventing system Load balancer “PlaceOrderCommand”: { “OrderId”:

    “0b81b458-7671-4e9b-844b-9934255f5406”, “CustomerName”: “Linus Torvalds”, “OrderLines”: [ … ] }
  22. 35.
  23. 36.
  24. 38.

    Client Command system Query system Eventing system “OrderPlacedEvent”: { “OrderId”:

    “0b81b458-7671-4e9b-844b-9934255f5406”, “CustomerName”: “Linus Torvalds”, “OrderLines”: [ … ] }
  25. 41.
  26. 42.
  27. 43.
  28. 44.
  29. 45.
  30. 46.
  31. 48.
  32. 49.
  33. 51.
  34. 52.
  35. 53.
  36. 57.
  37. 61.
  38. 62.
  39. 63.
  40. 64.