Skip to content

Sponsor: Do you build complex software systems? See how NServiceBus makes it easier to design, build, and manage software systems that use message queues to achieve loose coupling. Get started for free.

Learn more about Software Architecture & Design.
Join thousands of developers getting weekly updates to increase your understanding of software architecture and design concepts.

Follow @CodeOpinion

.NET Core

Lazy Async

I’ve been moving some data access code to to use Lazy<T> whenever I want to defer actually fetching the data until it’s first needed.  What I’ve always found interesting is there is no Lazy Async. In the exact use case it’s when an application loads, there is some static data loaded from a database.  This data is the cached for later use. However, in many situations it’s not actually needed until much later if at all.  Why take the performance hit of fetching the data on app startup if that data is often times not needed? That’s the whole purpose… Read More »Lazy Async