I'm playing around with some new concepts for me, event sourcing, microservices, and all this paradigma.
Suposing we have the following structure, which represents a basic event driven architecture
UI -> API -> EVENTS BROKER ->> MICROSERVICES
we make a request from the client (UI) to the server (API) the a command is executed which throws an event, which is published into the EVENTS BROKER and then each services subscribed to that specific event will start a proces right? but what if I want to also implement event sourcing, it maybe seems like this right?
UI -> API -> EVENTS BROKER ->> MICROSERVICES
-> EVENTS STORE
for this example say that I have an aggregate which is called Products what about if after I save the event in the event store my business logic says that it should not be allowed, because I don't now maybe we only accept new products at specific days in the month, but now I've already stored the event
The question itself is, when should I save the event into the EVENT STORE in this case?
