You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by Aristedes Maniatis <ar...@maniatis.org> on 2016/07/08 01:01:48 UTC

Re: Cayenne ROP Improvements

On 30/06/2016 8:36pm, Aristedes Maniatis wrote:
> I'll report more after a few weeks once we have real customers using this in production.

We now have this version of Cayenne (pretty close to what is now trunk) in production at around 20 sites with more to come over the next weeks.

Not a single reported problem and significant performance improvements across the board. Any site with more than 40ms latency to the data centre (that is, between the Cayenne ROP client and server) is seeing noticeable improvements.

Savva, very nice work indeed.



Andrus, if you have json workflows protostuff also supports json encoding. [1]  Of course that means a whole bunch of json encoded Cayenne objects like ObjectContext and I have no idea what you'd do with them in javascript, but if someone wanted to code a js version of Cayenne client, I guess they could.

That would be an interesting idea to layer on top of backbonejs or similar.


Ari




[1] https://github.com/protostuff/protostuff/tree/master/protostuff-json/src/main/java/io/protostuff

-- 
-------------------------->
Aristedes Maniatis
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A

Re: Cayenne ROP Improvements

Posted by Aristedes Maniatis <ar...@maniatis.org>.
Sure, but let's not lose sight of what makes Cayenne ROP interesting and different. It exposes the whole stack of Cayenne contexts, nested contexts, rollback, prefetch, pagination, etc and not just the data objects themselves.

Otherwise it is just another restful, json, routing stack of which there are quite a few. Not that those simple rest stacks aren't useful, but what we have in Cayenne ROP is really quite different and interesting.


By coincidence I'm just today thinking about the lifecycle of data in the backbonejs library. That a javascript library for creating a data model and dealing with routing. It already has connectors for LocalStorage (storing data in the browser db). And of course for json/ajax. The question is, should we overlay a concept of Context to group the data in the model, track changes and move it from LocalStorage to ajax onto the server?


Ari


On 8/07/2016 10:16pm, Andrus Adamchik wrote:
> I suspect we'll need to step away from "blind" serialization of our server-side data structures and devise a JSON object protocol for any JS integrations to become practical. This may actually be simpler then it sounds (LinkRest does a good deal of it already: http://linkrest.io/docs/protocol.html ) and if there's a right client-side framework to work with such protocol, it would certainly be a big motivation.
> 
> Andrus
> 
>> On Jul 8, 2016, at 3:11 PM, Michael Gentry <bl...@gmail.com> wrote:
>>
>> Another item on my ever-growing to-do list is to explore if BreezeJS could
>> be used nicely with Cayenne.  From my initial glance at the project, it
>> seems to have the spirit of Cayenne in a JS stack.
>>
>>
>> http://breeze.github.io/doc-js/
>>
>> http://www.getbreezenow.com/
>>
>> http://learn.breezejs.com/
>>
>>
>> mrg
>>
>>
>>
>> On Thu, Jul 7, 2016 at 9:01 PM, Aristedes Maniatis <ar...@maniatis.org> wrote:
>>
>>> On 30/06/2016 8:36pm, Aristedes Maniatis wrote:
>>>> I'll report more after a few weeks once we have real customers using
>>> this in production.
>>>
>>> We now have this version of Cayenne (pretty close to what is now trunk) in
>>> production at around 20 sites with more to come over the next weeks.
>>>
>>> Not a single reported problem and significant performance improvements
>>> across the board. Any site with more than 40ms latency to the data centre
>>> (that is, between the Cayenne ROP client and server) is seeing noticeable
>>> improvements.
>>>
>>> Savva, very nice work indeed.
>>>
>>>
>>>
>>> Andrus, if you have json workflows protostuff also supports json encoding.
>>> [1]  Of course that means a whole bunch of json encoded Cayenne objects
>>> like ObjectContext and I have no idea what you'd do with them in
>>> javascript, but if someone wanted to code a js version of Cayenne client, I
>>> guess they could.
>>>
>>> That would be an interesting idea to layer on top of backbonejs or similar.
>>>
>>>
>>> Ari
>>>
>>>
>>>
>>>
>>> [1]
>>> https://github.com/protostuff/protostuff/tree/master/protostuff-json/src/main/java/io/protostuff
>>>
>>> --
>>> -------------------------->
>>> Aristedes Maniatis
>>> GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A
>>>
> 

-- 
-------------------------->
Aristedes Maniatis
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A

Re: Cayenne ROP Improvements

Posted by Andrus Adamchik <an...@objectstyle.org>.
I suspect we'll need to step away from "blind" serialization of our server-side data structures and devise a JSON object protocol for any JS integrations to become practical. This may actually be simpler then it sounds (LinkRest does a good deal of it already: http://linkrest.io/docs/protocol.html ) and if there's a right client-side framework to work with such protocol, it would certainly be a big motivation.

Andrus

> On Jul 8, 2016, at 3:11 PM, Michael Gentry <bl...@gmail.com> wrote:
> 
> Another item on my ever-growing to-do list is to explore if BreezeJS could
> be used nicely with Cayenne.  From my initial glance at the project, it
> seems to have the spirit of Cayenne in a JS stack.
> 
> 
> http://breeze.github.io/doc-js/
> 
> http://www.getbreezenow.com/
> 
> http://learn.breezejs.com/
> 
> 
> mrg
> 
> 
> 
> On Thu, Jul 7, 2016 at 9:01 PM, Aristedes Maniatis <ar...@maniatis.org> wrote:
> 
>> On 30/06/2016 8:36pm, Aristedes Maniatis wrote:
>>> I'll report more after a few weeks once we have real customers using
>> this in production.
>> 
>> We now have this version of Cayenne (pretty close to what is now trunk) in
>> production at around 20 sites with more to come over the next weeks.
>> 
>> Not a single reported problem and significant performance improvements
>> across the board. Any site with more than 40ms latency to the data centre
>> (that is, between the Cayenne ROP client and server) is seeing noticeable
>> improvements.
>> 
>> Savva, very nice work indeed.
>> 
>> 
>> 
>> Andrus, if you have json workflows protostuff also supports json encoding.
>> [1]  Of course that means a whole bunch of json encoded Cayenne objects
>> like ObjectContext and I have no idea what you'd do with them in
>> javascript, but if someone wanted to code a js version of Cayenne client, I
>> guess they could.
>> 
>> That would be an interesting idea to layer on top of backbonejs or similar.
>> 
>> 
>> Ari
>> 
>> 
>> 
>> 
>> [1]
>> https://github.com/protostuff/protostuff/tree/master/protostuff-json/src/main/java/io/protostuff
>> 
>> --
>> -------------------------->
>> Aristedes Maniatis
>> GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A
>> 


Re: Cayenne ROP Improvements

Posted by Savva Kolbachev <s....@gmail.com>.
> Not a single reported problem and significant performance improvements
across the board. Any site with more than 40ms latency to the data > centre
(that is, between the Cayenne ROP client and server) is seeing noticeable
improvements.
>
> Savva, very nice work indeed.

Thanks! I'm very happy that it works well for you. I hope it will be
helpful for other Cayenne users as well.

2016-07-08 10:55 GMT+03:00 Aristedes Maniatis <ar...@maniatis.org>:

> On 8/07/2016 4:24pm, Andrus Adamchik wrote:
> > One possible usage is ROP debugging. It was noticed before that due to
> the blind serialization nature of ROP, occasionally unintended server-side
> objects are sent to the client and vice versa (like someone patches a query
> to "precompile" its state, adding a reference to EntityResolver or
> something). Wonder if switching things to JSON in development/testing would
> help in visual tracking of those extraneous serialized objects?
>
>
> That's a nice idea, especially if it is possible to dump the json stream
> to disk while still using the protostuff binary stream to the client.
>
> Ari
>
>
> --
> -------------------------->
> Aristedes Maniatis
> GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A
>



-- 
Best Regards,
Savva Kolbachev

Re: Cayenne ROP Improvements

Posted by Aristedes Maniatis <ar...@maniatis.org>.
On 8/07/2016 4:24pm, Andrus Adamchik wrote:
> One possible usage is ROP debugging. It was noticed before that due to the blind serialization nature of ROP, occasionally unintended server-side objects are sent to the client and vice versa (like someone patches a query to "precompile" its state, adding a reference to EntityResolver or something). Wonder if switching things to JSON in development/testing would help in visual tracking of those extraneous serialized objects?


That's a nice idea, especially if it is possible to dump the json stream to disk while still using the protostuff binary stream to the client.

Ari


-- 
-------------------------->
Aristedes Maniatis
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A

Re: Cayenne ROP Improvements

Posted by Andrus Adamchik <an...@objectstyle.org>.
> Not a single reported problem and significant performance improvements across the board. Any site with more than 40ms latency to the data centre (that is, between the Cayenne ROP client and server) is seeing noticeable improvements.
> 
> Savva, very nice work indeed.

Nice!

> Andrus, if you have json workflows protostuff also supports json encoding. [1]  Of course that means a whole bunch of json encoded Cayenne objects like ObjectContext

One possible usage is ROP debugging. It was noticed before that due to the blind serialization nature of ROP, occasionally unintended server-side objects are sent to the client and vice versa (like someone patches a query to "precompile" its state, adding a reference to EntityResolver or something). Wonder if switching things to JSON in development/testing would help in visual tracking of those extraneous serialized objects?

Andrus



> On Jul 8, 2016, at 4:01 AM, Aristedes Maniatis <ar...@maniatis.org> wrote:
> 
> On 30/06/2016 8:36pm, Aristedes Maniatis wrote:
>> I'll report more after a few weeks once we have real customers using this in production.
> 
> We now have this version of Cayenne (pretty close to what is now trunk) in production at around 20 sites with more to come over the next weeks.
> 
> Not a single reported problem and significant performance improvements across the board. Any site with more than 40ms latency to the data centre (that is, between the Cayenne ROP client and server) is seeing noticeable improvements.
> 
> Savva, very nice work indeed.
> 
> 
> 
> Andrus, if you have json workflows protostuff also supports json encoding. [1]  Of course that means a whole bunch of json encoded Cayenne objects like ObjectContext and I have no idea what you'd do with them in javascript, but if someone wanted to code a js version of Cayenne client, I guess they could.
> 
> That would be an interesting idea to layer on top of backbonejs or similar.
> 
> 
> Ari
> 
> 
> 
> 
> [1] https://github.com/protostuff/protostuff/tree/master/protostuff-json/src/main/java/io/protostuff
> 
> -- 
> -------------------------->
> Aristedes Maniatis
> GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A


Re: Cayenne ROP Improvements

Posted by Michael Gentry <bl...@gmail.com>.
Another item on my ever-growing to-do list is to explore if BreezeJS could
be used nicely with Cayenne.  From my initial glance at the project, it
seems to have the spirit of Cayenne in a JS stack.


http://breeze.github.io/doc-js/

http://www.getbreezenow.com/

http://learn.breezejs.com/


mrg



On Thu, Jul 7, 2016 at 9:01 PM, Aristedes Maniatis <ar...@maniatis.org> wrote:

> On 30/06/2016 8:36pm, Aristedes Maniatis wrote:
> > I'll report more after a few weeks once we have real customers using
> this in production.
>
> We now have this version of Cayenne (pretty close to what is now trunk) in
> production at around 20 sites with more to come over the next weeks.
>
> Not a single reported problem and significant performance improvements
> across the board. Any site with more than 40ms latency to the data centre
> (that is, between the Cayenne ROP client and server) is seeing noticeable
> improvements.
>
> Savva, very nice work indeed.
>
>
>
> Andrus, if you have json workflows protostuff also supports json encoding.
> [1]  Of course that means a whole bunch of json encoded Cayenne objects
> like ObjectContext and I have no idea what you'd do with them in
> javascript, but if someone wanted to code a js version of Cayenne client, I
> guess they could.
>
> That would be an interesting idea to layer on top of backbonejs or similar.
>
>
> Ari
>
>
>
>
> [1]
> https://github.com/protostuff/protostuff/tree/master/protostuff-json/src/main/java/io/protostuff
>
> --
> -------------------------->
> Aristedes Maniatis
> GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A
>