1 сентября 2022 г.
Просмотров: 126
Эта статья для вас, если вы:
выбираете базу данных для нового проекта и изучаете информацию про разные варианты;
считаете, что текущая база данных не устраивает вас по каким то параметрам и вы хотите ее сменить, но у вас нет хорошего специалиста;
просто хотите почитать в одной статье про несколько баз данных и когда можно их использовать.
Моя статья не для вас, если...
далее...
Aug 26, 2022
Views: 336
Real-time interactivity is the bread and butter of modern web, mobile, and desktop applications. It doesn’t matter how hard you worked to build your app. If it’s not interactive enough, users will just ignore it in favor of competing apps that are interactive.
When you open your social media profile, you expect the notifications and messages to get delivered to you in real-time. You aren’t expected to keep manually refreshing the...
more...
Aug 26, 2022
Views: 222
We are going to discuss the RabbitMQ Message Queue and its implementation using .NET Core 6 API as Message Producer and Console Application as a Message Consumer.
Agenda
Introduction of RabbitMQ
Benefits of using RabbitMQ
Implementation of RabbitMQ in .NET Core 6
Prerequisites
Visual Studio 2022
Docker Desktop
.NET Core 6 SDK
Introduction of RabbitMQ
...
more...
Aug 24, 2022
Views: 167
In this article, we will learn about global exception handling implementation using .NET Core 6 Web API step-by-step.
Agenda
Introduction
Implementation of Global Exception Handling
Prerequisites
Visual Studio 2022
.NET Core 6 SDK
Understanding of C# Programming
Basic Understanding of Object-Oriented Programming
Understanding of .NET Core APIs
Introduction
Exception...
more...
Aug 23, 2022
Views: 360
Suppose we are building a web api that contains a route to send notification messages to other systems.
For security matters, before sending any notification message, we need to provide some credentials to these systems to they accept our messages.
However, these credentials are stored in an external data source, and not in our appSettings.json. How can we load these credentials as application configuration properties?
A good approach for that is to create...
more...
1 июля 2022 г.
Просмотров: 100
Всем привет, я Алексей Некрасов - Lead направления Python в МТС и старший архитектор в MTS AI.
Хочу поделиться своим опытом внедрения версионирования и рассказать, как сделать первый шаг в реализации стратегии blue/green или канареечного развертывания, что для этого нужно и какие есть инструменты.
Если вы используете в docker-образах тег latest, или у вас недоступна система во время деплоя нового релиза, то эта статья — отправная точка для улучшения вашего продукта.
Наши продукты...
далее...
1 июля 2022 г.
Просмотров: 231
Еще недавно российская экономика испытывала острый дефицит рабочей силы, вызванный оживлением деловой активности после пандемического шока, демографической ямой и сокращением притока международных мигрантов. В конце прошлого года работодателям хронически не хватало примерно 2 млн сотрудников (это максимум с 2014 года).
Но за последние 4 месяца индекс рекрутинговой активности работодателей упал с 1.43 до 0.96. То есть спрос на рабочие руки просел примерно на треть. Ту же тенденцию демонстрирует опрос HeadHunter: почти...
далее...
Jun 27, 2022
Views: 301
This example shows you the gRpc global exception handler in the unary server handle in gRpc.
In microservice, we have two ways to integrate with other internal services.
The first way is the Request-Response pattern, which is the most famous.
The Request-Response pattern advantage is that the client could immediately get the response from the other inner services, whether it is view data or data operation result.
The second way is the Message pattern;...
more...
Jun 25, 2022
Views: 912
Sometimes your web app needs to do work in the background periodically e.g. to sync data. This article provides a walkthrough how to implement such a background task and how to enabled/disable a background task during runtime using a RESTful API and hosted services.
Here’s the intro from the Microsoft Docs, read more here: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/hosted-services
In ASP.NET Core, background tasks can be implemented as hosted services. A hosted service is a class...
more...
Jun 2, 2022
Views: 550
Backend frameworks are the most critical building blocks that make application development easier and practical. Most developers, and clients for whom the developers create apps, have a problem choosing a backed framework. For a long time, .NET has played a crucial role as the go-to framework to develop the core elements of the apps.
On the other hand, front-end frameworks are the pioneering blocks that define how the user will interact...
more...
May 23, 2022
Views: 251
A step by step guide to integrate OpenTelemetry with ASP.Net core and visualize in Jaeger.
OpenTelemetry is a collection of tools, APIs, and SDKs. Use it to instrument, generate, collect, and export telemetry data (metrics, logs, and traces) to help you analyze your software’s performance and behavior.
In this tutorial, we will look at how it can be integrated with ASP.NET core web project.
We will use Jaeger tool to analyze and visualize...
more...
May 16, 2022
Views: 636
In this article, I will show the most performant way to write queries for a collection of objects in .Net Core. The article discusses the common methods of LINQ and their comparison. After reading this article, you may have to review your project code!
Comparisons were made between query syntax, called LINQ, and method syntax called LAMBDA.
💡 Connect with me on LinkedIn: https://www.linkedin.com/in/hussein-nm/
✨ Where()
LINQ_Where (Method name):
LAMBDA_Where:
🚀 Performance
Which one do you think...
more...
Apr 28, 2022
Views: 213
Table Of Content
- Introduction
- Top 6 Tips to optimize the performance of your .Net application
- 1. Avoid throwing exceptions
- 2. Minify your files
- 3. Avoid blocking calls
- 4. Cache your pages
- 5. Optimize custom code
- 6. Minimize large object allocation
- Bonus: Performance Optimization Tips
- Client-side improvement
- Wrapping Up
Introduction
You can find a lot of evidence that shows that due to slow loading times and clunky interaction, customers drive elsewhere and leave...
more...
Apr 28, 2022
Views: 202
Bending the Clean Architecture Principles
Introduction
So you’re writing code using .NET, and you surely follow the Clean Architecture and its layered abstractions. Apparently and even though the concept was introduced long ago, this is getting very trendy now.
One of your arguments may be that you want your infrastructure to be entirely swappable, you want your application and core business logic to be independent from the database you are using right? The...
more...
Apr 28, 2022
Views: 438
Day-to-day tips I use to develop APIs.
Every day we need to develop new APIs, whether at work or for study purposes, and some features can help us with the use of good practices in a simple way. And through this post, I want to show you some features that I use daily.
1. API Versioning
One of the challenges for those who build APIs is changing contracts that are already in use...
more...
Apr 24, 2022
Views: 308
What is MediatR? Why do we need it? And How to use it?
Mediator Pattern - The mediator pattern ensures that objects do not interact directly instead of through a mediator. It reduces coupling between objects which makes it easy to maintain the code. Mediator pattern unified the service interfaces around a common design, one request in, one response out.
MediatR is a simple, unambitious mediator implementation in .NET.
Let’s now dive deeper...
more...
Apr 24, 2022
Views: 207
A practice approach to creating stable software.
Don’t make your software unstable like a house of cards, solidify it.
There are five principles to follow when we write code with object-oriented programming to make it more readable and maintainable if we don’t want that our program becomes a clock bomb in our hands. These principles together compose the acronym SOLID which means respectively.
Single responsibility principle.
...
more...
Apr 24, 2022
Views: 172
The security of .NET applications is necessary and knowing how to protect it is not always an easy task. As developers, we must be clear that an insecure application can be a serious problem: from modifying the operation of the application or stealing the source code, to exposing a company to legal liability.
Each developer, it is clear that he applies the security that he believes convenient for his applications and...
more...
Apr 24, 2022
Views: 417
Let’s find out which one is better .Net 6 or .Net 5 and how .Net has changed the game of software development.
In the past, I have briefly talked about the Dot Net 6 framework that was released last year in Nov by Microsoft during the .Net Conf 2021.
As mentioned, the latest version of .net 6 unifies the other .net frameworks into a single .Net platform. The journey to the unification...
more...
Apr 24, 2022
Views: 195
What Is Caching?
Caching is a performance optimization strategy and design consideration. Caching can significantly improve app performance by making infrequently changing (or expensive to retrieve) data more readily available.
Why Caching?
To eliminate the need to send requests towards the API in many cases and also to send full responses in other cases.
Some Caching Benefits?
Reduction in network round trips by making infrequently changing (or expensive to retrieve) data...
more...