Products Consulting About Blog Contact Us Česky

Axon Framework

Replacing Axon Sagas with Stateful Event Handlers: What We Built Instead

Replacing Axon Sagas with Stateful Event Handlers: What We Built Instead

Why we replaced Axon sagas — and DeadlineManager — with a Postgres-backed JobStateService, a Spring @Scheduled sweeper, and Temporal for the workflow-shaped work, plus the production gotcha we hit on the way.

  • Axon Framework
  • CQRS
  • Event Sourcing
  • Spring Boot
  • Java
Read more arrow_forward
Testing Axon 5 Aggregates with Spock: A Practical Guide

Testing Axon 5 Aggregates with Spock: A Practical Guide

How to test Axon 5 aggregate state machines using Spock and AxonTestFixture — from creation commands to guard clause rejections, with practical patterns for event chaining, timestamp handling, and injected services.

  • Axon Framework
  • CQRS
  • Event Sourcing
  • Spock
  • Testing
  • Java
Read more arrow_forward
The Silent Metadata Gap: Why Your Axon 5 Events Have No User Attribution

The Silent Metadata Gap: Why Your Axon 5 Events Have No User Attribution

Command metadata doesn't automatically propagate to events in Axon Framework 5. Here's how CorrelationDataProvider fixes the silent data loss — and why it's so hard to catch.

  • Axon Framework
  • CQRS
  • Event Sourcing
  • Spring Boot
  • Java
Read more arrow_forward
Propagating User Identity in Axon 5 Query Handlers

Propagating User Identity in Axon 5 Query Handlers

Why ReactiveSecurityContextHolder is always empty inside Axon query handlers, three approaches we considered, and the Axon MetaData solution that keeps query objects clean.

  • Axon Framework
  • CQRS
  • Spring WebFlux
  • Spring Security
  • Java
Read more arrow_forward
Migrating from Axon Framework 4 to 5: What We Learned

Migrating from Axon Framework 4 to 5: What We Learned

A hands-on account of migrating a CQRS/ES application from Axon Framework 4.12 to 5.0 — the API upheaval, replacing sagas with stateful event handlers, and the reactive payoff.

  • Axon Framework
  • CQRS
  • Event Sourcing
  • Spring Boot
  • Java
Read more arrow_forward