Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Unknown
Description
Some Web services are designed with HTTP streaming in mind, you invoke them, and they maintain the connection open to send back chunks of data at different time intervals.
An example API of such kind is the following:
https://developer.gitter.im/docs/streaming-api
To define a Source Kamelet that consumes messages from such API, Camel's YAML DSL requires the ability to configure the Route option streamCache that is enabled by default and requires to be disabled for this use case.
A workaround to make the Kamelet work is to include the global parameter
camel.main.streamCachingEnabled
Using the workaround however is requiring from the user to include it along with its KameletBinding definition, which is not ideal, specially for non-Camel users.
Find attached an example KameletBinding making use of an example Kamelet consuming data from the Streaming API above.
Please note how the global parameter is included. When removing the global parameter Camel get's stuck waiting for a full HTTP response that never completes because the server maintains the connection open.
Attachments
Attachments
Issue Links
- relates to
-
CAMEL-18374 camel-core - Route template should be able to specify stream-caching option
- Resolved