You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: learn-pr/azure/implement-message-workflows-with-service-bus/3-exercise-implement-a-service-bus-topic-and-queue.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ metadata:
6
6
prefetch-feature-rollout: true
7
7
title: Exercise - Create Service Bus queue and topic
8
8
description: Create Service Bus messaging components—a namespace that contains a queue, a topic, and subscriptions.
Copy file name to clipboardExpand all lines: learn-pr/azure/implement-message-workflows-with-service-bus/5-exercise-write-code-that-uses-service-bus-queues.yml
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,11 @@ metadata:
6
6
prefetch-feature-rollout: true
7
7
title: Exercise - Send and receive messages by using a queue
8
8
description: Write code that sends messages to and receives messages from a Service Bus queue.
Copy file name to clipboardExpand all lines: learn-pr/azure/implement-message-workflows-with-service-bus/7-exercise-write-code-that-uses-service-bus-topics.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ metadata:
6
6
prefetch-feature-rollout: true
7
7
title: Exercise - Send and receive messages by using a topic
8
8
description: Write code that sends messages to a topic and receives messages from a subscription to the topic.
Modern applications frequently consist of multiple parts running on separate computers and devices that are distributed in diverse locations around the world. Complex networks with varying reliability and speed exist among these components. A fundamental challenge with these distributed applications is how to communicate reliably among the components.
2
2
3
-
Suppose you're a cloud developer for Contoso Bicycles, a global bicycle chain. Your employer is upgrading its technology so that customers can place orders from the web or from a mobile app. An order is sent to the customer's preferred storefront location, where store employees fill the order. As the order is filled from parts, packaged for shipping, and put on a delivery vehicle, updates are sent to the customer's mobile app. The customer even receives location updates as the delivery vehicle heads toward them.
3
+
Suppose you're a cloud developer for Contoso Bicycles, a global bicycle chain. Your employer is upgrading its technology so that customers can place orders from the web or from a mobile app. An order is sent to the customer's preferred storefront location, where store employees fill the order. As the order is filled from parts, packaged for shipping, and placed on a delivery vehicle, updates are sent to the customer's mobile app. The customer even receives location updates as the delivery vehicle heads toward them.
4
4
5
-
Contoso Bicycles previously created an online ordering system that immediately stored order data in a SQL Server database. Each store had to manually refresh the company's web orders intranet page to check for new orders for their store. In addition, during peak usage, such as bicycle orders during tourist season or sporting events, the system frequently experienced deadlock exceptions and timeouts. Finally, the system lacked central payment processing and any kind of order-status tracking for the customer.
5
+
Contoso Bicycles previously created an online ordering system that immediately stored order data in a SQL Server database. Each store had to manually refresh the company's web orders intranet page to check for new orders for their store. In addition, during peak usage, such as bicycle orders during tourist season or sporting events, the system frequently experienced deadlock exceptions and time-outs. Finally, the system lacked central payment processing and any kind of order-status tracking for the customer.
6
6
7
7
For the new, more ambitious project, Contoso Bicycles hired a cloud architect. The company plans to begin using a distributed architecture for order communications.
8
8
9
-
In this module, you'll learn how Azure Service Bus can help build an application that is reliable, even during peak demand. You'll also learn how Azure Service Bus makes it easy to add functionality to applications. You'll be writing the C# code that's necessary to put these lessons to work. Here, you'll see how to use Service Bus queues and topics in a distributed architecture to ensure reliable communications, even at times of high demand.
9
+
In this module, you learn how Azure Service Bus can help build an application that is reliable, even during peak demand. You also learn how Azure Service Bus makes it easy to add functionality to applications. You write the C# code that's necessary to put these lessons to work. Here, you see how to use Service Bus queues and topics in a distributed architecture to ensure reliable communications, even at times of high demand.
10
10
11
11
## Learning objectives
12
12
13
-
In this module, you'll learn how to:
13
+
In this module, you learn how to:
14
14
15
15
- Choose whether to use Service Bus queues or topics to communicate in a distributed application.
16
16
- Configure an Azure Service Bus namespace in an Azure subscription.
17
17
- Create a Service Bus topic and use it to send and receive messages.
18
18
- Create a Service Bus queue and use it to send and receive messages.
19
+
20
+
## Prerequisites
21
+
22
+
- Experience using [Visual Studio Code](https://code.visualstudio.com/download) to develop, build, and run C# console applications.
23
+
- Experience using Git repositories and Git Bash. Download [Git for Windows](https://git-scm.com/downloads/win) if you don't have it already on your computer.
Copy file name to clipboardExpand all lines: learn-pr/azure/implement-message-workflows-with-service-bus/includes/2-choose-a-messaging-platform.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ In the terminology of distributed applications, the defining characteristic of a
14
14
15
15
A message generally contains the actual data, not just a reference (like an ID or a URL) to data. Sending data as part of a datagram is less brittle than sending a reference. The messaging architecture guarantees message delivery, and because no extra lookups are required, the message is reliably handled. However, the sending application needs to know exactly what data to include to avoid sending too much data, which would require the receiving component to do unnecessary work. In this sense, the message sender and receiver are often coupled by a strict data contract.
16
16
17
-
In the new architecture for Contoso Bicycles, when an order is placed, the company likely will use messages. The web front end or mobile app will send a message to the back-end processing components. On the back end, steps like routing to the store nearest the customer and charging a credit card will take place.
17
+
In the new architecture for Contoso Bicycles, when an order is placed, the company likely uses messages. The web front end or mobile app sends a message to the back-end processing components. On the back end, steps like routing to the store nearest the customer and charging a credit card takes place.
18
18
19
19
### Events
20
20
@@ -44,16 +44,16 @@ A Service Bus _queue_ is a simple temporary storage location for messages. A sen
44
44
45
45
Queues decouple the source and destination components to insulate destination components from high demand.
46
46
47
-
During peak times, messages might come in faster than destination components can handle them. Because source components have no direct connection to the destination, the source is unaffected, and the queue will grow. Destination components will remove messages from the queue as they're able to handle them. When demand drops, destination components can catch up, and the queue shortens.
47
+
During peak times, messages might come in faster than destination components can handle them. Because source components have no direct connection to the destination, the source is unaffected, and the queue grows. Destination components remove messages from the queue as they're able to handle them. When demand drops, destination components can catch up, and the queue shortens.
48
48
49
-
A queue responds to high demand without needing to add resources to the system. However, for messages that need to be handled quickly, creating more instances of your destination component can allow them to share the load. Each message is handled by only one instance. This is an effective way to scale your entire application by only adding resources to the components that actually need it.
49
+
A queue responds to high demand without needing to add resources to the system. However, for messages that need to be handled quickly, creating more instances of your destination component can allow them to share the load. Each message is handled by only one instance. This method is an effective way to scale your entire application by only adding resources to the components that actually need it.
50
50
51
51
### What is a topic?
52
52
53
-
A Service Bus _topic_ is similar to a queue, but a topic can have multiple subscriptions. This means that multiple destination components can subscribe to a specific topic, so each message is delivered to multiple receivers. Subscriptions can also filter the messages in the topic to receive only messages that are relevant. Subscriptions provide the same decoupled communications as queues and respond to high demand in the same way. Use a topic if you want each message to be delivered to more than one destination component.
53
+
A Service Bus _topic_ is similar to a queue, but a topic can have multiple subscriptions, which means that multiple destination components can subscribe to a specific topic, so each message is delivered to multiple receivers. Subscriptions can also filter the messages in the topic to receive only messages that are relevant. Subscriptions provide the same decoupled communications as queues and respond to high demand in the same way. Use a topic if you want each message to be delivered to more than one destination component.
54
54
55
55
> [!NOTE]
56
-
> Topics are not supported in the Basic pricing tier.
56
+
> Topics aren't supported in the Basic pricing tier.
57
57
58
58
:::image type="content" source="../media/2-service-bus-topic.png" alt-text="Diagram that shows one sender sending messages to multiple receivers through a topic that contains three subscriptions. These subscriptions are used by three receivers to retrieve the relevant messages.":::
0 commit comments