Sync, Async, Blocking and Non-Blocking | Rock the JVM

Sync, Async, Blocking and Non-Blocking | Rock the JVM

13.359 Lượt nghe
Sync, Async, Blocking and Non-Blocking | Rock the JVM
Written form to keep for later: https://blog.rockthejvm.com/sync,-async-and-(non)-blocking/ Using the controllable Futures pattern: https://www.youtube.com/watch?v=72kurKY7fX8 This video is for programmers of all levels (although I write Scala, naturally). We discuss how some computations are synchronous and blocking, async and blocking, and how we could achieve async non-blocking computations with Akka actors. Async and non-blocking is what you want. However, even that has its drawbacks. So at the end I show how you can also obtain meaningful values out of a non-blocking computation. Follow Rock the JVM on: LinkedIn: https://linkedin.com/company/rockthejvm Twitter: https://twitter.com/rockthejvm Blog: https://rockthejvm.com/blog ------------------------------------------------------------------------- Home: https://rockthejvm.com ------------------------------------------------------------------------- /////////////////////////////////////////////// // Libraries code for build.sbt: val akkaVersion = "2.6.4" libraryDependencies ++= Seq( // akka streams "com.typesafe.akka" %% "akka-actor-typed" % akkaVersion ) /////////////////////////////////////////////// Timeline: 0:00 intro & requirements 0:47 synchronous, blocking 2:48 asynchronous, blocking 6:20 asynchronous, non-blocking with an actor 11:17 obtaining meaningful values