You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@etch.apache.org by Keith Hankin <kh...@shutterfly.com> on 2009/09/17 00:53:42 UTC
Explicit Serializing/deserializing
Is there any way to explicitly serialize/deserialize msgs and/or structs? I want to take a struct that was sent to my server, reserialize it and store it persistently for later retrieval and deserialization.
Regards,
Keith Hankin
Shutterfly.com
Serializing structs out to memory or disk and dynamic properties
Posted by Keith Hankin <kh...@shutterfly.com>.
I am building a service that stores objects defined as structs persistently on disk, so I want to be able to use binary serialization to write it out and read it back, sometimes to/from memory other times to/from disk.
In addition, I want to be able to have clients that are deployed with newer versions of structs that have added properties to be able to serialize/deserialize them. Can I do this with the use of 'object' parameter declarations or will it throw out the unrecognized parameters?
In both of the above use cases, it would probably be preferable if there was a way to pass the serialized input stream directly as my output, bypassing the unnecessary step of marshalling and remarshalling the same data over again.
Thanks in advance,
Keith Hankin
Shutterfly.com
Re: Explicit Serializing/deserializing
Posted by scott comer <we...@mac.com>.
keith,
is very possible to do what you ask, depending upon how much you like to
program.
there is no easy path for messages (i.e., to capture a message as it is
being formed). there is a way
to configure a message stream to also record or playback messages as
they are sent or received. and
there is a way to create a stream which only records or plays back. all
these would require some
programming and more than casual knowledge, but something i could teach
you if you were adept
at java or c# and had a few hours to spend.
with regard to etch structs, a better story but again, some adept
programming required.
what's your project? is it a secret?
scott out
Keith Hankin wrote:
>
> Is there any way to explicitly serialize/deserialize msgs and/or
> structs? I want to take a struct that was sent to my server,
> reserialize it and store it persistently for later retrieval and
> deserialization.
>
>
>
> Regards,
>
> Keith Hankin
>
> Shutterfly.com
>
>
>
>
>