On my project we’re using Axon Server 4.2.
I’m implementing next use case:
N microservices on startup are calling using Command another one microservice(C-service) in order to send some configuration data. This data is registered as Aggregate in C-services.
The issue here is that N microservices are running in K8S so can have M running instances for same microservice. Each of this instance will send same configuration data to C-Service.
So C-Service will consume many times same Command from one type of microservice.
Is it possible to implement some thing like CreateOrUpdate Command which will Create new record for Aggregate if it does not all ready exists or Update existing record in Aggregate.
Or this kind of modelling does not follow DDD? What is the correct way in this case?