Book description
Serverless computing enables developers to concentrate solely on their applications rather than worry about where they've been deployed. With the Ray general-purpose serverless implementation in Python, programmers and data scientists can hide servers, implement stateful applications, support direct communication between tasks, and access hardware accelerators.
In this book, experienced software architecture practitioners Holden Karau and Boris Lublinsky show you how to scale existing Python applications and pipelines, allowing you to stay in the Python ecosystem while reducing single points of failure and manual scheduling. Scaling Python with Ray is ideal for software architects and developers eager to explore successful case studies and learn more about decision and measurement effectiveness.
If your data processing or server application has grown beyond what a single computer can handle, this book is for you. You'll explore distributed processing (the pure Python implementation of serverless) and learn how to:
- Implement stateful applications with Ray actors
- Build workflow management in Ray
- Use Ray as a unified system for batch and stream processing
- Apply advanced data processing with Ray
- Build microservices with Ray
- Implement reliable Ray applications
Publisher resources
Table of contents
- Foreword
- Preface
- 1. What Is Ray, and Where Does It Fit?
- 2. Getting Started with Ray (Locally)
- 3. Remote Functions
- 4. Remote Actors
- 5. Ray Design Details
- 6. Implementing Streaming Applications
- 7. Implementing Microservices
-
8. Ray Workflows
- What Is Ray Workflows?
- How Is It Different from Other Solutions?
- Ray Workflows Features
- Working with Basic Workflow Concepts
-
Workflows in Real Life
- Building Workflows
- Managing Workflows
- Building a Dynamic Workflow
- Building Workflows with Conditional Steps
- Handling Exceptions
- Handling Durability Guarantees
- Extending Dynamic Workflows with Virtual Actors
- Integrating Workflows with Other Ray Primitives
- Triggering Workflows (Connecting to Events)
- Working with Workflow Metadata
- Conclusion
- 9. Advanced Data with Ray
- 10. How Ray Powers Machine Learning
- 11. Using GPUs and Accelerators with Ray
- 12. Ray in the Enterprise
- A. Space Beaver Case Study: Actors, Kubernetes, and More
- B. Installing and Deploying Ray
- C. Debugging with Ray
- Index
- About the Authors
Product information
- Title: Scaling Python with Ray
- Author(s):
- Release date: November 2022
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781098118808
You might also like
book
Scaling Python with Dask
Modern systems contain multi-core CPUs and GPUs that have the potential for parallel computing. But many …
video
Spark, Ray, and Python for Scalable Data Science
7.5 Hours of Video Instruction Conceptual overviews and code-along sessions get you scaling up your data …
book
Python Distilled
Expert Insight for Modern Python (3.6+) Development from the Author of Python Essential Reference The richness …
book
Python Workout
The only way to master a skill is to practice. In Python Workout, author Reuven M. …