Skip to content

feat: add an opt-in SDK eager loading API - #3505

Merged
jterapin merged 1 commit into
version-3from
ruby-5459-eager-load
Nov 23, 2026
Merged

jterapin merged 1 commit into
version-3from
ruby-5459-eager-load

Conversation

@jterapin

Copy link
Copy Markdown
Contributor

Description

AWS SDK for Ruby normally resolves service constants when an application first uses them. A customer reproduction demonstrates a LoadError when a phased deployment removes files from the previous gem version before an old worker resolves an autoloaded constant.

Customer impact

Applications can now opt in to resolving constants from their required SDK gems during startup. This prevents later requests from triggering SDK autoloads after deployment cleanup, while preserving lazy loading as the default.

Fix

  • Add a public Aws.eager_load! API that resolves constants from SDK gems required before the call.
  • Document the loading scope, memory consideration, and that eager loading does not make AWS service requests.
  • Add RBS and specification coverage for the new API.

Testing

  • aws-sdk-core: 2,527 examples, 0 failures, 36 expected pending.
  • Focused Core specification: 7 examples, 0 failures.
  • git diff --check.

🤖 This PR description was drafted with AI assistance and reviewed by @jterapin. ✨

@jterapin
jterapin force-pushed the ruby-5459-eager-load branch from 925053a to f21aee8 Compare November 20, 2026 21:59
@jterapin
jterapin merged commit 2ed5fd8 into version-3 Nov 23, 2026
36 checks passed
@jterapin
jterapin deleted the ruby-5459-eager-load branch November 23, 2026 16:43
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.

3 participants