https://github.com/galvesribeiro/eventgridemulator
Microsoft Azure EventGrid Emulator
https://github.com/galvesribeiro/eventgridemulator
azure distributed-systems eventgrid messaging
Last synced: about 1 year ago
JSON representation
Microsoft Azure EventGrid Emulator
- Host: GitHub
- URL: https://github.com/galvesribeiro/eventgridemulator
- Owner: galvesribeiro
- License: mit
- Created: 2018-06-08T00:13:40.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-09T21:12:15.000Z (almost 8 years ago)
- Last Synced: 2024-10-06T09:21:48.038Z (over 1 year ago)
- Topics: azure, distributed-systems, eventgrid, messaging
- Language: C#
- Size: 17.6 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EventGridEmulator
Microsoft Azure EventGrid Emulator
## How to use
`dotnet run` on the `EventGridEmulator` project directory
With the project running, POST the subscription object just like in the real Azure EventGrid:
```
POST http://localhost:5000/Microsoft.EventGrid/eventSubscriptions/{subscriptionName}
{
"properties": {
"destination": {
"endpointType": "WebHook",
"properties": {
"endpointUrl": "http://localhost:5000/test"
}
},
"filter": {
"includedEventTypes": ["ALL"],
"isSubjectCaseSensitive": true,
"subjectBeginsWith": "Test",
"subjectEndsWith": ".A"
}
}
}
```
After the subscription have been created, you can post Events to the `events` endpoint:
```
POST http://localhost:5000/Microsoft.EventGrid/events
[{
"eventType": "recordInserted",
"subject": "Test.A",
"data": {
"make": "Ducati",
"model": "Monster"
}
}]
```
The message will then be forwarded to the registered subscriptions.
> This is a work in progress. Docker/Kubernetes support along with other kind of message publishers will come soon.