Understand the fundamental building blocks of the QB Actor Framework, including actors, events, asynchronous I/O, and concurrency management.
QB Framework: Core Concepts
This section delves into the foundational concepts that underpin the QB Actor Framework. A solid grasp of these principles is essential for effectively designing and building applications with QB. Each page explores a critical aspect of the framework's architecture and programming model.
Chapters in this Section:
- The Actor Model in QB
- Learn how QB implements the Actor Model, with a focus on qb::Actor as the primary unit of concurrency and state, and qb::ActorId for unique identification.
- The QB Event System
- Discover how actors communicate exclusively through asynchronous messages (events derived from qb::Event), how to define events, and the basics of event handling.
- Asynchronous I/O Model in QB
- Explore QB's non-blocking, event-driven I/O model, powered by qb-io, including the role of the event loop (qb::io::async::listener) and asynchronous callbacks.
- Concurrency & Parallelism in QB
- Understand how QB manages concurrent actor execution and achieves true parallelism on multi-core systems through qb::Main and qb::VirtualCores.
Next Steps
Once you are comfortable with these core concepts, you may want to explore:
- The QB-IO Module Documentation for a detailed look at the asynchronous I/O library.
- The QB-Core Module Documentation for specifics on the actor engine.
- The Getting Started Guide if you haven't already, to see these concepts in a practical example.