Concurrent Patterns and Best Practices: Build scalable apps with patterns in multithreading, synchronization, and functional programming

Atul S. Khot

商品描述

A definitive guide to mastering and implementing concurrency patterns in your applications

Key Features

  • Build scalable apps with patterns in multithreading, synchronization, and functional programming
  • Explore the parallel programming and multithreading techniques to make the code run faster
  • Efficiently use the techniques outlined to build reliable applications

Book Description

Selecting the correct concurrency architecture has a significant impact on the design and performance of your applications. This book explains how to leverage the different characteristics of parallel architecture to make your code faster and more efficient.

To start with, you'll understand the basic concurrency concepts and explore patterns around explicit locking, lock free programming, futures & actors. Then, you'll get insights into different concurrency models and parallel algorithms and put them to practice in different scenarios to realize your application's true potential. We'll take you through multithreading design patterns, such as master, slave, leader, follower, map-reduce, and monitor, also helping you to learn hands-on coding using these patterns.

Once you've grasped all of this, you'll move on to solving problems using synchronizer patterns. You'll discover the rationale for these patterns in distributed & parallel applications, followed by studying how future composition, immutability and the monadic flow help create more robust code.

Toward the end of the book, you'll learn about the actor paradigm and actor patterns - the message passing concurrency paradigm.

What you will learn

  • Explore parallel architecture
  • Get acquainted with concurrency models
  • Internalize design themes by implementing multithreading patterns
  • Get insights into concurrent design patterns
  • Discover design principles behind many java threading abstractions
  • Work with functional concurrency patterns

Who this book is for

This is a must-have guide for developers who want to learn patterns to build scalable and high-performing apps. It's assumed that you already have a decent level of programming knowledge.

Table of Contents

  1. Concurrency - a kick start introduction
  2. A taste of some concurrency patterns
  3. More threading patterns
  4. Thread Pools
  5. Increasing the Concurrency
  6. Functional Concurrency Patterns
  7. Actor Patterns

商品描述(中文翻譯)

《精通並行模式的權威指南:在應用程式中實現並行性的終極指南》

關鍵特點:
- 使用多執行緒、同步和函數式編程模式構建可擴展的應用程式
- 探索並行編程和多執行緒技術,使程式碼運行更快
- 高效地使用所述技術來構建可靠的應用程式

書籍描述:
選擇正確的並行架構對於應用程式的設計和性能有重大影響。本書解釋了如何利用並行架構的不同特性使程式碼更快、更高效。

首先,您將了解基本的並行概念,並探索明確鎖定、無鎖編程、未來和演員等模式。然後,您將深入研究不同的並行模型和並行算法,並在不同的情境中實踐它們,以實現應用程式的真正潛力。我們將帶您了解多執行緒設計模式,例如主從、領導者、跟隨者、映射-減少和監視器,並幫助您學習使用這些模式進行實際編碼。

一旦您掌握了所有這些知識,您將開始使用同步器模式解決問題。您將了解這些模式在分佈式和並行應用程式中的原理,並研究未來組合、不可變性和單子流如何幫助創建更強大的程式碼。

在本書的最後,您將學習演員範式和演員模式-消息傳遞並行範式。

您將學到什麼:
- 探索並行架構
- 熟悉並行模型
- 通過實現多執行緒模式內化設計主題
- 獲得並行設計模式的洞察力
- 發現許多Java執行緒抽象背後的設計原則
- 使用函數式並行模式進行工作

本書適合對於想要學習模式以構建可擴展和高效應用程式的開發人員。假設您已經具備相當程度的程式設計知識。

目錄:
1. 並行性-快速入門介紹
2. 一些並行模式的體驗
3. 更多的執行緒模式
4. 執行緒池
5. 增加並行性
6. 函數式並行模式
7. 演員模式