The new file profile manager seeds and saves the aggregate from GetAllFileProfiles and GetFileProfile. That turns read operations into write operations and makes GET fail if the event store write path is unavailable. It also creates a cold-start race when multiple requests hit the missing aggregate at once. Move seeding to startup or a dedicated initializer instead.
The new file profile manager seeds and saves the aggregate from GetAllFileProfiles and GetFileProfile. That turns read operations into write operations and makes GET fail if the event store write path is unavailable. It also creates a cold-start race when multiple requests hit the missing aggregate at once. Move seeding to startup or a dedicated initializer instead.