Solace PubSub+ message brokers can exchange messages using bidirectional HTTP POST requests. This lets REST clients send and receive messages to and from other PubSub+ clients whether they’re using a Solace API or an open API or protocol. REST producers send message contents in the body of an HTTP POST request. For request/reply scenarios, the response contents are carried in the body of the HTTP POST 200 OK responses.

For REST consumers, the PubSub+ message broker sends the message in the body of an HTTP POST request. And again for request/reply scenarios, the response contents are carried in the HTTP POST 200 OK responses.

The use of bidirectional HTTP POST requests has several benefits. First it removes the possibility of message loss which can exist when using HTTP GET requests to poll for messages. It also enables much higher performance and overall message rate when multiple, parallel HTTP connections are used.

solace-rest-messaging-api