RouteMQ Framework Documentation

Welcome to the RouteMQ Framework documentation! This guide will help you get started and master all the features of this flexible MQTT routing framework.

Table of Contents

About RouteMQ

RouteMQ is a flexible MQTT routing framework with middleware support, dynamic router loading, Redis integration, and horizontal scaling capabilities, inspired by web frameworks.

Key Features

  • Dynamic Router Loading: Automatically discover and load routes from multiple files

  • Route-based MQTT topic handling: Define routes using a clean, expressive syntax

  • Middleware support: Process messages through middleware chains

  • Parameter extraction: Extract variables from MQTT topics using Laravel-style syntax

  • Shared Subscriptions: Horizontal scaling with worker processes for high-throughput routes

  • Redis Integration: Optional Redis support for distributed caching and rate limiting

  • Advanced Rate Limiting: Multiple rate limiting strategies with Redis backend

  • Optional MySQL integration: Use with or without a database

  • Group-based routing: Group routes with shared prefixes and middleware

  • Context manager for route groups: Use Python's with statement for cleaner route definitions

  • Environment-based configuration: Flexible configuration through .env files

  • Comprehensive logging: Built-in logging with configurable levels

Last updated