Database polling with Reactive Extensions
问题 I have to query a database in a timely fashion to know the state of a legacy system. I've thought of wrapping the query around an Observable , but I don't know the correct way to do it. Basically, it will be the same query every 5 seconds. But I'm afraid I will have to face these problems: What if the execution of the query takes 10 seconds? I don't want to execute any new query if the previous is still being processed. Also, there should be a timeout. If the current query doesn't execute