Skip to content

Latest commit

 

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure Service Bus Timeout

Sample code created to demonstrate my issue #7689 with Service Bus Node.js SDK for a bug that locked the receiver when the internet was unavailable for long periods of time.

✅ This bug has since been fixed by Microsoft

Infrasctructure

az servicebus namespace create -n '<namespace>' -g '<group>' -l '<location>' --sku Basic
az servicebus queue create -n '<name>' --namespace-name '<namespace>' -g '<group>'

az servicebus namespace authorization-rule keys list \
    -n RootManageSharedAccessKey -g '<group>' --namespace-name '<namespace>' \
    --query primaryConnectionString -o tsv

Simulation

Create .env and fill with environment values:

cp config/sample.env .env

Run it:

yarn install
yarn run dequeue

Now disconnect your computer from the internet and wait at least 1:20 minutes.

Reconnect to the internet and add messages to confirm it continues to operate:

yarn run enqueue

All messages should be consumed.

About

Service Bus Node.js SDK bug simulation

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages