Akka.Persistence.SqlServer icon indicating copy to clipboard operation
Akka.Persistence.SqlServer copied to clipboard

Serialise to string

Open gfgw opened this issue 8 years ago • 0 comments

In an answer to De-Serialize akka.net persistence message using C# Horusiath said:

In the future there will be a possibility to change this format from binary into JSON data type if your database of choice will support that format.

Has the future arrived yet? We would like to store the event payload as JSON string in a SQL Server database. Converting the JSON string to a byte array is a waste of CPU cycles. Depending on the size of the payload the overhead is between 50% and 100% for serialising, and between 100% and 200% for deserialising.

gfgw avatar Apr 05 '18 12:04 gfgw