Reactive Programming with Scala and Akka(Paperback)
暫譯: 使用 Scala 和 Akka 的反應式編程(平裝本)

Prasanna Kumar Sathyanarayanan

  • 出版商: Packt Publishing
  • 出版日期: 2016-02-29
  • 售價: $2,050
  • 貴賓價: 9.5$1,948
  • 語言: 英文
  • 頁數: 256
  • 裝訂: Paperback
  • ISBN: 1783984341
  • ISBN-13: 9781783984343
  • 相關分類: Java 相關技術JVM 語言
  • 海外代購書籍(需單獨結帳)

商品描述

Harness reactive programming to build scalable and fault-tolerant distributed systems using Scala and Akka

About This Book

  • Use the concepts of reactive programming to build distributed systems running on multiple nodes
  • Get to grips with the full range of Akka features including the upcoming and cutting edge experimental modules
  • A comprehensive coverage of the principles of FRP with real-world use cases to solve scalability issues

Who This Book Is For

If you are a developer who is passionate about building fault-tolerant, scalable distributed applications using Scala and Akka, then this book will give you a jump start. You should be familiar with Scala, but no prior knowledge of Akka and reactive programming is required.

What You Will Learn

  • Explore functional programming using Scala
  • Design an asynchronous, non-blocking shopping cart application using Futures
  • Understand the Akka actor model and the relationship between actors and threads
  • Use the Actor Supervision feature to build a fault tolerant and resilient application
  • Create your own distributed system framework using an Akka cluster
  • Take a look under the hood to gain perspective on the Akka engine
  • See a comprehensive case study of a key value store with concurrent reads and writes
  • Model a finite state machine using state-driven actors

In Detail

Today's web-based applications need to scale quickly to tackle the demands of modern users. Reactive programming is the solution developed to ensure the fault tolerant and robust scaling that is essential for professional applications. Reactive programming in Scala and Akka provides a great platform to develop low latency resilient, concurrent Internet scale applications on the Java Virtual Machine.

This comprehensive guide will help you get to grips with the concepts of reactive programming in order to build a robust distributed system in Scala and Akka. Written in two parts, you will first take a walkthrough of the reactive, asynchronous, and functional concepts in Scala before focusing on Akka and getting to grips with the details of real-world use cases.

Begin with an introduction into functional reactive programming, before moving on to writing asynchronous application with non-blocking constructs in Scala. Get familiar with the concept of actor-based concurrency using Akka, and features such as Akka remoting, routing, and persistence capabilities to build distributed applications. Learn to scale applications using a multi-node Akka cluster and unit test Akka actors and get to grips with state machines and how to implement state-driven actors using Akka. Finally, put your skills to the test with a case study where you will concurrently and asynchronously store and retrieve data from a key value store. By progressively working through the Akka concepts, you will not only be able to write your own distributed system, but also appreciate the hidden complexity within the Akka ecosystem.

Style and approach

This comprehensive guide walks you through the basics of reactive programming in Scala and Akka, explaining some of the most frequently used constructs to the most advanced features, and taking you through building a full-blown distributed system with the help of real-world examples.

商品描述(中文翻譯)

利用反應式編程構建可擴展且具容錯能力的分散式系統,使用 Scala 和 Akka

本書介紹



  • 使用反應式編程的概念來構建運行於多個節點的分散式系統

  • 深入了解 Akka 的全系列功能,包括即將推出的前沿實驗模組

  • 全面涵蓋 FRP 的原則,並提供實際案例以解決可擴展性問題

本書適合誰閱讀


如果您是一位熱衷於使用 Scala 和 Akka 構建具容錯能力和可擴展的分散式應用程式的開發者,那麼這本書將為您提供一個良好的起點。您應該對 Scala 有所了解,但不需要具備 Akka 和反應式編程的先前知識。

您將學到什麼



  • 探索使用 Scala 的函數式編程

  • 設計一個使用 Futures 的非阻塞異步購物車應用程式

  • 理解 Akka 演員模型及演員與執行緒之間的關係

  • 使用演員監督功能構建一個具容錯能力和韌性的應用程式

  • 使用 Akka 集群創建自己的分散式系統框架

  • 深入了解 Akka 引擎的內部運作

  • 查看一個關鍵值存儲的綜合案例研究,該存儲支持並發讀寫

  • 使用狀態驅動的演員建模有限狀態機

詳細內容


當今的基於網頁的應用程式需要快速擴展,以應對現代用戶的需求。反應式編程是為了確保專業應用程式所需的容錯和穩健擴展而開發的解決方案。Scala 和 Akka 中的反應式編程提供了一個出色的平台,可以在 Java 虛擬機上開發低延遲、具韌性和並發的互聯網規模應用程式。


這本全面的指南將幫助您掌握反應式編程的概念,以便在 Scala 和 Akka 中構建一個穩健的分散式系統。本書分為兩部分,您將首先了解 Scala 中的反應式、異步和函數式概念,然後專注於 Akka,深入了解實際案例的細節。


首先介紹函數式反應式編程,然後進入使用 Scala 編寫非阻塞構造的異步應用程式。熟悉使用 Akka 的基於演員的並發概念,以及 Akka 遠程調用、路由和持久性等功能,以構建分散式應用程式。學習如何使用多節點的 Akka 集群擴展應用程式,並對 Akka 演員進行單元測試,掌握狀態機及如何使用 Akka 實現狀態驅動的演員。最後,通過一個案例研究來測試您的技能,該研究將讓您並發和異步地從關鍵值存儲中存儲和檢索數據。通過逐步學習 Akka 的概念,您不僅能夠編寫自己的分散式系統,還能欣賞 Akka 生態系統中的隱藏複雜性。

風格與方法


這本全面的指南將引導您了解 Scala 和 Akka 中反應式編程的基礎,解釋一些最常用的構造到最先進的功能,並通過實際範例帶您構建一個完整的分散式系統。

最後瀏覽商品 (1)