I am writing a TCP client server program using Scala/Akka. Some of the actors on server side need to process TCP messages coming clients. I have used(copied) code that basically parses the received TCP messages and on reception on a delimiter character the message is sent to someone else.
since more than one actor uses this logic, I had abstracted it in baseTCP actor and inherited other actors from this. I would like to add common code such as handling of Bound/Connected/CommandFailed etc in this base actor. Is this kind of handling ok in Akka? Or is it discouraged? best regards, Vishal