PankajRawat333 / ExploringServiceBus

Repository from Github https://github.comPankajRawat333/ExploringServiceBusRepository from Github https://github.comPankajRawat333/ExploringServiceBus

ExploringServiceBus

Background

I have created this project to explore basic capability of ServiceBus. My project required microservices interaction using message queue and I was comfortable to use storage queue instead of serviceBus, however storage queue have 64k max message size limit and that become a bottleneck for us.

Setup your ServiceBus and change connection string

BasicSender - This project containing two methods

  1. Send messages to Servicebus.
  2. Send messages with header to servicebus.

BasicReceiver This is Azure function, listen message form services bus

BatchSender

  1. Send .net serialize class object as message.
  2. Send messages using batch.

BasicSenderWithRetryPolicy

(Wrong Project name) Setting MaxDeliveryCount of queue. By default value is 10 and we have steup this 3.

BasicReceiverWithRetry (Wrong Project name) Azure function would validate message should deliver only 3 times instead of 10 (default).

DeadLetterQueueReceiver Read message from dead letter queue

About


Languages

Language:C# 100.0%