Solace Community is getting a facelift!

On March 3rd we will be starting the process of migrating Solace Community to a new platform. As a result, Solace Community will go in to a temporary read-only state. You will still be able to come onto Solace Community and search through posts to find answers, but you won't be able to ask questions, post comments, or react in any way.

We hope to have the migration complete by Wednesday March 5th (or sooner), so please keep an eye out!

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: 549 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

This Month's Leaders

This Week's Leaders