Why is org / arangodb / request synchronous?

Why is the new request JavaScript module synchronous? Is it intended to be used only in the job queue?

Is there a way to make asynchronous HTTP requests in ArangoDB?

+4
source share
1 answer

Full disclosure: I am part of the ArangoDB development team and primarily work on Foxx and all JavaScript. I am also the guy who wrote the module org/arangodb/request.


ArangoDB - , Node.js, , (, JavaScript- V8). Node.js( ), ArangoDB concurrency Event Loop. JavaScript ( V8 ), .

Node.js, setTimeout, , Event Loop ( ).

ArangoDB . , HTTP- Foxx JavaScript . setTimeout, , ( "", ), , .

- request, org/arangodb/request, . , , . , request npm, API , API Node.js(, ).

Node.js/io.js, , IO , , ArangoDB Node.js . Node.js . ArangoDB .

, API Foxx, API . , Foxx. - .

Foxx , , ( , ) . , , , API . , , , .

, ArangoDB , Foxx, , . Foxx , .


: promises . Promises/A + spec promises . , , , setTimeout process.nextTick, ArangoDB.

+5

All Articles