DEV Community

Matheus de Camargo Marques
Matheus de Camargo Marques

Posted on

Series: CQRS and architecture for AI agents

Series: CQRS and architecture for AI agents

This series splits the content of "How CQRS stems the bleeding of your architecture (and saves your AI Agents)" into five shorter articles (~6–7 min read each). The full version in a single file is also available.


Articles in the series

# Article Summary Time
1 Why CRUD bleeds (and what you feel) Symptoms, anatomy of CRUD degradation, and impact on AI agent orchestration. ~6 min
2 CQRS: fundamentals and practice in Elixir Command and Query stacks; Queries and Commands in the Trips4you.Finance context. ~7 min
3 Ask vs Act: RAG, Tool Use and AI agents RAG (Read Path), Tool Use (Write Path), and Read vs Write table for AI governance. ~6 min
4 Event Sourcing and materialization in Elixir Persistence as a timeline; Commanded, AshCommanded, Projectors and Bumblebee/pgvector. ~6 min
5 Evolution without Big Bang: Hexagonal, Strangler and governance Ports and Adapters, Strangler Fig, Evolutionary Architectures, Fitness Functions, conclusion and takeaway. ~7 min

Full version

To read everything at once: How CQRS stems the bleeding of your architecture (and saves your AI Agents).

Enjoyed it? Support the author with a coffee.


Series flow

flowchart LR
  A1[1. CRUD bleeds] --> A2[2. CQRS + Elixir]
  A2 --> A3[3. Ask vs Act]
  A3 --> A4[4. Event Sourcing]
  A4 --> A5[5. Hexagonal and governance]
Enter fullscreen mode Exit fullscreen mode

Top comments (0)