Evento

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.com

The 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.com

Everything resets every 4 hours, so break whatever you like.

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 prod security 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.

The live todo demo running on demo.eventoframework.com

Build one.

Free to run in production, every feature public, client libraries under Apache-2.0.