Making IChangeSet
and Change
serialization friendly
#492
andersstorhaug
started this conversation in
Ideas
Replies: 2 comments 3 replies
-
What serializer are you using, almost all the ones I seen have native support for List's |
Beta Was this translation helpful? Give feedback.
2 replies
-
Would it be worthwhile to attempt a PR to this end? Some thoughts:
These are API-breaking changes, though (1) should theoretically have minimal impact, while (2) may affect those that have written custom operators. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently the
IChangeSet
interfaces implementIEnumerable
which isn't handled well by serializers, and the implementations derive fromList
which giveCount
andCapacity
which as far as I can tell are superfluous when consuming.Also, the
IOptional
type used in theChange
structs is not serialization friendly.This, along with some other constraints, makes serialization of change sets somewhat difficult.
My use-case is that I'm experimenting with using DynamicData with Akka.NET remoting in a cluster. For instance, an actor can maintain a
SourceCache
and expose the underlyingIObservable
with a remote stream reference, with filters potentially being applied at the source to reduce network I/O. And of course, additional filters/operations can be applied downstream (sorting, binding, etc).So far, this appears to work quite well with some workarounds for serialization.
I should note that I have previously done something similar in a production application, where we convert DynamicData change-sets (List/Cache) to JSON patches for use in real-time D3 charts in a web frontend.
Beta Was this translation helpful? Give feedback.
All reactions