Добавлено: 31 января 2023 г.
Today we will see, how to enable Logging directly to Loki via Serilog for a .NET Core Microservice and visualize the logs in Grafana.
Before we start,
What is Loki?
Loki is a horizontally scalable, highly available, multi-tenant log aggregation system inspired by Prometheus. It is designed to be very cost effective and easy to operate. It does not index the contents of the logs, but rather a set of labels for each...
далее...
Добавлено: 18 января 2023 г.
Did you ever face a situation where you have a search UI, like a front-end application, that has a data table and you need to support a complex query construction that can contain Free Text search, Sorting of multiple columns, and extra filters and query parameters starts to look a nightmare on your controllers?
ASP.Net offers great flexibility, extensibility, and customization to graceful handle these situations.
The problem
Let’s imagine the scenario where...
далее...
Добавлено: 2 января 2023 г.
In this article, we are going to discuss the working of CQRS and MediatR patterns and step-by-step implementation using .NET Core 6 Web API.
Agenda
Introduction of CQRS Pattern
When to use CQRS
MediatR
Step-by-step Implementation
Prerequisites
Visual Studio 2022
SQL Server
.NET Core 6
Introduction of CQRS Pattern
...
далее...
Добавлено: 5 декабря 2022 г.
We are going to discuss Caching in .NET Core and how it works. So, we look at the following things one by one.
Introduction of Caching.
What is Cache.
Types of cache.
Cache Implementation.
So, let’s start one by one.
Introduction
Caching is very popular nowadays in the software industry because it will improve the performance and scalability of the application....
далее...
Добавлено: 1 декабря 2022 г.
Having a system which is composed by distributed applications is a great idea, but a way to communicate with each other is required. A very popular architecture is the so called MDA or Message Driven Architecture, where a system is composed from autonomous components that communicate with each other via messages. The part which facilitates communication is the message broker, effectively decoupling applications, which don’t communicate directly, rather they publish...
далее...
Добавлено: 24 ноября 2022 г.
Blazor and Razor have a healthy following in the web UI dev community, especially among developers who primarily work within .NET Core. However, the confusion between these two can be off-putting for some developers, especially beginners.
This post discusses the similarities and differences between Blazor framework and Razor; both are part of Microsoft’s free and open source .NET Core development platform. We also discuss where these two technologies merge and how...
далее...
Добавлено: 16 ноября 2022 г.
Need to communicate with multiple DBs in one application??
Usually we don’t face such scenarios. However if such requirement comes in picture, we will see how easy it is to communicate with multiple DBs using repository pattern in .Net Core Web API.
To configure mongoDB, we need to install mongoDB driver for C#, this we can install via NuGet package manager. After installation we need connection string and database name which we...
далее...
Добавлено: 24 октября 2022 г.
For as long as web applications have been around, full-stack developers have had to work with different sets of technologies for the front and backend. For instance, a developer would use something like Angular for the frontend and Express.js for the backend. Microsoft aimed to change this approach by unifying web app development with the release of .NET Core Blazor back in 2018.
What is .NET Core Blazor?
.NET core blazor is...
далее...
Добавлено: 24 октября 2022 г.
Entity Framework Core is recommended and the most popular tool for interacting with relational databases on ASP NET Core. It is powerful enough to cover most possible scenarios, but like any other tool, it has its limitations. Long time people said (not without reason) that Entity Frmaework does not match high load systems and for these scenarios it is better to use Dapper. But time goes by and Entity Framework...
далее...
Добавлено: 20 октября 2022 г.
ASP.NET Core MVC is a web development framework, widely used by developers around the word, to develop web applications. These web applications have proven to be vulnerable to attacks from different sources, though, and it is our responsibility to safeguard our data. This article will help you develop a secure ASP.NET Core MVC web application. The following are the best practices recommended to avoid vulnerabilities in your applications:
...
далее...