How to have single proxy to support both streaming and non-streaming requests?

Not applicable

We've a proxy setup in apigee which targets existing backend.

Most of the backend endpoints do not require streaming except 3, as those 3 endpoint usually communicate big payloads (usually more than 10 MB limit) both in request and response. How can we enable streaming for just those 3 endpoints and leave it normal for other endpoints?

Please note that

  • We cannot create a separate API proxy just to serve those streaming endpoints.
  • We need streaming for both proxy and target endpoints.
0 2 236
2 REPLIES 2

Hi @Anil Darji

  • We cannot create a separate API proxy just to serve those streaming endpoints.

I am not sure why this restriction, but that's the best possible path, all you need to ensure is streaming resources are bundled as a new proxy. Either you will need multiple Proxy Endpoints and Multiple Target Endpoints with Streaming setup to achieve this as explained here:

https://docs.apigee.com/api-services/content/enabling-streaming

AFAIK Technically there is no way to combine streaming and non-streaming because as soon as enable streaming any policies that operate on the payload are bypassed.

Not sure if your proxy is just acting as a passthrough and not modifying any payload in which case you can enable streaming, and apply only the other policies of apigee on the same proxy.

Thanks.

Thanks for replying. I see that's technical limitation.