Connect your services together | Choose a messaging model in Azure to loosely connect your services Flashcards

1
Q

Can a message consist of just a reference to the data?

A

No, a message contains the data itself.

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

How do you call a sender of an event?

A

Publisher

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

How do you call a receiver of an event?

A

Subscriber

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

Do you choose Event or Message when the distributed application requires a guarantee that the communication will be processed

A

Message. Events are often ephemeral, meaning a communication might not be handled by any receiver if none is currently subscribing.

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

What is the key question when deciding between a message or event?

A

Does the sending component expect the communication to be processed in a particular way by the destination component? If the answer is yes, choose to use a message. If the answer is no, you may be able to use events.

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

What happens when a message is send to a Service Bus Topic instead of a service bus queue?

A

When a message is sent to a topic instead of a queue, multiple components can be triggered to do their work. Each of these components will usually have their own queue again.

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

What are three queueing approaches?

A
  • At-least-Once Delivery: Is possible that message gets delivered mulitple times
  • At-Most-Once Delivery: Is possible that message doesnt get delivered.
  • FIFO:
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which two azure resources can be used to store and deliver messages between your components?

A

Azure Storage queues or Azure Service Bus

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

Use Service Bus queues if you:

A
  1. Need an At-Most-Once delivery guarantee.
  2. Need a FIFO guarantee.
  3. Need to group messages into transactions.
  4. Want to receive messages without polling the queue.
  5. Need to provide a role-based access model to the queues.
  6. Need to handle messages larger than 64 KB but less than 256 KB.
  7. Queue size will not grow larger than 80 GB.
  8. Want to publish and consume batches of messages.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Use Queue storage if you:

A

Queue storage isn’t quite as feature rich, but if you don’t need any of those features, it can be a simpler choice. In addition, it’s the best solution if your app has any of the following requirements.

  1. Need an audit trail of all messages that pass through the queue.
  2. Expect the queue to exceed 80 GB in size.
  3. Want to track progress for processing a message inside of the queue.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is Azure Event Grid?

A

Event distributing service running on top of Azure Service Fabric.

Azure Event Grid is a fully-managed event routing service running on top of Azure Service Fabric. Event Grid distributes events from different sources, such as Azure Blob storage accounts or Azure Media Services, to different handlers, such as Azure Functions or Webhooks.

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

What are event handlers?

A

The app or service reacting to the event.

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

What are system topics in azure event grid?

A

Een groepering van binnenkomende events in eventgrid. Een event handler kan subscriben op een system topic.

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

What are four event handlers?

A

Azure Functions, Webhooks, Logic apps, Power automate

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

Is Event grid a good solution for delivering a large stream of events?

A

In this scenario, Event Grid isn’t a great solution because it’s designed for one-event-at-a-time delivery. Instead, we need to turn to another Azure service: Event Hubs.

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

What are partitions in event hubs?

A

As Event Hubs receives communications, it divides them into partitions. Partitions are buffers into which the communications are saved.

17
Q

For how long can data stay in partition?

A

24 hours

18
Q

How many partitions does a event hub at least have/

A

2