[openstack-dev] [all][Python 3.4-3.5] Async python clients

Denis Makogon lildee1991 at gmail.com
Sun Jun 26 12:56:14 UTC 2016


Hello stackers.


I know that some work in progress to bring Python 3.4 compatibility to
backend services and it is kinda hard question to answer, but i'd like to
know if there are any plans to support asynchronous HTTP API client in the
nearest future using aiohttp [1] (PEP-3156)?

If yes, could someone describe current state?

This question is being asked because i've been working on AIOrchestra [2]
(async TOSCA orchestration framework) and its OpenStack plugin [3], so from
its design approach i need to use asynchronous HTTP API clients in order to
get full power from UVLoop, AsyncIO event loop over Python 3.5 for fast,
lightweight and reliable orchestration. But current clients are still
synchronous and only Py3.4 or greater parser-compatible. Major problem
appears when you trying to provision resource that requires to have some
time to reach ACTIVE/COMPLETED state (like, nova instance, stack, trove
database, etc.) and you have to use polling for status changes and in
general polling requires to send HTTP requests within specific time frame
defined by number of polling retries and delays between them (almost all
PaaS solutions in OpenStack are doing it that might be the case of
distributed backend services, but not for async frameworks).


[1] https://github.com/KeepSafe/aiohttp
[2] https://github.com/aiorchestra/aiorchestra
[3] https://github.com/aiorchestra/aiorchestra-openstack-plugin


Kind regards,
Denys Makogon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160626/65712905/attachment.html>


More information about the OpenStack-dev mailing list