Develop Message-Based Solutions Flashcards

1
Q

When should you use Service Bus Queues?

A
  • When you don’t want to poll the queue; Service Bus has a long-polling receive operation over TCP
  • You require to process items in delivery order (FIFO)
  • You need automatic de-duplication
  • You want to process session messages as long-running streams
  • You need transaction behaviour and atomicity when sending and receiving messages
  • Your messages may be larger than 64kb (but less than 256kb)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When should you use Storage Queues?

A
  • You need to have more than 8-GB of messages queued
  • Your application wants to be responsible for tracking processed messages.
  • You require server side logs of all transactions executed against your queues
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a Service Bus Message?

A

A container decorated with metadata that contains data.

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

How can the data in Service Bus messages be encoded?

A

In any way.

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

What are the differences between Premium and Standard Service Bus tiers?

A
  • Throughput: High / Variable
  • Performance: Predictable / Variable Latency
  • Pricing: Fixed / PAYG
  • Scalability: Yes / No
  • Maximum Message Size: 100MB / 256kb
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the two modes you can use when receiving Service Bus messages?

A

Receive and Delete, and Peek Lock

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

How does Receive and Delete mode work?

A
  1. The Service Bus receives the consumer request
  2. It marks the message as consumed and returns it to the consumer

If the consumer crashes, the message is lost.

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

How does Peek Lock mode work?

A

The receive operation is two-stage.

  1. Find the next message and lock
  2. Return the message to the application - the application then requests Service Bus to complete the receive operation, marking the message as consumed

If the application is unable to process the message it can request the Service Bus abandon the process, Service Bus then unlocks the message.

If the application fails to process the message within the timeout, Service Bus unlocks the message.

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

What do Topics and Subscriptions allow?

A

Multiple consumers to process a single message

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

How do Topics and Subscriptions work?

A

A publisher sends a message to a topic; one or more subscribers to the topic receive the message.

Filter rules can further restrict the messages received by the subscriber.

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

Do consumers receive messages directly from the topic?

A

No. Consumers receiver messages from subscribers

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

What is the maximum size of a message in a Storage Queue?

A

64KB

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

What is the default TTL for a message in a Storage Queue?

A

7 days

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