aws-sdk-java-v2 icon indicating copy to clipboard operation
aws-sdk-java-v2 copied to clipboard

Implement java.util.concurrent.Flow.Publisher for SdkPublisher

Open tmccombs opened this issue 6 months ago • 1 comments

Describe the feature

Currently, SdkPublisher implements org.reactivestreams.Publisher. but that interface is now kind of deprecated, and replaced by java.util.concurrent.Flow.Publisher, which is part of the standard library in java 9 and later.

I'd like it if this and related APIs were updated to use the newer API.

Use Case

I am using other libraries that work with the newer Flow API, and it is currently necessary to use adapters to convert between the built-in Flow API and the older reactivestreams API. I would like it if the AWS SDK supported the modern API natively

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • [x] I may be able to implement this feature request
  • [ ] This feature might incur a breaking change

AWS Java SDK version used

any

JDK version used

any version 9 or greater

Operating System and version

any

tmccombs avatar Jun 06 '25 23:06 tmccombs

@tmccombs feature request acknowledged.

The Java SDK v2 supports JDK 8+, so to replace reactivestreams with java.util.concurrent.Flow.Publisher will require significant changes.

Let's use this to gauge interest from the community: please add a 👍 to the top comment if you'd like to see this supported.

debora-ito avatar Jun 24 '25 20:06 debora-ito