Live Demo
This isn't a video. A real RECQ system is running right now, with all seven component types on a live Evento Server. Use the app, then open the console and watch the same system from the inside.
Two windows into one system
The application
A collaborative todo-list app. Every click is a Command, every change an Event in the store, every screen a Query, with updates pushed as soon as the Projector has them.
Open demo.eventoframework.comThe GUI
The console attached to the same server: payloads and components, the application graph recovered from source, message flows and live telemetry.
login: guest · password: evento-demo (read-only)
Open gui.eventoframework.comEverything resets every 4 hours, so break whatever you like.
Evento 3, live
The demo runs Evento 3.0.4. Each of these is something you can try in the app or see in the console:
The bundle is configured from evento.bundle.* properties, not built by hand.
Read your writesAfter every action, the next page waits until the Projectors have it. No stale page, no retry loop.
Forget meYour name is encrypted with a key of your own. Delete the key and the name is unreadable everywhere.
Check allOne Command, one Event per todo, stored all or none.
Pages and streamsLists come in pages. The CSV export streams from a database cursor, at the pace of your download.
Payload versioningTodoListCreatedEvent is at @Revision(1), and an upcaster reads the events written before it.
Test fixturesAggregates, Sagas and Services tested given/when/then, without a server.
Hardened serverThe prod security profile: bus token, TLS, payload allowlist, and a read-only audited console.
Read the source
All of it is open source in evento-todo. Each component is one plain Java class:
What the code looks like
The Aggregate: one Command, several Events
@AggregateCommandHandler(produces = TodoListTodoCheckedEvent.class)
public DomainEvents handle(TodoListCheckAllCommand command, TodoListAggregateState state) {
var open = state.getTodos().entrySet().stream()
.filter(e -> !e.getValue()).map(Map.Entry::getKey).sorted().toList();
Assert.isTrue(!open.isEmpty(), "Error: Nothing to check");
// One command, one event per todo: stored all or none, applied in order
var events = new ArrayList<TodoListTodoCheckedEvent>();
for (int i = 0; i < open.size(); i++) {
events.add(new TodoListTodoCheckedEvent(command.getIdentifier(), open.get(i), i == open.size() - 1));
}
return DomainEvents.of(events);
}
Personal data: the right to erasure in an immutable store
public class UserRegisteredEvent extends DomainEvent {
@DataSubject private String userId; // pseudonymous, stored in clear
@PersonalData private String name; // encrypted with the key of userId
}
@Service
public class UserPrivacyService {
@CommandHandler
public UserForgottenEvent handle(UserForgetCommand command) {
SubjectKeys.forget(command.getUserId()); // the key is gone: so is the name, everywhere
return new UserForgottenEvent(command.getUserId());
}
}
Look at what's missing: no broker configuration, no retry plumbing, no hand-written topology. The annotations are the architecture, and the console's application graph comes from exactly this code.
How the demo is deployed
It's a textbook RECQ deployment:
- evento-server 3.0.4: Message Gateway and System State Store (event store on Postgres), in the
prodsecurity profile with a bus token, TLS on the bus, a payload allowlist and a master key for the personal-data keys. - evento-todo: one Spring Boot bundle hosting all seven component types.
- Evento GUI: attached to the server, read-only for guests. Every refused change goes in the audit trail.
- Fronted by a reverse proxy, and reset every 4 hours.
The whole stack is one Docker Compose file, docker-compose.prod.yml; To run Evento on your machine, start from the quickstart.
Build one.
Free to run in production, every feature public, client libraries under Apache-2.0.