Skip to content

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

Open
@q10

Description

@q10

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?

Activity

mvollmary

mvollmary commented on Jan 19, 2018

@mvollmary

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

rocketraman commented on Jan 16, 2020

@rocketraman
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @rocketraman@q10@mvollmary

        Issue actions

          [question] Option to run asynchronous queries with the java API · Issue #169 · arangodb/arangodb-java-driver