Exception handling is one of the most critical areas in modern web application development. If exceptions are not handled properly, the whole app can be terminated, causing severe issues for users and developers. In this article, I will discuss different methods of global exception handling in .NET apps. Error handling with try-catch blocks Try-catch blocks
What is distributed locking? With loosely coupled distributed systems, several instances of a microservice might be accessing the same shared resource. For example, several instances of a microservice might attempt to write to the same database. We have two kinds of locks: Optimistic: instead of blocking a potentially invalid process, the process continues, in the
Singleton and Static classes can only have one instance available in memory, and both classes can be used to maintain the global state of an application, however, there are many differences between them. In this article, I explain what their differences are. Singleton Singleton is one of the creational patterns from “Gang of Four” (GoF), and
Context and problem In traditional architectures, the same data model is used to query and update a database. That’s simple and works well for basic CRUD operations. In more complex applications, however, this approach can become unwieldy. For example, on the read side, the application may perform many different queries, returning data transfer objects (DTOs)
Introduction This is one of the topics that is not very common. Even though we are always interacting with Dates and Times in our application, they can be very complex depending on your use case. Our entire application broke because of some DateTime concepts that wasn’t properly though through so ideally, I am writing an