How does the Synapse server consume events? #318
-
Maybe I'm a bit dense and I just didn't catch where this is covered in the documentation, but how do the Cloud Events actually get into the Synapse server? If I have an event publisher do I need an event broker that's capable of calling a gRPC endpoint on the Synapse server? Or is there some configuration that enables the Synapse server to listen on an event broker? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Hello @mkane91301 It's actually very simple. Any |
Beta Was this translation helpful? Give feedback.
-
Along the same lines, how are events published from workflows? where do they go and how? |
Beta Was this translation helpful? Give feedback.
-
Can you show me where this was handled in the codes, because when I host Synapse on my laptop for researching, although I post the request with content-type you said, but nothing happens. |
Beta Was this translation helpful? Give feedback.
Hello @mkane91301
Thanks for your question, that matter does indeed lack a little documentation.
It's actually very simple. Any
POST
request with aContent-Type: application/cloudevents+json
header made on the HTTP endpoint (default port 42286) will be processed as a Cloud Event.