Does Solace inspect the schema of message with AsyncAPI contract?

Xin
Xin Unconfirmed, Member Posts: 2

Hi,


We use AsyncAPI to define our event contract and I'd like to know whether Solace will inspect the schema of message sent by publisher before the consumption?


Thanks

Tagged:

Best Answer

  • TomF
    TomF Member, Employee Posts: 412 Solace Employee
    #2 Answer ✓

    Hi @Xin,

    The broker itself doesn't touch the payload, so any client is free to publish or consume any data or schema.

    However, some of our connectors, such as the Mulesoft and Boomi connectors, can link to Event Portal, extract the schemas and validate the schemas - but the connector is doing this, not Solace.

    Lastly, if you use the AsyncAPI code generators to generate Spring code, the schema is automatically considered.

Answers

  • TomF
    TomF Member, Employee Posts: 412 Solace Employee
    #3 Answer ✓

    Hi @Xin,

    The broker itself doesn't touch the payload, so any client is free to publish or consume any data or schema.

    However, some of our connectors, such as the Mulesoft and Boomi connectors, can link to Event Portal, extract the schemas and validate the schemas - but the connector is doing this, not Solace.

    Lastly, if you use the AsyncAPI code generators to generate Spring code, the schema is automatically considered.

  • Xin
    Xin Unconfirmed, Member Posts: 2

    Thanks for the answer.

    Anyway the schema will be checked at the reception :D

  • Tamimi
    Tamimi Member, Administrator, Employee Posts: 538 admin

    Hey Xin - as Tom mentioned, if you want to do any schema validation or inspection that will have to be done on the recipient's end. Whether that be using an AsyncAPI opensource community tooling for schema validation, or an IPaaS service (e.g. MuleSoft, Boomi), or writing your own custom payload inspection and validation microservice.


    At the end of the day, Solace PubSub+ Event Broker is a "pipe" that streams data with no payload manipulation: whatever comes in goes out