Akka[1] is exactly the library you&#x27;re looking for.  It&#x27;s available for Scala[2], which lets you use both OOP and FP as needed.  (It also runs in Java if you have experience with that.)<p>[1] <a href="http:&#x2F;&#x2F;akka.io&#x2F;" rel="nofollow">http:&#x2F;&#x2F;akka.io&#x2F;</a>
[2] <a href="http:&#x2F;&#x2F;www.scala-lang.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.scala-lang.org&#x2F;</a>