┌──────────────┐ ┌──────────────┐ ┌───────────────────────┐
│ Controller │──────▶│ MediatR │──────▶│ CreateProdutoHandler │
└──────────────┘ └──────────────┘ └──────────────┬────────┘
│
│ injeta
▼
┌──────────────────────────┐
│ IProdutoRepository │
│ (Decorator registrado) │
└──────────────┬───────────┘
│
│ chama internamente
▼
┌─────────────────────────────────────────────┐
│ ProdutoRepositoryCacheDecorator │
│ - Atualiza cache Redis │
│ - Encaminha operação ao repositório real │
└─────────────────┬───────────────────────────┘
│
│ chama
▼
┌─────────────────────────────────────────────┐
│ ProdutoRepository │
│ - Usa EF Core │
│ - Salva no banco SQL │
└─────────────────┬───────────────────────────┘
│
│ commit
▼
┌─────────────────────────────────────────────┐
│ UnitOfWork │
│ - SaveChangesAsync │
│ - CommitAsync transaction │
└─────────────────────────────────────────────┘
-
Notifications
You must be signed in to change notification settings - Fork 0
Arquitetura Limpa com CQRS MediatR e caching distribuído.
License
wesleyfariasdev/dotnet-cache-examplo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Arquitetura Limpa com CQRS MediatR e caching distribuído.
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published