Replies: 1 comment 1 reply
-
I'm not familiar with this library, but a quick look at the library suggests that what they call "asynchronous" is based on polling, which will be imperative. It would have been simpler for you if, say, the API exposed You could use something like https://smallrye.io/smallrye-mutiny/2.5.1/guides/integrate-a-non-reactive-source/ to expose a Another similar option is to use an emitter (see https://smallrye.io/smallrye-mutiny/2.5.1/tutorials/creating-uni-pipelines/#creating-unis-using-an-emitter-advanced and https://smallrye.io/smallrye-mutiny/2.5.1/tutorials/creating-multi-pipelines/#creating-multis-using-an-emitter-advanced and have another thread do the polling work, and eventually posting events using the emitter. The idea is that the emitter lambda is called upon subscription, and this is where you would make the query and spin the polling thread. |
Beta Was this translation helpful? Give feedback.
-
Hi folks,
Snowflake can do async queries as per jdbc-asynchronous-query. This looks something like:
My question is: How can I convert such a non-blocking "check job status" API into a mutiny Uni or Multi so that I can author async ELT processing pipelines using mutiny Uni/Multi pipelines?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions