Greetings,
I have 2 apps. 1 is very simple (voice notifications) and uses Axon. The other is the monolith I want to decompose. Basically, the goal is to introduce Axon to the monolith based on the webinar, and make it work with the notifications app. I just need a little direction regardless of whether or not the suggestions make sense for my situation. Feel free to provide answers based on assumptions as long I know what those assumptions are.
The new apps will belong to a different namespace (ie. everything in the monolith is under com.foo.app but the new names will be com.bar.). Per the webinar, I will find interesting pieces of code from which to publish events. Ideally, will the events belong to the new com.bar namespace?
Before putting such code in place, should I publish/generate, say, Created events for the pre-existing data? I mean, it doesn’t seem to make sense that I would publish a SpecificationApproved event before a SpecificationCreated event
The simple app already has an event store. Ideally, will the monolith use that same event store? Assuming they would, does anyone have any advice for configuring the event store to use a non-@Primary datasource/EntityManager/etc… (see diagram) with Spring Boot? Documentation/examples are provided for setting up 2 of everything and marking 1 as @Primary, but what about the Axon piece?
Thanks in advance!