Re:Building an earthquake map with RethinkDB and GeoJSON
by jasondc on Tuesday September 30, 2014 @02:27PM
(#8390086)
The r.http command in RethinkDB is interesting, is there another database that has anything similar? I can't think of one.
[ Parent
| on HN ]
Re:Building an earthquake map with RethinkDB and GeoJSON
by jmakeig on Tuesday September 30, 2014 @03:49PM
(#8390713)
Yes, MarkLogic includes a full HTTP client and server so you can create and consume web services. In XQuery this would look like:
xdmp:http-get("http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_month.geojson")
or in the upcoming release, you'll be able to do the same in server-side JavaScript (embedded V8): xdmp.httpGet("http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_month.geojson");
(Full disclosure: I’m a Product Manager at MarkLogic.)I find this really convenient for quickly standing up web services and doing ETL-type logic that runs close to the data in the database.
Re:Building an earthquake map with RethinkDB and GeoJSON
by coffeemug on Tuesday September 30, 2014 @02:31PM
(#8390122)
Slava @ Rethink here. Not sure if anyone else supports it, but check out http://rethinkdb.com/docs/external-api-access/ for more interesting details on the command.