Skip to content

Automatically integrate TLS session cache for HTTP clients #506

@coderabbitai

Description

@coderabbitai

Overview

Automatically integrate TLS session cache (ClientSessionCache) with retryablehttp for improved performance.

Details

  • Add shared LRU session cache to HTTP client TLS configurations when creating or wrapping HTTP clients
  • Should work transparently with new HTTP clients or any provided ones if absent
  • Reduces TLS handshake overhead and CPU usage for repeated connections to the same host
  • Improves overall throughput and efficiency
  • Should be a clean, transparent optimization that doesn't change behavior

Benefits

  • Lower CPU usage from reduced TLS handshakes
  • Better performance for scenarios with repeated connections to the same hosts
  • No breaking changes or compatibility issues

References

Metadata

Metadata

Assignees

Labels

Type: EnhancementMost issues will probably ask for additions or changes.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions