Skip to content

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Dec 16, 2024

This rewrite uses classes to coherently group functionality. It attempts to separate out the actual client logic into a ForemanClient class. Then around that it wraps methods to push and watch as well as the ENC.

Uploading is rewritten to always use the same logic, regardless of whether it's single threaded or parallel. Single threaded just spawns a single thread. This also has the advantage of being able to reuse HTTP connection instances, possibly leading to higher throughput since it doesn't have to establish fresh HTTP(S) connections for every request.

Right now this is completely untested, but it was sparked by comments from @bastelfreak.

ekohl added 2 commits March 20, 2025 12:56
This rewrite uses classes to coherently group functionality. It attempts
to separate out the actual client logic into a ForemanClient class. Then
around that it wraps methods to push and watch as well as the ENC.

Uploading is rewritten to always use the same logic, regardless of
whether it's single threaded or parallel. Single threaded just spawns a
single thread. This also has the advantage of being able to reuse HTTP
connection instances, possibly leading to higher throughput since it
doesn't have to establish fresh HTTP(S) connections for every request.
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.

1 participant