tutorials
tutorials copied to clipboard
aws-modules/aws-reactive/ - FluxResponseProvider potentially Unnecessary
There is a canned AsyncResponseTransformer that I believe implements the same functionality as FluxResponseProvider. Removing the custom implementation of AsyncResponseTransformer would make the tutorial and examples more concise.
for example:
Flux<ByteBuffer> responseBody = Mono.fromFuture(s3Client.getObject( request, AsyncResponseTransformer.toPublisher() ).flatMapMany( Flux::from );
Hey, @ericghara.
Can you provide the link to the article, so we can take a look?
Sure @ulisseslima. It's java-aws-s3-reactive. Here's the javadoc of the method I'm describing. If it's helpful I can submit a PR.
Thanks, @ericghara, we're already looking into the issue.
The code and article have been updated to use the AsyncResponseTransformer and remove the custom class.