商品描述
The Akka framework has brought Actors to the Java virtual machine. Actors way of doing parallelism is way simpler than multi-threaded applications. Scala is a modern programming language for the Java Virtual Machine (JVM) that combines the best features of object-oriented and functional programming languages. Using Scala one can write concise programs with the power of concurrency. Since Scala runs on the JVM, it can access any Java library and is interoperable with Java frameworks. This book is a practical guide to use Akka along with power of Scala to design business solutions for scalability, fault tolerant concurrent systems. It introduces the topics of concurrency, Scala and Akka which are then blended together to provide a solution on steroids for modern day web scale applications.
商品描述(中文翻譯)
建立可擴展的並發系統是困難的。當我們想到平行處理時,便會想到執行緒。使用執行緒來實現平行處理不僅困難,而且不具可擴展性。在一台機器上,你只能創建一定數量的執行緒。另一方面,你可以在一台機器上創建一百萬個 Akka 演員。此外,使用執行緒進行擴展(平行擴展)也很困難。任何多執行緒的應用程式中,幾乎都會在代碼庫中到處出現關鍵字 synchronized。這不遵循任何模式,這使得代碼庫和應用程式難以管理,也顯示出管理執行緒的困難。
Akka 框架將演員引入了 Java 虛擬機。演員的平行處理方式比多執行緒應用程式簡單得多。Scala 是一種現代編程語言,專為 Java 虛擬機(JVM)設計,結合了面向對象和函數式編程語言的最佳特性。使用 Scala,可以編寫簡潔的程式,並具備並發的強大能力。由於 Scala 在 JVM 上運行,它可以訪問任何 Java 庫,並與 Java 框架互操作。本書是一本實用指南,旨在使用 Akka 和 Scala 的力量來設計可擴展的、容錯的並發系統商業解決方案。它介紹了並發、Scala 和 Akka 的主題,然後將這些主題融合在一起,為現代網路規模應用程式提供一個強大的解決方案。