News for hackers. Stuff that matters.
Re:ArangoDB 3.0 Release – A Solid Ground to Scale by pluma on Thursday June 23, 2016 @09:02AM (#11960532)
Not to blow my own trumpet but I think the new Foxx API (for letting you write your own HTTP endpoints in JS) is a huge step forward, too ;)

(I'm the lead developer of the new ArangoDB Foxx, AMA)

Re:ArangoDB 3.0 Release – A Solid Ground to Scale by egeozcan on Thursday June 23, 2016 @10:07AM (#11960918)
Do you have an example app written with some benchmarks?

It says that we can utilize npm, so, how is the compatibility with node? Native (C++) modules?

Is it used already in production somewhere?

(I am asking a lot of questions because I'm very interested, not anything else)

Re:ArangoDB 3.0 Release – A Solid Ground to Scale by pluma on Thursday June 23, 2016 @10:43AM (#11961232)
Hi egeozcan,

1) I don't think we currently have a benchmark specifically for Foxx. However we did some one-off tests in 2.8 and there was no noticeable difference between the plain HTTP API and a Foxx service using the equivalent JS API (just the V8 context switches).

2) See the section "Compatibility Caveats" in the docs: https://docs.arangodb.com/3.0/Manual/Foxx/Dependencies.html Specifically we can't support native modules and there are limits to what Node APIs we can support (network and filesystem APIs are different and more restricted, also Foxx is entirely synchronous).

3) Yes! Check out the case studies linked a the bottom of the website: https://www.arangodb.com/#casestudies All three of them use Foxx. I also dogfood Foxx: I'm the lead developer of a commercial e-learning product that uses full-stack JS with ArangoDB.

Feel free to swing by our community Slack channel if you have more questions: https://slack.arangodb.com

Re:ArangoDB 3.0 Release – A Solid Ground to Scale by merqurio on Thursday June 23, 2016 @09:05AM (#11960542)
Foxx microservices are the best. I love them
Re:ArangoDB 3.0 Release – A Solid Ground to Scale by buckbova on Thursday June 23, 2016 @11:30AM (#11961741)
Is the Foxx API supposed to imitate what would be stored procedures on the traditional rdbms?
Re:ArangoDB 3.0 Release – A Solid Ground to Scale by don71 on Thursday June 23, 2016 @11:58AM (#11961979)
Hi! I'm Claudius from ArangoDB.

Saying Foxx is like stored procedures is overly simplistic.

ArangoDB's external API is the HTTP API. Foxx lets you extend that HTTP API with arbitrary code that will be executed in V8 with direct access to the same native APIs it uses internally.

The closest equivalents I'm aware of are RethinkDB's Horizon (which isn't hosted in the database) and CouchDB's CouchApps (which are far more limited in what they can do).

You can think of it as having a subset of Node.js running right on top of the database with direct memory access and scaling (Foxx services run on each coordinator).

Re:ArangoDB 3.0 Release – A Solid Ground to Scale by buckbova on Thursday June 23, 2016 @12:10PM (#11962092)
So the expectation is for client applications to directly connect to the API. But of course that's not required.
Re:ArangoDB 3.0 Release – A Solid Ground to Scale by don71 on Thursday June 23, 2016 @12:23PM (#11962223)
You are right that that is not required. That ArangoDB speaks HTTP doesn't mean it has to be exposed to the browser.

You can use Foxx to host your entire server-side application inside ArangoDB in some cases but in our experience, the best approach is having a middleground where the data-intensive server-side code lives in Foxx services and the client-facing part (e.g. server-side rendering) exists outside of it.

Foxx offers you the option to put backend logic directly inside the database; it's not an all-or-nothing decision.

Re:ArangoDB 3.0 Release – A Solid Ground to Scale by saiko-chriskun on Thursday June 23, 2016 @10:16AM (#11960999)
whoa. foxx looks awesome!