Azure Service Bus Flashcards

1
Q

what are topics & subscriptions?

A

Topics work on pub-sub model.
Broadcasts messages. Multiplexing.
Filter can be used on Topics to create subscription.
Subscription is equal to queue.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the pricing for Service Bus?

A

There are 2 tiers for Service Bus:
- Standard
- Premium

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is default messaging protocol for Service Bus?

A

AMQP, Advanced message queueing protocol

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the two type of message when working with Messaging services?

A

Command: Azure Service Bus
Facts: Event hub (Time-series/Streaming data) & Event Grid (Discrete/Event data)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the key features of Azure Service Bus?

A
  • Push/pull model
  • central arbiter of state/truth of transition
  • Helps in load-leveling the APIs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to know when to use Azure Service Bus?

A

We should use Azure service bus when we know all the nouns involved in the communication:

  • Who is sending the message?
  • What is the message?
  • Where is the message going to?
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the two communication methods in Azure Service Bus?

A
  • Point to point (Queue)
  • Broadcast (Topic)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the attributes of the Azure Service Bus - Queue?

A
  • Point to point
  • Once ACK’ed the messages are never lost
  • Receiver connect to the queue and retrieves the message (pull mechanism)
  • Competing consumer pattern, scaling horizontally senders & receivers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Dead lettering?

A
  • Once there is failure in message delivery, the message is pushed a sub-queue called Dead Letter queue where it can stay for as long as it is required
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are Subcription Filters?

A

These are filters that can be used to filter out messages in Topics that the subscriber doesn’t want to react to.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are Message Sessions?

A

Group messages to be processed in a single session

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is TTL for messages?

A

This defines the lifetime of the message until it is picked up, once the message crosses the TTL value in the queue it is dropped and nobody can then consume it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a Namespace in Azure Service Bus?

A

A namespace is a container for all messaging components (queues and topics). Multiple queues and topics can be in a single namespace, and namespaces often serve as application containers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is Message Sessions?

A

To realize a first-in, first-out (FIFO) guarantee in processing messages in Service Bus queue or subscriptions, use sessions. Sessions can also be used in implementing request-response patterns. The request-response pattern enables the sender application to send a request and provides a way for the receiver to correctly send a response back to the sender application.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is Auto-Forwarding in Azure Service Bus?

A

The Auto-forwarding feature enables you to chain a queue or subscription to another queue or topic that is part of the same namespace. When auto-forwarding is enabled, Service Bus automatically removes messages that are placed in the first queue or subscription (source) and puts them in the second queue or topic (destination).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is Message Deferral in Azure Service Bus?

A

When a queue or subscription client receives a message that it’s willing to process, but for which processing isn’t currently possible because of special circumstances within the application, the entity can defer retrieval of the message to a later point.

17
Q

What are the two Recieve modes in Azure Service Bus?

A
  • Recieve & Delete (at-most once)
  • Peek lock (at-least once)
18
Q

What are Filter Actions in Azure Service Bus?

A

you can configure subscriptions to find messages that have desired properties and then perform certain modifications to those properties, such modifications are called filter actions

19
Q

What types of Filters are supported by Azure Service Bus?

A
  • SQL filters
  • Boolean filters
  • Correlation filters
20
Q
A