In addition to WebSockets, it would also be nice to be able to consume messages 
from a simple HTTP streaming endpoint and to publish on a REST API endpoint 
like is done in 
[Nakadi](https://nakadi.io/manual.html#/event-types/name/events_get).
HTTP streaming is even more easy and supported in any language/framework than 
WebSockets and you can use tools such as curl to directly interact with the 
pulsar cluster (don't even need to install pulsar_client).
You can also document these endpoints in Swagger/OpenAPI.
Supported media-types for the message consumption could be:
* 
[application/stream+json](https://tools.ietf.org/id/draft-snell-activity-streams-type-01.html)
* `text/event-stream` for [Server Sent 
Event](https://www.w3.org/TR/eventsource/) clients

[ Full content available at: 
https://github.com/apache/incubator-pulsar/issues/2467 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to