[openstack-dev] [all][Python 3.4-3.5] Async python clients
Roman Podoliaka
rpodolyaka at mirantis.com
Mon Jul 4 10:22:59 UTC 2016
Denis,
> 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).
How would an asynchronous client help you avoid polling here? You'd
need some sort of a streaming API producing events on the server side.
If you are simply looking for a better API around polling in OS
clients, take a look at https://github.com/koder-ua/os_api , which is
based on futures (be aware that HTTP requests are still *synchronous*
under the hood).
Thanks,
Roman
More information about the OpenStack-dev
mailing list