Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Transactions in REST API
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Cyprian Kowalczyk  
View profile  
 More options Mar 29 2012, 3:35 am
From: Cyprian Kowalczyk <cyprian...@gmail.com>
Date: Thu, 29 Mar 2012 00:35:40 -0700 (PDT)
Local: Thurs, Mar 29 2012 3:35 am
Subject: Transactions in REST API
Hello,

I'm wondering whether it would be feasible to implement transactions
in REST API to get something like this:

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:
* 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.

Just a thought.

kind regards,
Cyprian


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Hunger  
View profile  
 More options Mar 29 2012, 3:47 am
From: Michael Hunger <michael.hun...@neotechnology.com>
Date: Thu, 29 Mar 2012 09:47:01 +0200
Local: Thurs, Mar 29 2012 3:47 am
Subject: Re: [Neo4j] Transactions in REST API
This is addressed in a new implementation of the http-endpoints (which is still work in progress).

https://github.com/neo4j/fast-http

Cheers

Michael

Am 29.03.2012 um 09:35 schrieb Cyprian Kowalczyk:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jim Webber  
View profile  
 More options Mar 29 2012, 3:53 am
From: Jim Webber <j...@neotechnology.com>
Date: Thu, 29 Mar 2012 08:53:05 +0100
Local: Thurs, Mar 29 2012 3:53 am
Subject: Re: [Neo4j] Transactions in REST API
Hi Cyprian,

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cyprian Kowalczyk  
View profile  
 More options Mar 29 2012, 3:09 pm
From: Cyprian Kowalczyk <cyprian...@gmail.com>
Date: Thu, 29 Mar 2012 12:09:03 -0700 (PDT)
Local: Thurs, Mar 29 2012 3:09 pm
Subject: Re: Transactions in REST API
Good to hear this!

On Mar 29, 9:47 am, Michael Hunger <michael.hun...@neotechnology.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nicolas Dietrich  
View profile  
 More options May 4 2012, 9:33 am
From: Nicolas Dietrich <nicodietr...@gmail.com>
Date: Fri, 4 May 2012 06:33:28 -0700 (PDT)
Local: Fri, May 4 2012 9:33 am
Subject: Re: [Neo4j] Transactions in REST API

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?
 * Is there any roadmap / time frame about a stable release?
 * Is it already usable?
 * Is there some installation documentation?

Thanks and cheers,
Nicolas


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jacob Hansson  
View profile  
 More options May 5 2012, 7:23 am
From: Jacob Hansson <jacob.hans...@neotechnology.com>
Date: Sat, 5 May 2012 13:23:13 +0200
Local: Sat, May 5 2012 7:23 am
Subject: Re: [Neo4j] Transactions in REST API

Sent from my phone, please excuse typos and brievety.
On May 4, 2012 3:33 PM, "Nicolas Dietrich" <nicodietr...@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.

> Thanks and cheers,
> Nicolas

> On Thursday, March 29, 2012 9:47:01 AM UTC+2, Michael Hunger wrote:

>> This is addressed in a new implementation of the http-endpoints (which

is still work in progress).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Benjamin Garrigues  
View profile  
 More options Nov 5 2012, 7:44 am
From: Benjamin Garrigues <benjamin.garrig...@gmail.com>
Date: Mon, 5 Nov 2012 04:44:00 -0800 (PST)
Subject: Re: [Neo4j] Transactions in REST API

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Neubauer  
View profile  
 More options Nov 5 2012, 9:53 am
From: Peter Neubauer <peter.neuba...@neotechnology.com>
Date: Mon, 5 Nov 2012 06:52:38 -0800
Local: Mon, Nov 5 2012 9:52 am
Subject: Re: [Neo4j] Transactions in REST API

Benjamin,
did you consider using the Batch REST endpoint to group several calls into
one transaction?
http://docs.neo4j.org/chunked/snapshot/rest-api-batch-ops.html

/peter

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Neo4j 1.8 GA -
http://www.dzone.com/links/neo4j_18_release_fluent_graph_literacy.html

On Mon, Nov 5, 2012 at 4:44 AM, Benjamin Garrigues <


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nigel Small  
View profile  
 More options Nov 5 2012, 9:56 am
From: Nigel Small <ni...@nigelsmall.net>
Date: Mon, 5 Nov 2012 14:56:03 +0000
Local: Mon, Nov 5 2012 9:56 am
Subject: Re: [Neo4j] Transactions in REST API

Hi Benjamin

I have just replied to what I assume is your post on SO:

http://stackoverflow.com/questions/13233107/using-neo4j-server-from-p...

Nige

On 5 November 2012 14:52, Peter Neubauer
<peter.neuba...@neotechnology.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Benjamin Garrigues  
View profile  
 More options Nov 5 2012, 10:38 am
From: Benjamin Garrigues <benjamin.garrig...@gmail.com>
Date: Mon, 5 Nov 2012 16:37:58 +0100
Local: Mon, Nov 5 2012 10:37 am
Subject: Re: [Neo4j] Transactions in REST API

Hi, thanks you both for your answers. I've since found the bulb library and
i'm waiting for more info on that library before making my mind as to the
architecture of my data layer.

I started with model get and post and found py2neo + cypher quite powerful,
 but now that i'm thinking about updates, i feel like I could use the help
of a more active-record like framework for managing state sync between my
model and the graph db (I even started some crazy automatic persistence of
native python objects on a graph using introspection, automatically mapping
property names to relationships, which kind of work as long as you don't
need to diff :)).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nigel Small  
View profile  
 More options Nov 5 2012, 10:53 am
From: Nigel Small <ni...@nigelsmall.net>
Date: Mon, 5 Nov 2012 15:52:51 +0000
Local: Mon, Nov 5 2012 10:52 am
Subject: Re: [Neo4j] Transactions in REST API

Incidentally, if you are working with Django, you might also want to take a
look at neomodel:

https://github.com/robinedwards/neomodel

It's based on py2neo and might offer something useful in your case.

Cheers
Nige

On 5 November 2012 15:37, Benjamin Garrigues
<benjamin.garrig...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »