nicolasff / webdis

A Redis HTTP interface with JSON output
https://webd.is
BSD 2-Clause "Simplified" License
2.82k stars 307 forks source link

HTTP/2 Support for Webdis #227

Open srimithravemula opened 1 year ago

srimithravemula commented 1 year ago

Hi Nicolasff,

Can you please let me know if there any plan to support HTTP/2 version as well for webdis.

Regards

nicolasff commented 1 year ago

Hi @srimithravemula,

There are no plans to add HTTP/2 support at this time. Webdis uses the original HTTP parser from Node, which was later replaced with llhttp. Supporting HTTP/2 is not as simple as swapping the parser though, it would mean also supporting multiple streams per connection, and more. The way Webdis was written means that adding support for would likely require major changes to its design and internals.

I can see how an HTTP/2-to-HTTP proxy in front of Webdis could help somewhat (at least if one of the major goals is the ability to handle multiplexed connections), although it's obviously not the same as having built-in support.