How pragmaticflow/nbomber works
Main Components Identification
The system should be divided into these major components:
a. Core Framework Components:
• Test Runner Engine
• Scenario Management
• Load Simulation Engine
• Statistics & Metrics Collection
• Reporting System
• Plugin System
b. Integration Components:
• Protocol Adapters (HTTP, WebSockets, MQTT, etc.)
• Database Connectors (Redis, SQLite, etc.)
• External Monitoring Systems (InfluxDB, TimescaleDB, Grafana)
┌─ User Interface Layer ─────────────────────┐
• CLI Interface │
• xUnit/NUnit Test Runners │
• NBomber Studio (Real-time Monitoring) │
• ┬─┘
┌─ Core Framework Layer ──────────────────┼─┐
• ┌─ Scenario Management ─┐ ┌─ Test Host ─┴┐ │
• Scenario Builder │ │ - Runner │ │
• Step Management │ │ - Scheduler │ │
• Context Handling │ │ - Plugins │ │
• ┬─┘ └─────────────┘ │
• ┌─ Load Simulation ──┴─┐ ┌─ Statistics ─┐ │
• Constant Load │ │ - Metrics │ │
• Step Load │ │ - Analysis │ │
• Custom Patterns │ │ - Storage │ │
• ┬─┘ └──────┬──────┘ │
• ┼───────────┼────────┘
┌─ Integration Layer ──┼───────────┼────────┐
• ┌─ Protocol Adapters┐│ ┌─ Reporting ┐ │
• HTTP ││ │ - HTML │ │
• WebSockets ││ │ - CSV │ │
• MQTT ││ │ - JSON │ │
• ┘│ └────────────┘ │
• ┌─ External Systems ┴┐ ┌─ Data Feeds ┐ │
• InfluxDB │ │ - CSV │ │
• TimescaleDB │ │ - JSON │ │
• Grafana │ │ - Custom │ │
• ┘ └────────────┘ │
• ┘
Component Relationships
• Data flow between components
• Dependencies
• Integration points
• Plugin extension points
Important Details
• Cluster mode capabilities
• Plugin architecture points
• Data feed integration points
• Reporting sink connections
• Load simulation patterns
• Metrics collection flow