Avro Schema Parser #︎
Short Intro to Schema Types in AsyncAPI #︎
There are many different schema formats that one might use to describe the message payload. Not everyone uses JSON Schema. There are multiple formats out there, like RAML 1.0 Data Types, Avro, or even OpenAPI 3.0. When you write your AsyncAPI file, you should not manually convert schemas that you already store somewhere in a format different from AsyncAPI Schema. The best practice is to reuse existing schemas by referring to them in your AsyncAPI file and making sure that the Message object has information about the schema format within the schemaFormat parameter.
AsyncAPI lists schema types that are a MUST but is not limited to this list only. RAML Data Types is not a MUST HAVE, yet we already have a custom parser for it.
Avro Parser #︎
The 3rd plugin that we now officially support is related to Avro schema type. The first minor version is already out there, and you can give it a try, even if your schemas are in the Confluent Schema Registry. Have a look at the docs of the Avro schema parser. The Avro parser is also part of the latest release candidate of the Generator. Please help us make it work for you.
Circular References in AsyncAPI #︎
- The core AsyncAPI model now contains the hasCircular() function that you can use to determine at the very beginning if a given AsyncAPI document contains some circular references or not. An example use case for it is to throw a proper error message to the user with a clear message that circular references are not supported by your tool at the moment,
- The Schema model contains isCircular() function to check if a given schema is circular, so you do not have to detect it on your own and adequately react
Have a look at this pull request for implementation details. The work is still in progress as nice features in the Parser do not mean now all the Generator’s templates will support it. Have a look at this comment if you need more details.
TypeScript Support in Parser #︎
Since Parser 0.27 we will now always generate TypeScript types to make it much easier for TypeScript developers to use Parser in their tools.
Generator Release Candidate 7 is out #︎
We just released another release candidate that contains a lot of improvements that we added to the Parser. It also includes the above mentioned
avro-schema-parser so it is easier for you to test it out. Give it a try.
The Highlight of Interesting Discussions #︎
Publish vs Subscribe Discussion Continues #︎
We noticed that people that interact with AsyncAPI for the first time are confused about the meaning of those two words, publish and subscribe. Without going much into detail and oversimplifying things, we can say that this is the part of the community that considers using AsyncAPI to describe their internal broker-centric architecture. In such cases, you want to describe the application’s behavior and not what others can do with it. You want to use the Publish verb to specify that your application publishes to a given channel. What if your application is exposed to the outside world where others can interact with it? You want Publish to mean something different, like it is now, that it means your application is subscribed to a given channel, so that you can publish to it, and the application will receive a message.
Event-driven architectures are complex beasts with many patterns, and we should try to make AsyncAPI a single home for all of them. Please engage in this discussion, share your thoughts, and help us out to find the best solution:
- Proposal to solve the above challenge with a view property that will not require 3.0 release. There is also an idea to introduce more verbs.
- Recording of the last open SIG meeting where there was a discussion about publish/subscribe confusion.
AsyncAPI Special Interest Group (SIG) open meeting #︎
The last meeting took place on Tuesday, 21st of July, 4PM UTC. Meeting notes and recording are available here.
The next meeting is scheduled for next Tuesday, 4th of August, 8AM UTC.
We work on the agenda for the next meeting here. At the moment, there is nothing in the agenda so you can sneak in your topic easily.
Curated Content #︎
- Pulsar vs. Kafka — Part 1 — A More Accurate Perspective on Performance, Architecture, and Features - StreamNative view on Apache Pulsar vs Apache Kafka
- Kafka vs. Pulsar vs. RabbitMQ: Performance, Architecture, and Features Compared - Confluent view on Apache Kafka vs Apache Pulsar
- How to Write Your First AsyncAPI Specification - by Thomas Bush