question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Marking a series of service bus messages as START and END of a sequence

See original GitHub issue

Query/Question Problem Statement: I am publishing a series of messages to a service bus topic. Let’s say I have messages 1 to 100. They are all different messages in themselves but they are part of a series. I know we can set that series by using sessions(same session id for all those messages). But is there a way to say that message 1 is the start of that series and 100 is End of that series. Adding custom sequence numbers will allow me to achieve the same behavior but is there something which service bus provides to achieve that kind of sequencing?

Environment:

  • Name and version of the Library package used: Microsoft.Azure.ServiceBus 4.1.1
  • Hosting platform or OS and .NET runtime version (dotnet --info output for .NET Core projects): Azure AppService - .Net Core 3.1
  • IDE and version: Visual Studio 16.5.4

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
SeanFeldmancommented, May 13, 2020

@Sandeep321, if you require all 10 messages to be received prior to taking any action and the last message should be a marker message, sessions are what you need. When you receive messages in a session, you can have a session state which could store the information from the previous 9 messages until the last, 10th, is processed.

0reactions
SeanFeldmancommented, Nov 10, 2020

Look at subscriptions. Receive operations with sessions are only possible on the entities that can be used to receive messages (queues and subscriptions).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Service Bus message sequencing and timestamps
This article explains how to preserve sequencing and ordering (with timestamps) of Azure Service Bus messages.
Read more >
Implementing Multi Session Sequential Convoy Pattern ...
Using Azure Service Bus sessions, you can group related messages so that the message consumer locks a session and processes messages in the ......
Read more >
Azure function with Servicebus how to not mark message ...
I have an Azure function that listens to messages in an Azure Servicebus queue. When it receives the messages it marks them as...
Read more >
Azure Service Bus - Henrique Siebert Domareski
Azure Service Bus is a fully managed enterprise message broker with message queues and publish-subscribe topics (in a namespace — a ...
Read more >
Troubleshooting Service Bus issues
Logging is performed for each operation and follows the pattern of marking the starting point of the operation, it's completion, and any exceptions...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found