You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
akka {
extensions = ["com.romix.akka.serialization.kryo.KryoSerializationExtension$"]
actor {
serializers {
kryo ="com.romix.akka.serialization.kryo.KryoSerializer"
}
serialization-bindings {
// classes to be serialized"com.techmonad.service.WordCountActor$Request"= kryo,
"com.techmonad.service.WordCountActor$Response"= kryo
}
}
}
Testing: Akka does not serialized messages in a same JVM(sender actor and receiver actor are on same JVM).
for testing purpose just enable serialize-messages flag.
akka {
actor {
extensions = ["com.romix.akka.serialization.kryo.KryoSerializationExtension$"]
**//only for testing, don't on for prduction**
serialize-messages = on
serializers {
kryo = "com.romix.akka.serialization.kryo.KryoSerializer"
}
serialization-bindings {
"com.techmonad.service.WordCountActor$Request" = kryo,
"com.techmonad.service.WordCountActor$Response" = kryo
}
}
}