Skip to content

Allow EmbeddedEventStore to be configured via application.properties#4466

Merged
smcvb merged 4 commits intoaxon-4.13.xfrom
feature/embedded-event-store-properties
Apr 28, 2026
Merged

Allow EmbeddedEventStore to be configured via application.properties#4466
smcvb merged 4 commits intoaxon-4.13.xfrom
feature/embedded-event-store-properties

Conversation

@abuijze
Copy link
Copy Markdown
Contributor

@abuijze abuijze commented Apr 26, 2026

Users who need to disable the event consumption optimization (e.g. to
avoid memory pressure during replay or migration) previously had to
either pass a JVM system property or override the auto-configured
EmbeddedEventStore bean entirely.

A new EmbeddedEventStoreProperties class exposes the most relevant
EmbeddedEventStore builder parameters under the axon.eventstore prefix:

axon.eventstore.optimize-event-consumption (default: true)
axon.eventstore.cached-events (default: 10000)
axon.eventstore.fetch-delay (default: 1000ms)
axon.eventstore.cleanup-delay (default: 10000ms)

The JVM system property optimize-event-consumption continues to work
unchanged. All defaults are identical to the previous behaviour.

Reference guide updated with a description of each property and a note
on the memory implications of the count-based cache limit.

Users who need to disable the event consumption optimization (e.g. to
avoid memory pressure during replay or migration) previously had to either
set a JVM system property or override the entire EmbeddedEventStore bean
in their autoconfiguration. The new EmbeddedEventStoreProperties class
exposes the most relevant tuning parameters via application.properties:

  axon.eventstore.optimize-event-consumption=false
  axon.eventstore.cached-events=5000
  axon.eventstore.fetch-delay=500ms
  axon.eventstore.cleanup-delay=5s

The JVM system property optimize-event-consumption continues to work
unchanged. The default for all settings remains the same as before.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@abuijze abuijze requested a review from smcvb April 26, 2026 08:54
@abuijze abuijze added this to the Release 4.13.1 milestone Apr 26, 2026
@smcvb smcvb added Type: Enhancement Use to signal an issue enhances an already existing feature of the project. Priority 3: Could Low priority. Issues that are nice to have but have a straightforward workaround. labels Apr 28, 2026
Copy link
Copy Markdown
Contributor

@smcvb smcvb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

@smcvb smcvb enabled auto-merge April 28, 2026 08:44
@sonarqubecloud
Copy link
Copy Markdown

❌ The last analysis has failed.

See analysis details on SonarQube Cloud

@smcvb smcvb merged commit ab0be97 into axon-4.13.x Apr 28, 2026
5 of 7 checks passed
@smcvb smcvb deleted the feature/embedded-event-store-properties branch April 28, 2026 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority 3: Could Low priority. Issues that are nice to have but have a straightforward workaround. Type: Enhancement Use to signal an issue enhances an already existing feature of the project.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants