Skip to content

Async variants of ExecutionInterceptor.modifyRequest, modifyResponse and modifyException #7559

Open

Description

@hanabanaka

Describe the feature

Add async versions of modifyRequest, modifyResponse and modifyException that return a CompletableFuture, so interceptors on async clients can do I/O without blocking. These could be additive default methods, so existing interceptors keep working.

Use Case

These hooks must return synchronously, so on an async client an interceptor has two options:

  • Block inside the hook. It blocks the caller's thread in modifyRequest, and the Netty event loop in modifyResponse and modifyException.
  • Wrap the entire service client. That means forwarding every operation by hand.

As a result, interceptors like the AWS Database Encryption SDK for DynamoDB's DynamoDbEncryptionInterceptor support only sync clients.

Proposed Solution

No response

Other Information

No response

Acknowledgements

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

AWS Java SDK version used

2.30.18 (via DB-ESDK 4.1.0); also present in 2.59.1

JDK version used

Any (API design issue; DB-ESDK supports Java 8+)

Operating System and version

Any (not OS-specific)

AI tools

  • I have reviewed this issue myself, including any content generated by AI tools

Activity

  1. added
    feature-request
    needs-triage
    on Nov 16, 2026
  2. debora-ito commented on Nov 17, 2026

    @debora-ito
    Member

    Hi @hanabanaka

    Acknowledged as a feature request.

    Community note: please add a 👍 reaction to the top issue to help us with prioritization.

  3. added
    p2
    and removed
    needs-triage
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestp2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions