Part 1 - Building my homelab foundation (Docker, DNS, reverse proxy)Building the foundation of my homelab I originally built my homelab just to experiment. I wanted to try things out, run a few services, and see what I could do with a small machine at home. Nothing seMar 19 · 5 min readyanpitangui.com
[EN] Detecting if the application is running to create migrationsChallenges with Scoped Dependencies in DbContext In Entity Framework Core, DbContext is often used to interact with the database. However, in complex scenarios like multi-tenant applications, you might need to inject scoped services such as TenantPro...Jun 15, 2023 · 2 min readyanpitangui.com
[PT-BR] Detectando se a aplicação está rodando para criar migrationsDesafios com Dependências "Scoped" no DbContext No Entity Framework Core, o DbContext é frequentemente usado para interagir com o banco de dados. No entanto, em cenários complexos como aplicações multi-tenant, você pode precisar injetar serviços "sco...Jun 15, 2023 · 2 min readyanpitangui.com
[EN] Efficiently Deleting Redis Keys by Pattern in .NETTraditional Approach: The Drawbacks of Single Key Deletion When working with Redis, you might typically use a method like the following to delete keys: public class CacheManager { private readonly IDistributedCache _cache; public CacheMa...Jun 14, 2023 · 2 min readyanpitangui.com
[PT-BR] Deletando chaves de maneira eficiente utilizando regex no .NETAbordagem Tradicional: As Desvantagens da Exclusão de Chaves uma por uma Ao trabalhar com Redis, você pode usar um método como o seguinte para excluir chaves: public class CacheManager { private readonly IDistributedCache _cache; public C...Jun 14, 2023 · 2 min readyanpitangui.com