Streaming REST API in master now

24 views
Skip to first unread message

Peter Neubauer

unread,
Apr 23, 2012, 3:58:49 PM4/23/12
to Neo4j User, neo4jrb
Hi everyone,
you might be interested to hear that the REST API is going to be a LOT
faster while being exactly compatible, using a streaming approach. 50K
node REST representations in 8 seconds with almost no memory overhead.
Read more here:

http://blog.neo4j.org/2012/04/streaming-rest-api-interview-with.html

And feel free to feedback on how we can make things even faster. Thank
you Michael and Jake for working on these areas!

Cheers,

/peter neubauer

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

If you can write, you can code - @coderdojomalmo
If you can sketch, you can use a graph database - @neo4j

Michael Hunger

unread,
Apr 23, 2012, 6:38:06 PM4/23/12
to ne...@googlegroups.com, neo4jrb

Am 23.04.2012 um 23:47 schrieb Jim Webber:

> Are the extension points (managed and unmanaged plugins) going to remain the same for server-side developers?

Yes they stay the same, people should take care to return Iterables and also use ListRepresentation(type, iterable) to benefit from streaming.
>
> Will the streaming features be available automatically for managed extensions?
Yes, see above.
>
> Also: it's be nice if clients could choose whether they want streamed responses using the TE request header paired with the corresponding Transport-Encoding response header (as Michael and I have discussed offlist).
Right that will be changed after we figured out how exactly to do it.
>
> Jim
>
> On 23 Apr 2012, at 21:32, Javier de la Rosa wrote:
>
>> That's great! I hope REST clients will benefit from this soon.

>> --
>> Javier de la Rosa
>> http://versae.es
>

Peter Neubauer

unread,
Apr 24, 2012, 3:50:46 AM4/24/12
to ne...@googlegroups.com, neo4jrb

Thanks a lot Tatham!
Can you see any performance improvements yet?

On Apr 24, 2012 9:18 AM, "Tatham Oddie" <tat...@oddie.com.au> wrote:
The .NET Neo4jClient library will now automatically upgrade to streaming when connecting to 1.8+:

       http://hg.readify.net/neo4jclient/changeset/1806f2373fc1

       http://nuget.org/packages/Neo4jClient/1.0.0.330

(Note: version comparisons don't work against snapshots because the root endpoint doesn't give us sufficient information, thus this will only kick in once the milestone drops.)


-- Tatham

Michael Hunger

unread,
Apr 24, 2012, 4:43:11 AM4/24/12
to ne...@googlegroups.com, neo4jrb
Did you test the performance impact?

I pushed another change last night (json-utf8-generator-buffer tuning) which added another 20%.

Michael

Am 24.04.2012 um 09:16 schrieb Tatham Oddie:

> The .NET Neo4jClient library will now automatically upgrade to streaming when connecting to 1.8+:
>
> http://hg.readify.net/neo4jclient/changeset/1806f2373fc1
>
> http://nuget.org/packages/Neo4jClient/1.0.0.330
>
> (Note: version comparisons don't work against snapshots because the root endpoint doesn't give us sufficient information, thus this will only kick in once the milestone drops.)
>
>
> -- Tatham
>
>
> -----Original Message-----
> From: ne...@googlegroups.com [mailto:ne...@googlegroups.com] On Behalf Of Peter Neubauer
> Sent: Tuesday, 24 April 2012 5:59 AM
> To: Neo4j User; neo4jrb
> Subject: [Neo4j] Streaming REST API in master now
>

Reply all
Reply to author
Forward
0 new messages