Digests ยป 274

sponsor

Be the Smartest Person in the Room

Want all of your news and updates in a single email? Check out 1440. The team at 1440 scours over 100+ sources ranging from culture and science to sports and politics to create one digest email that you can read in 5 minutes or less. You don't have to search for news. It's 100% free. And most importantly, it simplifies your life. Sign Up Now!

.net

Maximising .NET Core API performance

We recently rewrote one of our APIs from scratch, Saved Items, to better pave the way for new functionality and improve the performance by utilising new technologies such as .NET Core 2.

Prefer ValueTask to Task, always; and don't await twice

There's been a lot of confusion over when to use Task[<T>] vs ValueTask[<T>] (note: I'm going to drop the [<T>] from now on; just pretend they're there when you see Task / ValueTask etc).

Full Modular Monolith application with Domain-Driven Design approach

The main architectural assumption is the high modularity of the solution. The module in this architecture is really a mini-application (still hosted in the same process) that contains everything to implement the requirements of a specific business context (Bounded Context in terms of DDD approach). Integration between modules is implemented asynchronously using events (Event Driven Architecture).

Async Await C#

In previous chapter we discussed how to use the continuation feature of a task to make a responsive application. This means that you can execute another task as soon as the first task finishes. Thus, you can avoid the thread block.

Declarative framework for building command line interfaces

CliFx is a simple to use but powerful framework for building command line applications. Its primary goal is to completely take over the user input layer, letting you focus more on writing your application. This framework uses a declarative approach for defining commands, avoiding excessive boilerplate code and complex configurations.