Skip to content

Conversation

@sciros
Copy link
Collaborator

@sciros sciros commented Aug 14, 2025

open-mpic-core included a split in logic for handling the ClientSession object lifecycle, based on a flag (reuse_http_client -- now removed) that would be passed in as "true" for Docker-based wrappers and "false" for serverless (Lambda).

Now the logic has been merged -- the HTTP client does not get reused between calls, so the logic is the same everywhere as it has been for Lambda.

The force_close=True flag is also being set when creating the HTTP client.

These changes are to address memory leaks we were experiencing at high, sustained volume.

This is a breaking change for the open-mpic-containers and aws-lambda-python wrappers (NOT the MPIC client API defined in open-mpic-specification), so this necessitates a major version bump.

@sciros sciros requested review from ahanafy and birgelee August 14, 2025 16:50
Copy link
Collaborator

@ahanafy ahanafy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, i think this might solve some of the sporadic high latency issues I've seen in some scenarios with high concurrency.

@sciros sciros merged commit bda759e into main Aug 15, 2025
1 check passed
@sciros sciros deleted the ds-independent-http-clients branch August 15, 2025 13:10
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