How a4z/zq works
Core Components Layer
• Context Management (from context.hpp)
• Socket Handling (from socket.hpp)
• Error Handling (from error.hpp, error_fmt.hpp)
• Message Processing (from message.hpp)
• Configuration (from config.hpp)
Message Type System
• Basic Types Handler
• String Message Handler
• Protobuf Message Handler (connected to proto/pingpong.proto)
• Custom Type Extensions
Communication Patterns
• Supported ZeroMQ patterns:
• PUB/SUB Pattern
• Request/Reply Pattern
• Multi-part Message Handling
External Dependencies
• Integration with:
• ZeroMQ Library
• Protocol Buffers
• Standard C++ Library
Use a Layered Architecture Approach
• [Client Applications]
• ↕
• [ZQ Interface Layer (zq.hpp)]
• ↕
• [Type System Layer]
• ↕
• [Core Components]
• ↕
• [ZeroMQ Library]
Testing Infrastructure
• A separate section showing test categories:
• Base Tests
• Communication Tests
• Context Tests
• Protocol Buffer Tests
• Extension Tests
Implementation Details to Note:
Build System Integration
• CMake configuration
• VCPKG dependency management
• Compiler requirements (C++20)