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
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
Learning Scala Programming
Learn how to write scalable and concurrent programs in Scala, a language that grows with you. …
book
Learning Scala
Why learn Scala? You don’t need to be a data scientist or distributed computing expert to …
book
Scala Reactive Programming
Build fault-tolerant, robust, and distributed applications in Scala About This Book Understand and use the concepts …
video
Scala Fundamentals
You’re a software developer with a basic understanding of Java, but you want to write concise …