Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] Option to run asynchronous queries with the java API #169

Open
q10 opened this issue Jan 11, 2018 · 2 comments
Open

[question] Option to run asynchronous queries with the java API #169

q10 opened this issue Jan 11, 2018 · 2 comments

Comments

@q10
Copy link

q10 commented Jan 11, 2018

In the HTTP API, there is the option to add "x-arango-async: store" to the headers so that a query can be run asynchronously, in the sense that a job id is returned and results can be fetched later. Is this option also possible through the Java API? I understand that the API already has Java futures, but I would not like my app to have many background threads waiting for results on queries. Would it be possible to have the API return just a future of a job id, which the client can reference at a later time to fetch the results?

@mvollmary
Copy link

I understand your point of view. This sounds like a valid use case but we don't have a good implementation story for this kind of feature at this time.

@rocketraman
Copy link
Contributor

Agreed, the async driver isn't really async. Its an async API on top of a synchronous driver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants