Re:GraphQL for Event Driven Architecture
by wdb on Monday February 07, 2022 @11:08AM
(#30246701)
Curious why you decided to go for GraphQL instead of something like Cloud Events spec (https://cloudevents.io)
[ Parent
| on HN ]
Re:GraphQL for Event Driven Architecture
by quantdaddy on Monday February 07, 2022 @09:54PM
(#30254436)
Great question: I've commented on it here: https://graphql-eventbus.vercel.app/docs/principles/thinking...
See the "Specification for Event based communication" section.
"While cloudevents does have a promising specification, it does not provide any runtime guarantees. It's similar to OpenAPI: a specification that is hard to follow because nothing enforces runtime compliance with the specification. While this specification makes sense for public Event APIs, we believe that GraphQL Eventbus offers a lot more for building your enterprise event bus."
GraphQL eventbus does incorporate some best practices from cloudevents and event architecture in general: it creates an eventID and publish time for each event and propagates metadata like requestId.