Conversation
See https://github.com/dalf/searx/tree/quart_aiohttp for a try of quart + aiohttp as a client. QuartNotes about quart:
Dirty workaround idea about the last point: monkey patch httpxhttpx is based on h11 and h2. Both use the bring-your-own-I/O principle.
HTTP/1.1 and HTTP/2I agree, after doing some requests:
Proxy and connection reuse
aiohttpaiohttp uses C to provide an server and a client. HTTP/2The HTTP client doesn't support HTTP/2 : aio-libs/aiohttp#863 (comment) Anyway it seems as fast as pycurl, see https://github.com/dalf/searx/blob/pycurl-2nd-edition/misc/httpclient_bench.py Proxy and connection reuse
Which path ?I think a full aiohttp searx version should be tried:
|
Hi @dalf, I had tested aiohttp few months ago. I had abandoned the idea because I did want to move apart from upstream. You can see my work here after removing python2 support Whatever moving to ASGI is a really good idea. Starting with quart is probably a reasonable choice to move the project toward asyncio. |
See #2313 |
asyncio demo / proof of concept:
what is not working:
related to #904 (comment)
whatever benchmark results are: