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. 演員模式