Skip to content

AB#32684: Register AmazonS3Client as singleton and reuse it#2406

Merged
aurelio-aot merged 3 commits into
devfrom
bugfix/AB#32684-Refactor-AmazonS3Client-Usage
May 7, 2026
Merged

AB#32684: Register AmazonS3Client as singleton and reuse it#2406
aurelio-aot merged 3 commits into
devfrom
bugfix/AB#32684-Refactor-AmazonS3Client-Usage

Conversation

@aurelio-aot
Copy link
Copy Markdown
Contributor

AmazonS3Client internally owns an HttpClient, which maintains a pool of TCP connections to S3. Creating a new instance per request means a new connection pool per request — those pools are expensive to spin up and are never explicitly cleaned up when the class doesn't implement IDisposable.

AmazonS3Client internally owns an HttpClient, which maintains a pool of TCP connections to S3. Creating a new instance per request means a new connection pool per request — those pools are expensive to spin up and are never explicitly cleaned up when the class doesn't implement IDisposable.
@aurelio-aot aurelio-aot changed the title AB#32684: Register AmazonS3Client as singleton for reusability AB#32684: Register AmazonS3Client as singleton and reuse it May 6, 2026
@aurelio-aot aurelio-aot requested a review from JamesPasta May 6, 2026 21:07
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 632
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 7, 2026

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 632
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

@aurelio-aot aurelio-aot merged commit 6185b87 into dev May 7, 2026
25 checks passed
@JamesPasta JamesPasta deleted the bugfix/AB#32684-Refactor-AmazonS3Client-Usage branch May 8, 2026 21:54
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.

2 participants