Skip to content

DRIVER-434 Add header optimization - #51

Merged
dkropachev merged 1 commit into
mainfrom
dk/driver-434-header-optimization
Jul 13, 2026
Merged

DRIVER-434 Add header optimization#51
dkropachev merged 1 commit into
mainfrom
dk/driver-434-header-optimization

Conversation

@dkropachev

@dkropachev dkropachev commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add opt-in DynamoDB request header optimization through nullable Config::header_optimization
  • make HeaderOptimization a strategy interface so applications can provide their own allowed-header policy
  • add built-in DefaultHeaderOptimization and HeaderAllowlistOptimization implementations
  • compute default allowlists from a decoupled HeaderOptimizationContext: base Alternator headers, credential headers only when credentials are configured, and User-Agent only when configured
  • document the option and add tests for default, fixed allowlist, custom strategy, configured credentials, no configured credentials, and custom filtering

Testing

  • make check
  • make test-unit (AWSSDK was not found locally, so the AWS adapter target was not built in this environment)
  • make build-integration cannot run locally because AWSSDK with the dynamodb component is not installed

Closes #19

@dkropachev
dkropachev force-pushed the dk/driver-434-header-optimization branch 3 times, most recently from 6d7e39e to 8d003f2 Compare July 13, 2026 21:24
@dkropachev
dkropachev force-pushed the dk/driver-434-header-optimization branch from 8d003f2 to e16a5f7 Compare July 13, 2026 21:26
@dkropachev dkropachev changed the title DRIVER-434 Add DynamoDB header optimization DRIVER-434 Add header optimization Jul 13, 2026
@dkropachev dkropachev self-assigned this Jul 13, 2026
@dkropachev
dkropachev merged commit a91cd5d into main Jul 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Alternator traffic optimization

1 participant