~/talk

Eventsourcing and CQRS in Elixir

Talkat ElixirConf EU 2021 · 2021-09-09..09-10· [elixir-and-erlang]
links:none on file
slides:none on file

Builds a small event‑sourced bank using the commanded library in Elixir: defines commands (deposit, withdraw, send), domain events (account opened, money deposited/withdrawn, journal entry), and an aggregate with execute/apply callbacks that emit events and update balance. Uses projectors with Ecto.Multi to populate read models and a process manager that turns money‑sent events into receive commands, handles missing destination accounts by emitting failure events and compensating journal entries, and shows upcasters for event versioning plus GDPR guidance to avoid storing personal data in events.

AI-written summary · about

  1. 0:00Start
  2. 3:41Requirements
  3. 5:21Common Types
  4. 5:58Commands
  5. 6:29Events
  6. 7:58Router
  7. 9:28Accounts Aggregate
  8. 11:33Accounts Context
  9. 13:16Account Entry Schema
  10. 13:47Account Entry Projector
  11. 17:56Send To Account
  12. 19:59Receiving Money
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.