Book description
Learn the art of building intricate, modern, scalable concurrent applications using Scala
In Detail
This book will give you an insight into the best practices necessary to build concurrent programs in Scala using modern, high-level concurrency libraries. It starts by introducing you to the foundations of concurrent programming on the JVM, outlining the basics of the Java Memory Model, and then shows some of the classic building blocks of concurrency, such as the atomic variables, thread pools, and concurrent data structures, along with the caveats of traditional concurrency. It then walks you through different high-level concurrency abstractions, each tailored toward a specific class of programming tasks. Finally, the book presents an overview of when to use which concurrency library and demonstrates how they all work together.
What You Will Learn
- Get to grips with the fundamentals of concurrent programming on modern multiprocessor systems, with a particular focus on the JVM concurrency model
- Build high-performance concurrent systems from simple, low-level concurrency primitives
- Express asynchrony in concurrent computations with futures and promises
- Seamlessly accelerate sequential programs by using data-parallel collections
- Implement reactive and event-based programs declaratively with Rx-style event streams
- Design safe, scalable, and easy-to-comprehend in-memory transactional data models
- Transparently create distributed applications that scale across multiple machines
- Choose the correct concurrency abstraction and integrate different concurrency frameworks together in large applications
Publisher resources
Table of contents
-
Learning Concurrent Programming in Scala
- Table of Contents
- Learning Concurrent Programming in Scala
- Credits
- Foreword
- About the Author
- Acknowledgments
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. Introduction
- 2. Concurrency on the JVM and the Java Memory Model
- 3. Traditional Building Blocks of Concurrency
- 4. Asynchronous Programming with Futures and Promises
- 5. Data-Parallel Collections
- 6. Concurrent Programming with Reactive Extensions
- 7. Software Transactional Memory
- 8. Actors
- 9. Concurrency in Practice
- Index
Product information
- Title: Learning Concurrent Programming in Scala
- Author(s):
- Release date: November 2014
- Publisher(s): Packt Publishing
- ISBN: 9781783281411
You might also like
book
Data Algorithms with Spark
Apache Spark's speed, ease of use, sophisticated analytics, and multilanguage support makes practical knowledge of this …
book
CORS in Action: Creating and consuming cross-origin APIs
Summary CORS in Action introduces Cross-Origin Resource Sharing (CORS) from both the server and the client …
book
Modern Data Engineering with Apache Spark: A Hands-On Guide for Building Mission-Critical Streaming Applications
Leverage Apache Spark within a modern data engineering ecosystem. This hands-on guide will teach you how …
book
Scala Design Patterns - Second Edition
Learn how to write efficient, clean, and reusable code with Scala About This Book Unleash the …