You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by Michael Stolz <ms...@pivotal.io> on 2019/03/25 19:52:46 UTC

Copying pdx types via client

Does this functionality exist in the Native Client as well as the Java
Client?

--
Mike Stolz
Principal Engineer, GemFire Product Lead
Mobile: +1-631-835-4771

Re: Copying pdx types via client

Posted by Michael Stolz <ms...@pivotal.io>.
Cool! Thanks Jake!

--
Mike Stolz
Principal Engineer, GemFire Product Lead
Mobile: +1-631-835-4771



On Tue, Mar 26, 2019 at 2:42 PM Jacob Barrett <jb...@pivotal.io> wrote:

>
>
> > On Mar 26, 2019, at 11:26 AM, Michael Stolz <ms...@pivotal.io> wrote:
> >
> > I may be mistaken, but I think that this feature attempts to address
> cases where users want to selectively copy several items from one
> distributed system to another. Not sure if the two separate implementations
> of "ClientCache" actually achieves the same thing. Would like to discuss
> though.
> >
>
> It does support it and the PDX metadata would be correctly independent
> across both distributed systems. No issue of colliding PDX type IDs. It’s a
> much cleaner solution for that use case.
>
> -Jake
>
>

Re: Copying pdx types via client

Posted by Jacob Barrett <jb...@pivotal.io>.

> On Mar 26, 2019, at 11:26 AM, Michael Stolz <ms...@pivotal.io> wrote:
> 
> I may be mistaken, but I think that this feature attempts to address cases where users want to selectively copy several items from one distributed system to another. Not sure if the two separate implementations of "ClientCache" actually achieves the same thing. Would like to discuss though.
> 

It does support it and the PDX metadata would be correctly independent across both distributed systems. No issue of colliding PDX type IDs. It’s a much cleaner solution for that use case.

-Jake


Re: Copying pdx types via client

Posted by Michael Stolz <ms...@pivotal.io>.
I may be mistaken, but I think that this feature attempts to address cases where users want to selectively copy several items from one distributed system to another. Not sure if the two separate implementations of "ClientCache" actually achieves the same thing. Would like to discuss though.


> On Mar 26, 2019, at 2:07 PMEDT, Jacob Barrett <jb...@pivotal.io> wrote:
> 
> Perhaps for others on this list that aren’t familiar with the context you could fill in the blanks.
> 
> It is assumed you are asking about the “feature” where PDX metadata is propagated from one connection pool to another in an attempt to support multiple distributed systems in the same client. While the short answer is yes, Geode Native (GN) goes further in not requiring one to share clients across multiple distributed systems. You can create multiple independent caches in the same process space with GN. Each of these instances can be connected to independent distributed systems. The need to copy PDX metadata goes away. The need to create multiple pools to different systems goes away. All the pain and issues of supporting this “feature” just goes away. So if there is someone out there wanting to do what was done before I would strongly encourage to not and instead use independent caches.
> 
> -Jake
> 
> 
>> On Mar 26, 2019, at 9:50 AM, Michael Stolz <ms...@pivotal.io> wrote:
>> 
>> Thanks. I'm happy to hear that.
>> 
>> 
>> --
>> Mike Stolz
>> Principal Engineer, GemFire Product Lead
>> Mobile: +1-631-835-4771
>> 
>> On Tue, Mar 26, 2019, 12:46 PM Blake Bender <bb...@pivotal.io> wrote:
>> 
>>> Okay, after a conversation here at the office with folks who know, I can
>>> confirm the answer is "yes," NC has code to copy PDX types in the manner
>>> you're asking after.
>>> 
>>> Thanks,
>>> 
>>> Blake
>>> 
>>> 
>>> On Tue, Mar 26, 2019 at 8:43 AM Blake Bender <bb...@pivotal.io> wrote:
>>> 
>>>> Hi Mike,
>>>> 
>>>> I'm not 100% certain what you're referring to, but... PdxSerializable in
>>>> NC has toData and fromData methods that allow you to copy objects via
>>>> serialization.  That what you're looking for?
>>>> 
>>>> Thanks,
>>>> 
>>>> Blake
>>>> 
>>>> 
>>>> On Mon, Mar 25, 2019 at 12:53 PM Michael Stolz <ms...@pivotal.io>
>>> wrote:
>>>> 
>>>>> Does this functionality exist in the Native Client as well as the Java
>>>>> Client?
>>>>> 
>>>>> --
>>>>> Mike Stolz
>>>>> Principal Engineer, GemFire Product Lead
>>>>> Mobile: +1-631-835-4771
>>>>> 
>>>> 
>>> 
> 


Re: Copying pdx types via client

Posted by Jacob Barrett <jb...@pivotal.io>.
Perhaps for others on this list that aren’t familiar with the context you could fill in the blanks.

It is assumed you are asking about the “feature” where PDX metadata is propagated from one connection pool to another in an attempt to support multiple distributed systems in the same client. While the short answer is yes, Geode Native (GN) goes further in not requiring one to share clients across multiple distributed systems. You can create multiple independent caches in the same process space with GN. Each of these instances can be connected to independent distributed systems. The need to copy PDX metadata goes away. The need to create multiple pools to different systems goes away. All the pain and issues of supporting this “feature” just goes away. So if there is someone out there wanting to do what was done before I would strongly encourage to not and instead use independent caches.

-Jake


> On Mar 26, 2019, at 9:50 AM, Michael Stolz <ms...@pivotal.io> wrote:
> 
> Thanks. I'm happy to hear that.
> 
> 
> --
> Mike Stolz
> Principal Engineer, GemFire Product Lead
> Mobile: +1-631-835-4771
> 
> On Tue, Mar 26, 2019, 12:46 PM Blake Bender <bb...@pivotal.io> wrote:
> 
>> Okay, after a conversation here at the office with folks who know, I can
>> confirm the answer is "yes," NC has code to copy PDX types in the manner
>> you're asking after.
>> 
>> Thanks,
>> 
>> Blake
>> 
>> 
>> On Tue, Mar 26, 2019 at 8:43 AM Blake Bender <bb...@pivotal.io> wrote:
>> 
>>> Hi Mike,
>>> 
>>> I'm not 100% certain what you're referring to, but... PdxSerializable in
>>> NC has toData and fromData methods that allow you to copy objects via
>>> serialization.  That what you're looking for?
>>> 
>>> Thanks,
>>> 
>>> Blake
>>> 
>>> 
>>> On Mon, Mar 25, 2019 at 12:53 PM Michael Stolz <ms...@pivotal.io>
>> wrote:
>>> 
>>>> Does this functionality exist in the Native Client as well as the Java
>>>> Client?
>>>> 
>>>> --
>>>> Mike Stolz
>>>> Principal Engineer, GemFire Product Lead
>>>> Mobile: +1-631-835-4771
>>>> 
>>> 
>> 


Re: Copying pdx types via client

Posted by Michael Stolz <ms...@pivotal.io>.
Thanks. I'm happy to hear that.


--
Mike Stolz
Principal Engineer, GemFire Product Lead
Mobile: +1-631-835-4771

On Tue, Mar 26, 2019, 12:46 PM Blake Bender <bb...@pivotal.io> wrote:

> Okay, after a conversation here at the office with folks who know, I can
> confirm the answer is "yes," NC has code to copy PDX types in the manner
> you're asking after.
>
> Thanks,
>
> Blake
>
>
> On Tue, Mar 26, 2019 at 8:43 AM Blake Bender <bb...@pivotal.io> wrote:
>
> > Hi Mike,
> >
> > I'm not 100% certain what you're referring to, but... PdxSerializable in
> > NC has toData and fromData methods that allow you to copy objects via
> > serialization.  That what you're looking for?
> >
> > Thanks,
> >
> > Blake
> >
> >
> > On Mon, Mar 25, 2019 at 12:53 PM Michael Stolz <ms...@pivotal.io>
> wrote:
> >
> >> Does this functionality exist in the Native Client as well as the Java
> >> Client?
> >>
> >> --
> >> Mike Stolz
> >> Principal Engineer, GemFire Product Lead
> >> Mobile: +1-631-835-4771
> >>
> >
>

Re: Copying pdx types via client

Posted by Blake Bender <bb...@pivotal.io>.
Okay, after a conversation here at the office with folks who know, I can
confirm the answer is "yes," NC has code to copy PDX types in the manner
you're asking after.

Thanks,

Blake


On Tue, Mar 26, 2019 at 8:43 AM Blake Bender <bb...@pivotal.io> wrote:

> Hi Mike,
>
> I'm not 100% certain what you're referring to, but... PdxSerializable in
> NC has toData and fromData methods that allow you to copy objects via
> serialization.  That what you're looking for?
>
> Thanks,
>
> Blake
>
>
> On Mon, Mar 25, 2019 at 12:53 PM Michael Stolz <ms...@pivotal.io> wrote:
>
>> Does this functionality exist in the Native Client as well as the Java
>> Client?
>>
>> --
>> Mike Stolz
>> Principal Engineer, GemFire Product Lead
>> Mobile: +1-631-835-4771
>>
>

Re: Copying pdx types via client

Posted by Blake Bender <bb...@pivotal.io>.
Hi Mike,

I'm not 100% certain what you're referring to, but... PdxSerializable in NC
has toData and fromData methods that allow you to copy objects via
serialization.  That what you're looking for?

Thanks,

Blake


On Mon, Mar 25, 2019 at 12:53 PM Michael Stolz <ms...@pivotal.io> wrote:

> Does this functionality exist in the Native Client as well as the Java
> Client?
>
> --
> Mike Stolz
> Principal Engineer, GemFire Product Lead
> Mobile: +1-631-835-4771
>