Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite ENC to use classes #55

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

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.

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