azure-servicebus-ts

Coordinate Azure Service Bus queues, topics and subscriptions with TypeScript using the @azure/service-bus package.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/davidrrowley/CortexYouV3 --skill azure-servicebus-ts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-servicebus-ts
Source: https://github.com/davidrrowley/CortexYouV3/tree/main/.agents/skills/azure-servicebus-ts
Command: npx skills add https://github.com/davidrrowley/CortexYouV3 --skill azure-servicebus-ts

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Build robust messaging applications using Azure Service Bus with TypeScript.

Core Features & Use Cases

  • Type-safe TS SDK usage: Write robust messaging clients with the Azure Service Bus SDK for JavaScript/TypeScript.
  • Queues, Topics & Subscriptions: Implement point-to-point and publish/subscribe messaging patterns with support for sessions, dead-lettering, and auto-lock management.
  • Production-grade patterns: Use sessions for ordered processing, implement error handling, and leverage DLQ for poisoned messages.

Quick Start

Install the @azure/service-bus package and instantiate a ServiceBusClient to begin sending and receiving messages.

Frequently Asked Questions about azure-servicebus-ts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build messaging applications with Azure Service Bus in TypeScript?

You implement Azure Service Bus queues and topics in TypeScript by installing the @azure/service-bus package and creating a ServiceBusClient. This supports point-to-point queues and publish/subscribe topics with auto-lock management.

How does dead-letter handling work for Azure Service Bus messages?

Dead-letter handling in Azure Service Bus isolates poison messages that fail processing. You leverage the Dead Letter Queue (DLQ) within your TypeScript client to inspect and manage these failed messages separately from the main queue.

Do I need DefaultAzureCredential or connection strings to authenticate an Azure Service Bus client?

You can authenticate an Azure Service Bus client using either DefaultAzureCredential or connection strings. Both methods are supported by the @azure/service-bus TypeScript package to securely establish your sender and receiver lifecycles.

Can I use message sessions for ordered processing in Azure Service Bus?

Yes, you can use message sessions in Azure Service Bus for ordered processing. By configuring sessions within your TypeScript receiver, you coordinate sequential message handling for enterprise workflows requiring strict ordering.

What is the best way to manage sender and receiver lifecycles in Azure Service Bus?

The best way to manage sender and receiver lifecycles in Azure Service Bus is to properly instantiate and close them using the TypeScript SDK. This ensures correct message settlement, prevents lock leaks, and handles errors gracefully.

Does Azure Service Bus support publish/subscribe messaging patterns in TypeScript?

Yes, Azure Service Bus supports publish/subscribe messaging patterns in TypeScript through topics and subscriptions. You implement this using the @azure/service-bus package to broadcast messages to multiple subscribed receivers.