Search Results for

    Show / Hide Table of Contents

    Custom Serialization

    Serialization of snapshots and payloads of Persistent messages is configurable with Akka's Serialization infrastructure. For example, if an application wants to serialize

    • payloads of type MyPayload with a custom MyPayloadSerializer and
    • snapshots of type MySnapshot with a custom MySnapshotSerializer

    it must add

    akka.actor {
      serializers {
        my-payload = "docs.persistence.MyPayloadSerializer"
        my-snapshot = "docs.persistence.MySnapshotSerializer"
      }
      serialization-bindings {
        "docs.persistence.MyPayload" = my-payload
        "docs.persistence.MySnapshot" = my-snapshot
      }
    }
    

    to the application configuration. If not specified, a default serializer is used.

    In this article
    • githubEdit this page
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET