Training

Two days, sixteen parts, one mortgage

We don't start with technology. We start with a problem you know, and step by step we build an event-driven system out of a calculator.

Introduction

Two days, sixteen parts, one mortgage

We don't start with technology. We start with a problem you know, and step by step we build an event-driven system out of a calculator.

Day 1

  1. Events
  2. Contracts
  3. Subscribers
  4. Broker
  5. Rules
  6. Projection
  7. API
  8. Flow

Day 2

  1. Write
  2. Disbursement
  3. Process
  4. Evolution
  5. Recovery
  6. Failure
  7. Security
  8. The whole

The rhythm of each part

  1. Problem
  2. Experience
  3. Principle
  4. Application
  5. Trade-off
  6. Exercise

TakeawayEach technique arrives when the previous step starts to need it. Event Sourcing is just one of the options.

More on this topic

What it means

Event-Driven Architecture (EDA) is a way of letting parts of a system talk mainly through events. An event says that something happened. It does not say what others should do.

Why we use it

The sender doesn't need to know the recipient or wait for it. Services are less coupled and the system grows more easily.

When it makes sense

When one change triggers work in several places, when other services must not block the user, or when it matters to know what happened.

Where it breaks

  • Introducing all the techniques at once. Each one has its cost.
  • Treating Event Sourcing as a prerequisite for EDA. It is just one of the options, covered in part 05.
  • Underestimating operations: duplicates, ordering and outages are the normal state, not the exception.

Imagine

Imagine a mortgage. The application goes through risk, approval, identity and account creation, the contract and payout. Each step is a separate service. Over two days we'll see everything that can go wrong and how to handle it.

The point is not to use as many techniques as possible, but to recognise when their cost is worth it.

Lab

Lab and exercises

Each exercise has a brief, a principle and an experiment in the simulator: the same scenario without and with the solution. The simulated broker and event store run entirely in the browser.

Summary

Which problem each part solves

Each technique answers a specific problem. We introduce it only when we really have that problem.

  1. History and rules get lost
  2. Application, Event Sourcing as a choice05
  1. State is not visible, reads differ from writes
  2. Projections, CQRS, operation status06, 07
  1. Contracts, changes and rebuilding views
  2. Domain language, versions, replay, snapshot02, 12, 13
  1. Failures, duplicates, unknown outcome, load
  2. Outbox, Inbox, idempotency, retry, DLQ, observability04, 09, 10, 14
  1. Long process across services
  2. Saga and Process Manager11, 16

TakeawayLet's not ask which technique to use. Let's ask what problem we have.

More on this topic

What it means

EDA techniques are tools. Each solves one class of problems and adds its own cost.

Why we use it

Going one part at a time prevents unnecessary complexity and shows exactly what each technique solves.

When it makes sense

When designing new integrations and when reviewing existing ones.

Where it breaks

  • Adopting all techniques at once.
  • Neglecting operations: monitoring the DLQ, backlog and projection lag.
  • Forgetting that the team has to understand every technique.

Imagine

Let's take our own project and go through the “Try it in your own project” exercise in the part that matches our biggest problem.

We choose a technique by the problem, not by fashion.

Training for your team

Would you like this training for your team?

We run the training on your code and your domain problem. We agree the scope, dates and format with you.

Discuss the training