OpenTelemetry in Action: Optimizing Database Operations
May 02, 2022 · 14 min read
Many software developers can attest that some of the most significant issues in their applications arise from database performance. Though many developers prefer to use a relational database for enterprise applications, typical logging and monitoring solutions provide limited signals to detect database performance issues. Rooting out common bad practices such as chatty interactions between the application code and the database is non-trivial. As developers, we need to understand how our database is performing from the context of user transactions.
Read more of OpenTelemetry in Action: Optimizing Database Operations
OpenTelemetry in Action: Identifying Database Dependencies
May 01, 2022 · 12 min read
Microservices can help any organization achieve its goal of increasing agility by addressing critical factors such as improving team autonomy, reducing time to market, cost-effectively scaling for load, and avoiding complete outages of the applications. As organizations break their monolith applications into microservices, one of the major hurdles they encounter is identifying database dependencies. Database sharing can be a complex and time-consuming challenge to solve. Databases do not allow you to define what is shared and what is not.
Read more of OpenTelemetry in Action: Identifying Database Dependencies
Three Fundamental Components of a Reusable .NET Microservices Platform
Sep 26, 2021 · 9 min read
Development teams frequently need to build new microservices to either add new functionality or replace existing microservices. However, microservices must support some standard features such as providing insight into their health through logging, allowing monitoring, and following the organization’s security standards. A reusable microservices platform can help developers jumpstart the development process by providing reusable components that they can use to build new microservices. To implement a reusable microservices platform, you can use the sidecar pattern or build NuGet packages that are installed in every microservice.
Read more of Three Fundamental Components of a Reusable .NET Microservices Platform
Building Reliable Kafka Producers and Consumers in .NET
Jun 30, 2021 · 9 min read
Sending messages reliably and quickly between services is a core requirement for most distributed systems. Apache Kafka is a popular, durable message broker that enables applications to process, persist and re-process streamed data with low latency, high throughput, and fault tolerance. If you are a beginner in Kafka, please consider reading the articles in my Apache Kafka series to get up to speed in no time. One of my Twitter friends, among others, reached out to me to understand how to implement retries in Kafka.
Read more of Building Reliable Kafka Producers and Consumers in .NET
Distributed Tracing in ASP.NET Core with Jaeger and Tye Part 2 - Project Tye
May 08, 2021 · 10 min read
In this series: Distributed Tracing with Jaeger Simplifying the setup with Tye (this article) Tye is an experimental dotnet tool from Microsoft that aims to make developing, testing, and deploying microservices easier. Tye’s opinionated nature greatly simplifies the lifecycle of development and deployment of .NET Core microservices. To understand the benefits of Tye, let’s enumerate the steps involved in the development and deployment of the DCalculator application to Kubernetes:
Read more of Distributed Tracing in ASP.NET Core with Jaeger and Tye Part 2 - Project Tye
Distributed Tracing in ASP.NET Core with Jaeger and Tye Part 1 - Distributed Tracing
Apr 26, 2021 · 7 min read
In this series: Distributed Tracing with Jaeger (this article) Simplifying the setup with Tye Modern microservices applications consist of many services deployed on various hosts such as Kubernetes, AWS ECS, and Azure App Services or serverless compute services such as AWS Lambda and Azure Functions. One of the key challenges of microservices is the reduced visibility of requests that span multiple services. In distributed systems that perform various operations such as database queries, publish and consume messages, and trigger jobs, how would you quickly find issues and monitor the behavior of services?
Read more of Distributed Tracing in ASP.NET Core with Jaeger and Tye Part 1 - Distributed Tracing
Event-Driven Architecture with Apache Kafka for .NET Developers Part 3 - Azure Event Hubs
Apr 11, 2021 · 10 min read
In this series: Development environment and Event producer Event consumer Azure Event Hubs integration (this article) Azure Event Hubs is a horizontally scalable event ingestion service capable of receiving and processing millions of events per second. It supports Apache Kafka Producer and Consumer API that you can use as an alternative to running a self-managed Apache Kafka cluster. Now you can integrate the Kafka ecosystem applications such as Kafdrop and many others with Event Hubs.
Event-Driven Architecture with Apache Kafka for .NET Developers Part 2 - Event Consumer
Apr 04, 2021 · 8 min read
In this series: Development environment and Event producer Event consumer (this article) Azure Event Hubs integration Let’s carry our discussion forward and implement a consumer of the events published by the Employee service to the leave-applications Kafka topic. We will extend the application that we developed earlier to add two new services to demonstrate how Kafka consumers work: Manager service and Result reader service. Source Code The complete source code of the application and other artifacts is available in my GitHub repository.
#azure #integration #programming
Read more of Event-Driven Architecture with Apache Kafka for .NET Developers Part 2 - Event Consumer
Event-Driven Architecture with Apache Kafka for .NET Developers Part 1 - Event Producer
Mar 29, 2021 · 12 min read
In this series: Development environment and Event producer (this article) Event consumer Azure Event Hubs integration An event-driven architecture utilizes events to trigger and communicate between microservices. An event is a change in the service’s state, such as an item being added to the shopping cart. When an event occurs, the service produces an event notification which is a packet of information about the event. The architecture consists of an event producer, an event router, and an event consumer.
#azure #integration #programming
Read more of Event-Driven Architecture with Apache Kafka for .NET Developers Part 1 - Event Producer
Build a Basic GraphQL Server with ASP.NET Core and Entity Framework in 10 Minutes
Mar 15, 2021 · 11 min read
Since I wrote my first GraphQL post in 2019, much has changed with GraphQL in the .NET space. The ongoing changes have also affected most of the documentation available online. This article will walk you through the steps to create a basic GraphQL API on ASP.NET Core using GraphQL for .NET, Entity Framework Core, Autofac, and the Repository design pattern. I chose the tech stack for the sample application based on the popularity of the frameworks and patterns.
Read more of Build a Basic GraphQL Server with ASP.NET Core and Entity Framework in 10 Minutes