So i have a existing Spring library that performs some blocking tasks(exposed as services) that i intend to wrap using Scala Futures to showcase multi processor capabilities. The intention is to get people interested in the Scala/Akka tech stack.
Here is my problem. Lets say i get two services from the existing Spring library. These services perform different blocking tasks(IO,db operations). How do i make sure that these tasks(service calls) are carried out across multiple cores ? For example how do i make use of custom execution contexts? Do i need one per service call? How does the execution context(s) / thread pools relate to multi core operations ?
Appreciate any help in this understanding.