Connect your devices together | Service Bus Flashcards

1
Q

What are the three characteristics of an event?

A
  • The event may be sent to multiple receivers, or to none at all
  • Events are often intended to “fan out,” or have a large number of subscribers for each publisher
  • The publisher of the event has no expectation about the action a receiving component takes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Is Service Bus designed to handle messages or events?

A

Messages.

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

In which three ways can Service Bus exchange messages?

A

Queues, topics, and relays

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

Are Topics included in the basic pricing tier of Service Bus?

A

No, it’s not supported.

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

What is the difference between Storage queues and Service Bus queues?

A

As a general guide, storage queues are simpler to use but are less sophisticated and flexible than Service Bus queues.

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

What are the advantages of Service Bus queues over Storage queues?

A

Supports larger messages sizes of 256 KB (standard tier) or 1MB (premium tier) per message versus 64 KB
Supports both at-most-once and at-least-once delivery - choose between a very small chance that a message is lost or a very small chance it is handled twice
Guarantees first-in-first-out (FIFO) order - messages are handled in the same order they are added (although FIFO is the normal operation of a queue, it is not guaranteed for every message)
Can group multiple messages into a transaction - if one message in the transaction fails to be delivered, all messages in the transaction will not be delivered
Supports role-based security
Does not require destination components to continuously poll the queue

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

What are the advantages of Storage queues over Service Bus queues?

A
  • Supports unlimited queue size (versus 80-GB limit for Service Bus queues)
  • Maintains a log of all messages
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which azure services can you use for events?

A

Event Grid or Event Hubs.

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

Should a single message be delivered to more than one destination? If so, use ___. Otherwise, use ___.

A

a Service Bus topic

Otherwise a queue

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

Boolean Filters. The TrueFilter ensures that ___ to the current subscription. The FalseFilter ensures that ___ to the current subscription.

A

all messages sent to the topic are delivered

none of the messages are delivered (This effectively blocks or switches off the subscription.)

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

Why would you choose a correlation filter over a SQL filter for service bus?

A

SQL filters are the most computationally expensive and could slow down our Service Bus throughput

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

Why would you choose a SQL filter over a correlation filter?

A

SQL filters are the most flexible.

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