I'm doing a project to study more of brokers and i'm using .NET 6.0 and Service bus to do this.
My question is: I need to publish a message and consume the same message only after a few time (i put the time in an enviroment variable to control it), how can i do this?
I know, it's not a good practice doing this, "empty queue is a healthy queue", but it's a personal project.
I do agree with discussion in comments , You can also use blow code to do the same:
In my code i have kept 1 min time to consume the message.
Output:After sending message:
After receiving and consuming the message: