Tag: C#
-
Aggregate: Where You Draw the Lines (and What It Costs to Draw Them Wrong)
DDD aggregate design from first principles: the four rules, how to find the consistency boundary, and what it costs when you draw the lines wrong.
-
Five Bounded Contexts, Three Services: A Tour of a Warehouse Domain
Bounded contexts in practice: a tour of five contexts mapped to three services, how they talk through events not shared types, and the use cases behind them.
-
C# Threads? What purpose do they serve? (more theoretical)
Can you imagine an application that, when you input some data or press a button, freezes and waits for a long action to finish executing? Exactly, me neither… How is it done in C#? What are Threads? A…
-
How does .Net Schedule Tasks?
We’ve previously had a chance to learn about SynchronizationContext, so now it’s time to explore the second crucial component related to thread synchronization in .NET: TaskScheduler. These two mechanisms are fundamental to mastering multi-threaded work in the .NET…
-
SynchronizationContext: A Carpenter’s Workshop Analogy
Since we’ve started diving into multithreading, we can’t skip a crucial concept like SynchronizationContext which is used in async/await and other places like UI synchronization. But what exactly does it do? To illustrate the problem, let’s imagine a…





