-
-
Notifications
You must be signed in to change notification settings - Fork 11
case_studies.md
This section provides in-depth analyses of several key example applications that showcase how qb-core
actors and the qb-io
library work together to build functional, asynchronous, and concurrent systems. Each case study breaks down the architecture, highlights the QB features used, and explains the design patterns employed.
Studying these examples is a practical way to see the concepts from the "Core Concepts," "QB-IO Module," and "QB-Core Module" sections applied in more complex scenarios.
-
Case Study: Building a TCP Chat System with QB Actors
- Demonstrates a multi-core TCP chat server and client. Covers actor-based TCP client/server development, custom protocol handling, and session management.
-
Case Study: Simulating Distributed Computing with QB Actors
- Showcases task distribution, parallel processing by worker actors, basic load balancing concepts, and system monitoring in a simulated distributed environment.
-
Case Study: Building a File System Monitor with QB Actors
- Illustrates how to use
qb-io
's asynchronous file/directory watching capabilities within an actor-based system to react to file system changes.
- Illustrates how to use
-
Case Study: Asynchronous File Processing with Manager-Worker Actors
- Explains a Manager-Worker pattern for distributing potentially blocking file I/O tasks across multiple worker actors, maintaining system responsiveness.
-
Case Study: A Publish/Subscribe Message Broker with QB Actors
- Details the implementation of a topic-based publish/subscribe message broker using actors for logic and TCP for transport, highlighting efficient message fan-out techniques.
Each analysis aims to:
- Clarify the purpose and architecture of the example.
- Pinpoint how specific QB features (like
qb::io::use<>
,qb::io::async::callback
, custom events, protocols) are utilized. - Discuss the design patterns and QB concepts being illustrated.
We recommend reviewing these analyses after you have a grasp of the foundational concepts of QB.
(Return to: Core & IO Integration Overview**)