Scala High Performance Programming

Vincent Theron, Michael Diamant

  • 出版商: Packt Publishing
  • 出版日期: 2016-05-31
  • 售價: $1,820
  • 貴賓價: 9.5$1,729
  • 語言: 英文
  • 頁數: 274
  • 裝訂: Paperback
  • ISBN: 178646604X
  • ISBN-13: 9781786466044
  • 相關分類: JVM 語言
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Leverage Scala and the functional paradigm to build performant software

About This Book

  • Get the first book to explore Scala performance techniques in depth!
  • Real-world inspired use cases illustrate and support the techniques studied and the language features
  • This book is written by Vincent Theron and Michael Diamant, software engineers with several years of experience in the high-frequency trading and programmatic advertising industries

Who This Book Is For

This book assumes a basic exposure to the Scala programming language and the Java Virtual Machine. You should be able to read and understand moderately advanced Scala code. No other knowledge is required.

What You Will Learn

  • Analyze the performance of JVM applications by developing JMH benchmarks and profiling with Flight Recorder
  • Discover use cases and performance tradeoffs of Scala language features, and eager and lazy collections
  • Explore event sourcing to improve performance while working with stream processing pipelines
  • Dive into asynchronous programming to extract performance on multicore systems using Scala Future and Scalaz Task
  • Design distributed systems with conflict-free replicated data types (CRDTs) to take advantage of eventual consistency without synchronization
  • Understand the impact of queues on system performance and apply the Free monad to build systems robust to high levels of throughput

In Detail

Scala is a statically and strongly typed language that blends functional and object-oriented paradigms. It has experienced growing popularity as an appealing and pragmatic choice to write production-ready software in the functional paradigm. Scala and the functional programming paradigm enable you to solve problems with less code and lower maintenance costs than the alternatives. However, these gains can come at the cost of performance if you are not careful.

Scala High Performance Programming arms you with the knowledge you need to create performant Scala applications. Starting with the basics of understanding how to define performance, we explore Scala's language features and functional programming techniques while keeping a close eye on performance throughout all the topics.

We introduce you as the newest software engineer at a fictitious financial trading company, named MV Trading. As you learn new techniques and approaches to reduce latency and improve throughput, you'll apply them to MV Trading's business problems. By the end of the book, you will be well prepared to write production-ready, performant Scala software using the functional paradigm to solve real-world problems.

商品描述(中文翻譯)

利用Scala和函數式範式來建構高效能的軟體

關於本書

- 首本深入探討Scala效能技巧的書籍!
- 實際案例展示和支持所學的技巧和語言特性
- 本書由Vincent Theron和Michael Diamant撰寫,他們在高頻交易和程式化廣告行業擁有多年的軟體工程師經驗

適合閱讀對象

本書假設讀者對Scala程式語言和Java虛擬機有基本的了解。您應該能夠閱讀和理解中等程度的高級Scala程式碼。不需要其他知識。

學到什麼

- 通過開發JMH基準測試和使用Flight Recorder進行性能分析,分析JVM應用程式的性能
- 探索Scala語言特性、急切和惰性集合的使用案例和性能取捨
- 透過事件溯源改善在流處理管道中的性能
- 透過Scala Future和Scalaz Task在多核系統上進行非同步程式設計,提高性能
- 使用無衝突複製資料類型(CRDT)設計分散式系統,以實現最終一致性而無需同步
- 了解佇列對系統性能的影響,並應用Free Monad來構建能夠處理高吞吐量的系統

詳細內容

Scala是一種靜態且強型別的語言,結合了函數式和物件導向範式。它作為一個吸引人且實用的選擇,越來越受歡迎,用於以函數式範式撰寫可投入生產的軟體。Scala和函數式程式設計範式使您能夠以比其他選項更少的程式碼和更低的維護成本解決問題。然而,如果不小心,這些優勢可能會帶來性能上的代價。

《Scala高效能程式設計》將為您提供創建高效能Scala應用程式所需的知識。從理解如何定義性能的基礎知識開始,我們探索Scala的語言特性和函數式程式設計技巧,同時密切關注性能。

我們將您介紹為MV Trading這家虛構金融交易公司的最新軟體工程師。當您學習新的技巧和方法來減少延遲並提高吞吐量時,您將應用它們於MV Trading的業務問題。通過本書,您將為使用函數式範式解決現實世界問題的生產就緒、高效能的Scala軟體寫作做好充分準備。