Modelling complex business domains with events

Ben Smith

Modelling complex business domains with events

Ben Smith

Overview

  1. Introduction to domain events
  2. Modelling complex business processes with events
  3. Implementing our model in Elixir

What are domain events?

Domain event

Event-driven systems

See Martin Fowler's What do you mean by “Event-Driven”?

How do I model with events?

  1. Big picture
    • Knowledge or learning is the most valuable outcome
    • Identify bounded contexts and/or service boundaries
  2. Design level
    • Design a solution to a specific business problem
    • Desired outcome is a robust candidate solution

www.eventstorming.com

Big picture EventStorming

Design level EventStorming

Modelling an online auction system

How do I implement the model in Elixir?

Commanded generator

Mix task to create a new Commanded project.

mix commanded.new auctioneer --miro o9J_lDnyq6U=

Get in touch