Getting Started with Async Enumerables: A .NET Developer's Guide
Rahul Nath
by Rahul Pulikkot Nath
5d ago
Enumeration of collections has been the bread-and-butter of many programs. But what if we could enhance this familiar concept with asynchronous capabilities? That's precisely what .NET Async Enumerable does. In this post, let's explore how C# combines 'yield return' with 'async' and 'await' to create efficient asynchronous data streams and how 'await foreach' lets us effortlessly consume them. For the demo, I will show you a simple console application that looks through rating files stored in an Amazon S3 bucket to find the first n number of x-star ratings for a given product. We will examin ..read more
Visit website
.http Files Explained: Boost Your ASP NET Core API Development Workflow
Rahul Nath
by Rahul Pulikkot Nath
3w ago
.http files provide an easy way to invoke API endpoints without leaving your IDE. Both Rider and Visual Studio IDE has built-in support for this. In this post, let’s learn about .http files create and update .http files send HTTP requests in .http files support different environment config Manage sensitive information in config I will use an API built over AWS DynamoDB, and AWS Lambda to host the API. However, using .http files is not limited by where and how you decide to host your APIs as we will see in this video. Thanks to AWS for sponsoring this post. What are .http Files? .http files ..read more
Visit website
RabbitMQ Topic Exchange Explained
Rahul Nath
by Rahul Pulikkot Nath
3M ago
An Exchange in RabbitMQ is a routing mechanism to send messages to queues. RabbitMQ supports four Exchange Types: Topic Exchange, Direct Exchange, Fanout Exchange, Headers Exchange. In this blog post, let's understand RabbitMQ Topic Exchange Routing messages in Topic Exchange RabbitMQ Topic Exchange From a .NET application. I use Amazon MQ, a managed message broker service that supports ActiveMQ and RabbitMQ engine types, to host my RabbitMQ instance. However, you can use one of the various options that RabbitMQ provides to host your instance, This article is sponsored by AW ..read more
Visit website
RabbitMQ Headers Exchange Explained
Rahul Nath
by Rahul Pulikkot Nath
3M ago
Headers Exchange in RabbitMQ routes messages using message headers to route messages. A message is considered a match if the header's value matches that on the binding. In this post, let’s explore RabbitMQ Headers Exchanges Underlying Concepts of Headers Exchange Headers Exchange in action from a .NET application. I use Amazon MQ, a managed message broker service that supports ActiveMQ and RabbitMQ engine types, to host my RabbitMQ instance. However, you can use one of the various options that RabbitMQ provides to host your instance. This article is sponsored by AWS and is p ..read more
Visit website
5 Recommended Patterns When Using Cancellation Token in .NET
Rahul Nath
by Rahul Pulikkot Nath
4M ago
Are you passing around the CancellationToken to all your functions blindly? Stop using Cancellation Tokens the wrong way in .NET! CancellationTokens in .NET allows the caller to express lost interest in the result of an operation. This can be at a Function level, class level, API endpoint, etc. Does that mean all requests are the same and can be canceled similarly? Short answer - No! In this post, let’s learn five good practices when using Cancellation Tokens in your application code. Cancellation tokens are a great way to implement cooperative cancellation of asynchronous or long-running syn ..read more
Visit website
A .NET Programmer's Guide to CancellationToken
Rahul Nath
by Rahul Pulikkot Nath
4M ago
Imagine having a long-running request triggered by a user on your server. But the user is no longer interested in the result and has navigated away from the page. However, the server is still processing that request and utilizing resources until you come along and implement Cancellation Tokens in the application code. In this blog post, let's learn Problem with not using Cancellation Token What is CancellationToken Using Cancellation Token to Fix Long Running Processes Using Cancellation Token in HTTP API Calls This article is sponsored by AWS. The Problem with not using Cancellation Token ..read more
Visit website
RabbitMQ Fanout Exchange Explained
Rahul Nath
by Rahul Pulikkot Nath
4M ago
An Exchange in RabbitMQ is a routing mechanism to send messages to queues. RabbitMQ supports four different Exchange Types. Topic Exchange Fanout Exchange Headers Exchange Direct Exchange In this blog post, let's understand RabbitMQ Fanout Exchange Routing messages in Fanout Exchange Set up a Fanout Exchange from .NET app I use Amazon MQ, a managed message broker service that supports ActiveMQ and RabbitMQ engine types, to host my RabbitMQ instance. However, you can use one of the various options that RabbitMQ provides to host your instance, AWS sponsors this article and i ..read more
Visit website
Rabbit MQ Exchange and Exchange Types: What You Need to Know
Rahul Nath
by Rahul Pulikkot Nath
5M ago
An Exchange in RabbitMQ is a routing mechanism to send messages to queues. The type of exchange determines how an Exchange sends the messages to Queues. In this post let's learn What it A RabbitMQ Exchange? Binding and Routing Keys Different Exchange Types I will use Amazon MQ, a managed message broker service that supports ActiveMQ and RabbitMQ engine types to host my RabbitMQ instance. However, you can use one of the various options that RabbitMQ provides to host your instance, This article is sponsored by AWS and is part of my RabbitMQ Series. What is A RabbitMQ Exch ..read more
Visit website
Exploring Manual and Automatic Acknowledgment in RabbitMQ with .NET
Rahul Nath
by Rahul Pulikkot Nath
5M ago
Messages picked up for processing by the consumers are not guaranteed to be successfully processed. Hence, consumers need a mechanism for processing confirmation. Delivery processing acknowledgements from consumers are referred to as acknowledgements in messaging protocols. In this post, let’s learn about different acknowledgement modes and how to use them when working with RabbitMQ from a .NET application. The concept still applies to other programming languages. There are two acknowledgement modes supported in RabbitMQ Automatic ACK Manual ACK This article is sponsored by AWS and is part ..read more
Visit website
Amazon MQ RabbitMQ: A Reliable Messaging Solution for Your .NET Projects
Rahul Nath
by Rahul Pulikkot Nath
6M ago
RabbitMQ is a powerful open-source message broker facilitating communication between systems or applications. It ensures seamless data exchange by enabling asynchronous messaging, making it an essential tool for building scalable and resilient distributed systems. In this post, we will learn how to set up RabbitMQ and start using it from a .NET application to send and receive messages. Setting Up RabbitMQ RabbitMQ can be hosted through self-hosted deployments, major cloud providers, containerization with Docker and Kubernetes, managed RabbitMQ providers, etc, offering a wide range of options ..read more
Visit website

Follow Rahul Nath on FeedSpot

Continue with Google
Continue with Apple
OR