You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is that an actual problem for your usage of the SDK?
My experience with https://github.com/ansible-collections/hetzner.hcloud has been rather slow performance so I started thinking about improvements to the stack. However, I haven't done proper research whether HTTP/2 would make a difference. It would make sense though that things like multiplexing pagination would be useful.
I don't think switching to HTTP/2 makes sense for this library.
Switching from requests to httpx (the only real way to get full HTTP/2 support) would require significant code rework, the introduction of global session management, and would complicate cleanup, threading, and asynchronous usage, as well as increase the maintenance burden. For typical hcloud-python usage—primarily sequential calls, server creation, and polling for actions—the real benefits of multiplexing and header compression would be negligible.
The complexity and likelihood of introducing new issues significantly outweigh any potential performance gains. I would suggest closing this issue as “will not be fixed” or “very low priority.”
If we really want to go down this road, we could also switch to curl_cffi for HTTP/3, but at that point we're just doing tech fashion, not solving real problems.
Activity
[-]Use HTTP 2 instead of 1.1[/-][+]Use HTTP/2 instead of 1.1[/+]jooola commentedon Nov 11, 2025
Is that an actual problem for your usage of the SDK?
betelgeuse commentedon Nov 11, 2025
My experience with https://github.com/ansible-collections/hetzner.hcloud has been rather slow performance so I started thinking about improvements to the stack. However, I haven't done proper research whether HTTP/2 would make a difference. It would make sense though that things like multiplexing pagination would be useful.
koval01 commentedon May 23, 2026
I don't think switching to HTTP/2 makes sense for this library.
Switching from requests to httpx (the only real way to get full HTTP/2 support) would require significant code rework, the introduction of global session management, and would complicate cleanup, threading, and asynchronous usage, as well as increase the maintenance burden. For typical hcloud-python usage—primarily sequential calls, server creation, and polling for actions—the real benefits of multiplexing and header compression would be negligible.
The complexity and likelihood of introducing new issues significantly outweigh any potential performance gains. I would suggest closing this issue as “will not be fixed” or “very low priority.”
If we really want to go down this road, we could also switch to curl_cffi for HTTP/3, but at that point we're just doing tech fashion, not solving real problems.