Connect your devices together | Service Bus Flashcards
What are the three characteristics of an event?
- 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
Is Service Bus designed to handle messages or events?
Messages.
In which three ways can Service Bus exchange messages?
Queues, topics, and relays
Are Topics included in the basic pricing tier of Service Bus?
No, it’s not supported.
What is the difference between Storage queues and Service Bus queues?
As a general guide, storage queues are simpler to use but are less sophisticated and flexible than Service Bus queues.
What are the advantages of Service Bus queues over Storage queues?
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
What are the advantages of Storage queues over Service Bus queues?
- Supports unlimited queue size (versus 80-GB limit for Service Bus queues)
- Maintains a log of all messages
Which azure services can you use for events?
Event Grid or Event Hubs.
Should a single message be delivered to more than one destination? If so, use ___. Otherwise, use ___.
a Service Bus topic
Otherwise a queue
Boolean Filters. The TrueFilter ensures that ___ to the current subscription. The FalseFilter ensures that ___ to the current subscription.
all messages sent to the topic are delivered
none of the messages are delivered (This effectively blocks or switches off the subscription.)
Why would you choose a correlation filter over a SQL filter for service bus?
SQL filters are the most computationally expensive and could slow down our Service Bus throughput
Why would you choose a SQL filter over a correlation filter?
SQL filters are the most flexible.