Skip to content

Build ​

How kernable works, and how to write and change an application on it. The tutorials show the same ideas in code; Run covers production, and the reference has the details.

How kernable works ​

PageCovers
How kernable worksWhat the kernel does and what your processes do; commands, events and queries; aggregates, read models, reactors, middleware and processes, and when you need a process
Event sourcing in kernableAggregates, commands, events, and how it differs from CRUD
DomainsWhat a domain holds, its rules, how it relates to services, a code layout
Order and consistencyOne command per aggregate, listener order, settling; unique keys and conditions across aggregates
Queries and middlewareWhy every read goes through the kernel, and how checks fail closed
Business processesFlows across commands, events and queries, run by the kernel and shown in its UI
Data over timeEvent versions, formats, the vault, snapshots

Write your application ​

GuideWhen you need it
Test your domainYou want to test aggregates without a kernel, or against a real one.
Schedule a commandA command should run later: a timeout, a reminder, a deadline.
Passwords and other secretsA command carries a value that must never be stored.
Store files and cache valuesA domain needs files (an invoice PDF) or values that expire (a rate limit).
AI agents over MCPAI agents should call some of your commands and queries as tools, within your rules.
KitsYour application needs tenants, people who sign in, roles and invitations, as code you own.

Change it later ​

GuideWhen you need it
Change an event's formatAn event must carry something new, but stored events stay as they are.
Rebuild a read modelYou fixed a handler bug, or a read model should hold something new.
Remove a listener, middleware or aggregateYou stop running something, and the kernel should stop waiting for it. Covers memberships.

Background: compared with other systems.