torch
torch

Reputation: 11

Streaming data in wso2 api manager 3.2

Good day! I was asked to publish an rtsp stream on wso2 api manager 3.2, for example this: rtsp: //wowzaec2demo.streamlock.net/vod/mp4: BigBuckBunny_115k.mov. Naturally - this does not work, I do not receive rtsp data proxied through wso2 api manager 3.2. Am I getting it right, this shouldn't work? I want to know if it is possible to receive multimedia data through wso2 api manager 3.2? And also I want to know if it is possible to receive any other streaming data through wso2 api manager 3.2, for example, stock quotes? Or is this only possible in version 4.0?

Upvotes: 1

Views: 193

Answers (1)

Yasas
Yasas

Reputation: 73

Currently, WSO2 API Manager or WSO2 Streaming Integrator products (even the latest versions) are not supporting such RTSP streams.

It is possible to create WebSocket APIs using WSO2 APIM 3.2.0, where streams will use ws (or wss) protocols. If your stock quote data are coming from a server via a WebSocket channel, you can create a WebSocket API in WSO2 API Manager 3.2 and consume them.

WSO2 API Manager's latest version 4.0 has support for proxying WebSocket and SSE (Server-Sent Events) streams as managed APIs by default. Unlike in API Manager 3.2, resources are supported for these types of APIs as well. So in this case, if your stock quote data are coming from the server in the form of WebSocket or Server-Sent Events, you can directly proxy your server via WSO2 API Manager 4.0.

If you are getting stock quote data from your server via other protocols such as Kafka, MQTT, HTTP, JMS and etc, you can use WSO2 Streaming Integrator (which is an integration component of API Manager 4.0) to switch from those protocols - to WebSocket or SSE; and then you can proxy the switched stream. Here is an example of switching Kafka to WebSocket, and exposing it as a WebSocket API.

You can find more information from here.

Upvotes: 1

Related Questions