<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2016-07-04 12:40 GMT+03:00 Antoni Segura Puimedon <span dir="ltr"><<a href="mailto:toni+openstackml@midokura.com" target="_blank">toni+openstackml@midokura.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Mon, Jul 4, 2016 at 11:16 AM, Julien Danjou <span dir="ltr"><<a href="mailto:julien@danjou.info" target="_blank">julien@danjou.info</a>></span> wrote:<br></span><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>On Sun, Jun 26 2016, Denis Makogon wrote:<br>
<br>
> I know that some work in progress to bring Python 3.4 compatibility to<br>
> backend services and it is kinda hard question to answer, but i'd like to<br>
> know if there are any plans to support asynchronous HTTP API client in the<br>
> nearest future using aiohttp [1] (PEP-3156)?<br></span></blockquote></span><div><br><span class=""><div>We were not sure if aiohttp would be taken in as a requirement, so in our kuryr kubernetes<br></div>prototype we did our own asyncio http request library (it only does GET for now)[2]<br><br><a href="https://github.com/midonet/kuryr/blob/k8s/kuryr/raven/aio/methods.py" target="_blank"></a><br></span></div></div></div></div></blockquote><div><br></div><div>Good to see that someone already using async features. But i'd doubt regarding re-inventing wheel, aiohttp is good choice for implementing both clients and servers, so going deeper to asyncio core parts is required when you're doing something very protocol-specific on the transport layer.</div><div><br></div><div>So, current question is about have common part of code that utilizes async HTTP coroutines for current SDKs, and unfortunately, backward compatibility should remain because not all projects were shifted to Py34 or greater yet, but pace of feature deliver should remain as is.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><span class=""> <br></span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>
<br>
</span><span class="">I don't think there is unfortunately. Most clients now relies on<br>
`requests', and unfortunately it's not async not it seems ready to be<br>
last time I checked.<br></span></blockquote><div><br></div><div>for the neutron clients now we use a thread executor from the asyncio loop any time<br></div><div>we do neutron client request. <br></div><div><br>[2] <a href="https://github.com/midonet/kuryr/blob/k8s/kuryr/raven/aio/methods.py" target="_blank">https://github.com/midonet/kuryr/blob/k8s/kuryr/raven/aio/methods.py</a> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">
<span><font color="#888888"><br>
--<br>
Julien Danjou<br>
// Free Software hacker<br>
// <a href="https://julien.danjou.info" rel="noreferrer" target="_blank">https://julien.danjou.info</a><br>
</font></span><br></span><span class="">__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></span></blockquote></div><br></div></div>
<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div></div>