Microservices-based social network built with .NET8 and ASP .NET Core Blazor WebAssembly, following distributed DDD principles. Scalable social media application CQRS distributed event-driven solution, utilizing SignalR, .NET ML. Features include choreographical Saga patterns, asynchronous messaging, outbox pattern and distributed event sourcing
There is a problem because GetOrganizerOrganizations query gives only IEnumerable where we have Id and Name for each organization, meanwhile AddEvent command in Events Service requires RootOrganizationId to validate organization by GetOrganization query. So there some update is needed, I think there are two options here:
GetOrganizerOrganizations returns dtos with Id, Name and RootId.
GetOrganization not requires RootId and checks all documents in organizations collection.
I think the first option would be better, but may be more complicated in implementation. Which way should we go?
There is a problem because GetOrganizerOrganizations query gives only IEnumerable where we have Id and Name for each organization, meanwhile AddEvent command in Events Service requires RootOrganizationId to validate organization by GetOrganization query. So there some update is needed, I think there are two options here:
I think the first option would be better, but may be more complicated in implementation. Which way should we go?