Sagas
Назначение
Sagas координируют распределённые операции с Keycloak и БД Identity. Используется ISagaChoreographyHandler, SagaOutbox, PostgreSQL для хранения состояния.
Список Sagas
| Saga | Триггер | Шаги |
|---|---|---|
| CreateEmployee | CreateEmployeeCommand, CreateUserCommand | CreateKeycloakUser, UpdateUserKeycloakId |
| UpdateEmployee | UpdateEmployeeByUserIdCommand | UpdateKeycloakUserProfile |
| UpdateUserStatus | UpdateUserStatusByIdCommand | SetKeycloakUserEnabled |
| UpdateCurrentUserInfo | UpdateCurrentUserInfoCommand | UpdateKeycloakUserProfile |