https://github.com/neo4j/fast-http
Cheers
Michael
The idea of letting users control transactions is controversial. Transactions are usually an implementation detail of systems, that clients shouldn't be aware of. However as a database, we might be more lenient in this case.
But in terms of your proposed message exchanges, there are some problems because you're tunnelling actions through URIs and ignoring the HTTP method.
> Create transaction:
> GET http://localhost:7474/db/data/transactions/new
> Which returns transaction id. Then we can do other calls to the
> transaction's URI:
That can't be. GET is idempotent. Creating a transaction will have to be a post to some resource and then either a direct response or a redirect followed by GET.
> * http://localhost:7474/db/data/transactions/{id}/
> And the commit like this:
> GET http://localhost:7474/db/data/transactions/{id}/commit
> which returns transaction status.
Again, GET is idempotent, it shouldn't be used like this. I'd prefer a PUT of a status over a GET to some URI.
Jim
Sent from my phone, please excuse typos and brievety.
On May 4, 2012 3:33 PM, "Nicolas Dietrich" <nicodi...@gmail.com> wrote:
>
> Hi Michael & Jacob,
>
> we're happy to find out about this ongoing effort of a transaction aware REST server.
>
> Some questions:
>
> * Is the intention of fast-http to replace the current neo4j-rest-server?
No. Fast-HTTP is a prototype we built to get an idea of how much performance we can get out of HTTP, as well as sketching on extensions to the current REST API.
> * Is there any roadmap / time frame about a stable release?
No, fast-http is not part of our planned pipeline.
> * Is it already usable?
Kind of, basic support for node / relationship CRUD and transactions are supported.
> * Is there some installation documentation?
No, it can be started as a java app from within eclipse, see the Neo4jServer class. See the integration tests for API syntax.
Hi,I'm planning on building a business webservice on top of a graph db , and i'm currently in the process of designing my data layer on top of neo4j.For now, i'm using py2neo (a python lib i found which uses REST Api) and would badly need some way of performing transaction. I've had a look at the github project you mentionned, but it doesn't seem to have been updated for the last 6 months.Do you have any recommendation ?Thanks,Benjamin
--
--
--
--