An example of a very common use case is the need to upload/download big files to backend systems.
Customers look for a solution that integrates with their backends for big data uploads/downloads.
Camel Netty4 HTTP is Fuse's most performant HTTP component and is stream based.
There are 4 streaming scenarios to consider for the Netty4 HTTP component:
1) Consumer receives (request) large stream from client
2) Consumer sends (response) large stream to client
3) Producer sends (request) large stream to backend
4) Producer receives (response) large stream from backend
Currently the component is unable to perform the above operations.
It appears Camel Netty4 HTTP is trying to read the entire stream causing out-of-memory errors.
Find attached (tester.tar.gz) a SpringBoot based project able to reproduce the above scenarios.
It includes 7 JUnits to test streaming capabilities from which the following test cases are failing:
The other JUnits are included to help us understand the mechanics of streaming in Camel.
The project relies on SpringBoot's embedded server to showcase a working solution without Netty4 HTTP.
To reproduce the problems, execute:
> mvn clean test
or one at a time:
> mvn clean test -Dtest=StreamTest#testCamelNetty4httpProducerStreamUpload
For your reference, there's an existing JIRA ticket in Camel related to the problem: