Skip to content

2_core_concepts

Mohamed edited this page Jun 10, 2025 · 2 revisions

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:

Clone this wiki locally