Truc's NotesVol. 1 (2026)

Truc's Notes

On code and life

Truc Nguyen*

Contents

  1. 1Decorator with Scrutor in .NET

    A quick note on how to add caching (or any cross-cutting concern) to your services using the decorator pattern and Scrutor — without touching the original service.

    tech, c#, dotnet, design patterns

  2. 2Use ValueTask<T> in .NET

    A quick note on when and why to use ValueTask<T> instead of Task<T> in .NET for high-throughput, cache-friendly async APIs.

    tech, c#, dotnet, async

  3. 3Hybrid Cache with In-Memory + Redis in .NET

    A quick note on setting up hybrid caching in .NET — combining in-memory (L1) and Redis (L2) for fast, scalable APIs. Includes config, load test results, and trade-offs.

    tech, c#, dotnet, caching, redis

  4. 4Cuộc hành trình 6 năm ở Anh

    Năm 2019, nhận được một tin nhắn trên linkedin từ một người lạ mời mình sang Anh làm việc, lúc đó mình đang làm cho một công ty ở Việt Nam

    life, uk, story · in Vietnamese

  5. 5Velkommen

    This is my first post on my new blog. Join me as I share my thoughts and experiences.

    general