CategoryCloud

Azure Service Bus .NET SDK Deep Dive – Deadlettering

A

Explains where messages got when certain conditions are met, for more posts in this series go to Contents. If we are using queuing, we certainly don’t want to lose messages. After all, those queues decouple the sender from the receiver by persisting the business intent messages and allowing them to handle them whenever the receiver has time. But what if: The receiver doesn’t pick up the message before the message’s time to live is expired (Expiry)The receiver could not...

Azure Service Bus .NET SDK Deep Dive – Expiry

A

Explains how messages can expire by associating a time to live with the message, for more posts in this series go to Contents. There are multiple ways of how messages can “disappear” from a queue. The most obvious one is that a message in the queue was received by a client and successfully acknowledged. There is another one that might be not that obvious and can even be leveraged to create clever designs: It is called message expiry or time to live. If not specified otherwise...

Azure Service Bus .NET SDK Deep Dive – Scheduling

A

Explains scheduling of messages into the future, for more posts in this series go to Contents. What if we could write a letter to our future self? It turns out with Azure Service Bus we can! With the SDK, it is possible to schedule a message to be due at a certain point in time, and the broker will make sure to deliver it back into the queue when the date is due. With that trick, we can store durable timeouts on the broker to kill our batch jobs or implement things like invoice reminders...

Azure Service Bus .NET SDK Deep Dive – Connections

A

Explains connections and how they relate to senders and receivers, for more posts in this series go to Contents. So far, we’ve been creating a ServiceBusClient to create senders and receivers. The below code illustrates a small example that sends a message to a destination and then receives a single message from that destination. await using var serviceBusClient =    new ServiceBusClient(connectionString); await using var connectionSharingSender = serviceBusClient   ...

Azure Service Bus .NET SDK Deep Dive – Receiving a message

A

Explains receiving a message from a queue, for more posts in this series go to Contents. In the previous post I showed the basic bits to send a message into a queue. But how can we get it out again? The good news is that the SDK makes it pretty simple to fetch a message from a queue. We can register an event handler delegate on the receiverclient. The delegate is automatically called when a message arrives in the queue we are listening to. var processorOptions = new ServiceBusProcessorOptions {...

Azure Service Bus .NET SDK Deep Dive – Sending a message

A

Explains send a message to a queue, for more posts in this series go to Contents. In the previous post we looked at how queues can be created with the built-in management client. For being able to send messages to queues we can simply continue to use the previously installed AzureMessaging.ServiceBus package. If you search for Azure Service Bus on nuget you might stumble over the Microsoft.Azure.ServiceBus package, be aware that this is the old and new legacy Azure Service Bus client. For any...

Azure Service Bus .NET SDK Deep Dive – Creating queues

A

Explains how to create queues with the management client, for more posts in this series go to Contents. Without queues, topics and subscriptions (also called entities) there is not much we can do with an Azure Service Bus namespace. For the start, it is sufficient to create a queue that we will use to send messages to and receive messages from. Creating entities is built into the Azure.Messaging.ServiceBus package and available under the Azure.Messaging.ServiceBus.Administration namespace. A...

Azure Service Bus .NET SDK Deep Dive – Content

A

In this post series I’m going to dive into the Azure Service Bus .NET SDK and how you can leverage its capabilities to create robust and reliable code that access Azure Service Bus. This series will cover Content Creating queues Sending a message Receiving a message Connections Scheduling Expiry Deadlettering Forwarding Publish / Subscribe with Topics Topologies Atomic Sends Sender side batching Send Via Runtime Information TransferDLQ Sessions Message Deduplication The series of posts...

Managing Application Secrets in Azure App Configuration Service with .NET Core Code Walkthrough

M

Introduction into managing Application Secrets in Azure App Configuration Service with .NET Core (previous)Managing Application Secrets in Azure App Configuration Service with .NET Core Code Walkthrough (current post) In the previous post I introduced various ways of storing secrets. In this post I’ll walk through the code required to pull out settings from User Secrets when running in development as well as from the Azure App Configuration Service when running in production. In order to...

Introduction into managing Application Secrets in Azure AppConfiguration Service with .NET Core

I

Introduction into managing Application Secrets in Azure App Configuration Service with .NET Core (current post)Managing Application Secrets in Azure App Configuration Service with .NET Core Code Walkthrough (next) Whether you are writing an ASP.NET Core website or a new .NET Core based application that will be run somewhere in the cloud you are almost always confronted with the question of where to reliably and securely store the application secrets. With the introduction of Microsoft...

Recent Posts