Resources and links about accessing a database in Scala.
A journey into concurrent programming in Scala – a good article about concurrent programming in Scala
Java Executors documentation – Scala uses Javas future system with Executors etc.
Play uses Akka so you can also use Akka dispatchers for the ExecutionContext required in the Controllers.
Link to Hikaricp library that creates connection pools for database access on JVM
Concepts and Technologies for Distributed Systems and Big Data Processing
Scala Futures, Async, and Actors
Scala Futures – link to the api documentation
Concurrency vs Parallel computing – good article on the subject
Don’t use actors for concurrency – article about using actors and futures for concurrency
A journey into concurrent programming in Scala – this article explains the basics of using futures and an execution context for concurrency. This is very basic.
Throttling Instantiations of Scala Futures – a very good article pointing out some of the issues with using Scala futures and how to back pressure them.
Understanding play thread pools – this is from the documentation on how to create thread pools
Scala Futures and Promises – Article from the Scala lang website documenting how Futures and Promises work in Scala
Scala Future Execution Context API documentation
Link to Java Executor documentation – for working with execution contexts
Link to an article about Scala async/await on the scala-lang site
Asynchronous Programming and Scala – a really good article about async programming and how it works in Scala.
Future Calculations (in Scala)
Scala Programming – Introduction to Threads and Futures
Futures and Async: When to Use Which?
This video explains more of the theory of how Futures, Async and promises work than how to actually use them.
How to Write Controllable Futures in Scala | Rock the JVM
Awaiting Futures (in Scala)
Arrow function expressions explained – examples and explanation