Azure EventGrid Subject vs EventType

2.5k views Asked by At

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?

1

There are 1 answers

0
Joy Wang On BEST ANSWER

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