AsyncAPI Spec 2.6.0 Release Notes

Azeez Elegbede

·1 min read

The new version of the AsyncAPI specification - 2.6.0 - is now available.

This is a minor release and doesn't bring any breaking changes. You can switch to it by modifying the following value in your AsyncAPI file asyncapi: '2.5.0' into asyncapi: '2.6.0'

Added Pulsar Bindings and Protocol to AsyncAPI specification

The specification now supports a new custom protocol through the bindings feature called Pulsar.

Here is an example of the server representation in Pulsar:

1
2
3
4
5
6
servers:
  production:
    bindings:
      pulsar:
        tenant: contoso
        bindingVersion: '0.1.0'

And also an example of the channel representation in Pulsar:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
channels:
  user-signedup:
    bindings:
      pulsar:
        namespace: 'staging'
        persistence: 'persistent'
        compaction: 1000
        geo-replication:
          - 'us-east1'
          - 'us-west1'
        retention:
          time: 7
          size: 1000
        ttl: 360
        deduplication: false
        bindingVersion: '0.1.0'

Thanks to Alex Wichmann for this incredible feature. For more details, check out this Pulsar bindings pull request and the binding definition.

Photo by Clem Onojeghuo: https://www.pexels.com/photo/low-angle-photography-of-metal-building-on-grayscale-175771/