Serialization in Lagom
Lagom uses Akka serialization mechanisms to bind serializers for each of the message sent over the wire. Preferably we use JSON. We can easily add Play-JSON serialization that is much more familiar to developers.

Why Serialization?

  • Persisting events and exchanging messages between the nodes of the cluster requires serialization.
  • Request and response messages uses serialization.
  • Without serialization it is not possible to deserialize old objects.

#lagom #microservices #play #scala #serialization

Serialization in Lagom
1.65 GEEK