Skip to content

Non-binary serialization? #24

@scullxbones

Description

@scullxbones

This looks like a very interesting project as far as akka persistence goes. It's a great concept - managing migrations via a generic AST, kudos! It seems like a natural fit for the new 2.4 concept of EventAdapters.

I maintain a journal/snapshot plugin on mongo, and one of the features many users asked for (and got) was storing bson payloads (DBObject for casbah and BSONDocument for reactivemongo) directly in the journal to be able to inspect entries.

In the context of stamina, it would be great to have the ability to retain the json AST all the way through to Mongo. This wouldn't be a minimum serialized size choice or maximum performance choice, but there's something to be said for easy inspection.

From what I can see, at a minimum this would change Persisted to store the AST as JsValue or something like it (json4s JValue, play-json JsValue, etc). To support akka 2.3, there would also need to be some support for translating Persisted itself into the same AST format. Of course, akka 2.4 and manifests simplify the last part.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions