These are chat archives for akkadotnet/akka.net

24th
Jun 2018
Onur Gumus
@OnurGumus
Jun 24 2018 18:53
Does akkling support json?
I mean when persisting events
Bartosz Sypytkowski
@Horusiath
Jun 24 2018 18:56
@OnurGumus akkling changes default serializer to hyperion, but you still can set json for any message you want
Onur Gumus
@OnurGumus
Jun 24 2018 18:56
@Horusiath will it successfully serialize deserialize discriminated unions ?
I mean json
Bartosz Sypytkowski
@Horusiath
Jun 24 2018 19:00
no idea tbh. You can always register custom converters like akka.actor.serialization-settings.json.converters = [ "MyNamespace.MyJsonConverter, MyAssembly" ]
so you can "teach" json.net how to interpret them
Onur Gumus
@OnurGumus
Jun 24 2018 19:00
@Horusiath my concern with hyperion since it is binary, how well does it handle if my message schema changes ?
Bartosz Sypytkowski
@Horusiath
Jun 24 2018 19:03
Hyperion is pretty straightforward - it encodes qualified type name, so it cannot be changed. It also created implicit schema by picking fields in order they were defined, and "assigns" them indexes. So while field names can change, their order and type cannot.
but binary format is not set in place - tbh. I'm tweaking it on separate branch hoping to bring in the future as new version
Onur Gumus
@OnurGumus
Jun 24 2018 19:03
Hmm that's a bit scary to use it as persistence.
Bartosz Sypytkowski
@Horusiath
Jun 24 2018 19:04
yes, it's not advised to use it for persistence (mostly because it's beta)
I don't know how stable FsPickler's format is
Onur Gumus
@OnurGumus
Jun 24 2018 19:09
Is there a way to suppress this error : warning NU1603: Akka.Serialization.Hyperion 1.3.8-beta66 depends on Akka (>= 1.3.8-beta66) but Akka 1.3.8-beta66 was not found. An approximate best match of Akka 1.3.8 was resolved.
Aaron Stannard
@Aaronontheweb
Jun 24 2018 20:20
@OnurGumus yeah there's a setting you can turn in inside the new MSBUILD15 syntax
that will disable that warning
but I forget which
we need to fix the fact that that thing depends on beta though
unless you're installing from nightlies
in which case that's to be expected
I'm guessing that you're not though?
Onur Gumus
@OnurGumus
Jun 24 2018 20:55
@Aaronontheweb no.
Onur Gumus
@OnurGumus
Jun 24 2018 22:01
@Horusiath Is this still the way to go to save a snapshot ? Horusiath/Akkling#69