<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2016-07-04 13:22 GMT+03:00 Roman Podoliaka <span dir="ltr"><<a href="mailto:rpodolyaka@mirantis.com" target="_blank">rpodolyaka@mirantis.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Denis,<br>
<span class=""><br>
> Major problem<br>
> appears when you trying to provision resource that requires to have some<br>
> time to reach ACTIVE/COMPLETED state (like, nova instance, stack, trove<br>
> database, etc.) and you have to use polling for status changes and in<br>
> general polling requires to send HTTP requests within specific time frame<br>
> defined by number of polling retries and delays between them (almost all<br>
> PaaS solutions in OpenStack are doing it that might be the case of<br>
> distributed backend services, but not for async frameworks).<br>
<br>
</span>How would an asynchronous client help you avoid polling here? You'd<br>
need some sort of a streaming API producing events on the server side.<br>
<br></blockquote><div><br></div><div>No, it would not help me to get rid of polling, but using async requests will allow to proceed with next independent async tasks while awaiting result on async HTTP request.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If you are simply looking for a better API around polling in OS<br>
clients, take a look at <a href="https://github.com/koder-ua/os_api" rel="noreferrer" target="_blank">https://github.com/koder-ua/os_api</a> , which is<br>
based on futures (be aware that HTTP requests are still *synchronous*<br>
under the hood).<br>
<br>
Thanks,<br>
Roman<br>
<div class="HOEnZb"><div class="h5"><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>
</div></div></blockquote></div><br></div></div>