MikeF
MikeF

Reputation: 1008

Azure EventGrid Subject vs EventType

The Event Grid Schema has two fields subject and eventType that can be used to filter the events that you want to handle using the Event Subscription Schema. Other than eventType is an exact match string and a subject uses beginsWith or endsWith matching are there recommendations or best practices on when to use which field?

Upvotes: 2

Views: 3126

Answers (1)

Joy Wang
Joy Wang

Reputation: 42043

are there recommendations or best practices on when to use which field?

I think the comment makes sense, you could refer to the doc - Understand event filtering for Event Grid subscriptions.

enter image description here

enter image description here

Upvotes: 2

Related Questions