What tools to use on documenting event schema

情到浓时终转凉″ 提交于 2019-12-11 17:22:17

问题


Our team is starting to implement event driven designs. We are now figuring what's the best tool/s and practices for documenting the schema of these events.

What are the common tools used for this use case?

Any links or suggestions is appreciated.


回答1:


I would start off with the common CloudEvents spec and model my events based on that, i.e., define the events as subtypes of the generic CloudEvent model. The benefit here is interoperability with other systems based on the same spec as well as the existing tooling such as language SDKs.

As for documentation, I'd go for JSONSchema: here's the JSONSchema definition for a generic CloudEvent for example.

As an alternative, there's the AsyncAPI specification which you can use instead of or together with CloudEvents: read here on how the two relate.



来源:https://stackoverflow.com/questions/54638601/what-tools-to-use-on-documenting-event-schema

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!