Posted on:
March 20th, 2025
Tips and Tricks #86: Use CQRS for Complex Domain Logic
Separate read and write operations for better scalability and simpler code.
Separate read and write operations for better scalability and simpler code.
Abstract data access logic behind a clean interface for testability and flexibility.
Replace Task with ValueTask in frequently-called async methods that often complete synchronously.
Rent and return arrays from a shared pool to avoid repeated allocations in buffer-heavy code.
Eliminate heap allocations when parsing strings by using Span
Build modular, tested, documented data transformations with dbt.