> [!WARNING]
> This repository is obsolete. All of its content has been merged to [www.github.com/absmach/magistrala](https://www.github.com/absmach/magistrala).
> Please use that repository for all active development.
# SuperMQ
### Planetary event-driven infrastructure
**Made with β€οΈ by [Abstract Machines](https://absmach.eu/)**
[](https://github.com/absmach/magistrala/actions/workflows/build.yaml)
[](https://goreportcard.com/report/github.com/absmach/magistrala)
[](https://deepwiki.com/absmach/magistrala)
[](https://github.com/absmach/magistrala/actions/workflows/check-license.yaml)
[](https://github.com/absmach/magistrala/actions/workflows/check-generated-files.yaml)
[](https://codecov.io/gh/absmach/magistrala)
[](LICENSE)
[](https://matrix.to/#/#supermq:matrix.org)
### [Guide](https://magistrala.absmach.eu/docs/) | [Contributing](CONTRIBUTING.md) | [Website](https://absmach.eu/) | [Chat](https://matrix.to/#/#supermq:matrix.org)
## Introduction π
SuperMQ is a distributed, highly scalable, and secure open-source cloud platform for messaging and event-driven architecture (EDA). It is a planetarily distributed, highly scalable, and secure platform that serves as a robust foundation for building advanced real-time and reactive systems.
## Why SuperMQ Stands Out π
SuperMQ bridges the gap between various network protocols (HTTP, MQTT, WebSocket, CoAP, and more) to provide a seamless messaging experience. Whether you're working on IoT solutions, real-time data pipelines, or event-driven systems, MagisSuperMQtrala has you covered. πβ¨
## Key Features π
- **Multi-Protocol Connectivity**: HTTP, MQTT, WebSocket, CoAP, and more! π
- **Secure by Design**: Mutual TLS (mTLS) with X.509 Certificates, JWT support, and multi-protocol authorization. π
- **Fine-Grained Access Control**: Support for ABAC and RBAC policies. π
- **Multi-Tenant**: Manage multiple domains seamlessly. π’
- **Multi-User**: Unlimited organizational hierarchies for user management. π₯
- **Application Management**: Group and share messaging clients for streamlined operations. π±
- **Ease of Use**: Simple and powerful communication channel management, grouping, and sharing. β¨
- **Personal Access Tokens (PATs)**: Scoped and revocable tokens for enhanced security. π
- **Observability**: Integrated logging and instrumentation with Prometheus and OpenTelemetry. π
- **Event Sourcing**: Build robust and scalable architectures. β‘
- **Edge and IoT Ready**: Supports MQTT and CoAP protocols for seamless IoT gateway and sensor communication and management. π
- **Developer-Friendly**: SDKs, CLI tools, and comprehensive documentation to get you started. π©βπ»π¨βπ»
- **Production-Ready**: Container-based deployment using Docker and Kubernetes. π³βΈοΈ
## Installation π οΈ
There are multiple ways to run SuperMQ.
First, clone the repository and position to it:
```bash
git clone https://github.com/absmach/supermq.git
cd supermq
```
To run the latest stable (tagged) version, use:
```bash
# Run with latest stable tagged version
make run_stable
```
To run the latest version, use:
```bash
# Run with latest development version (from main branch)
make run_latest
```
The `make run_stable` command will:
- Checkout the repository to the latest git tag
- Update the version in the environment configuration
- Start the services with the stable release
**Note:** After running `make run_stable`, you'll be on a detached HEAD state. To return to your working branch:
```bash
git checkout main
```
### Running on Apple Silicon (M1/M2/M3) Macs
When running SuperMQ on Apple Silicon Macs, the Makefile will automatically detect your ARM64 architecture and build Docker images locally.
**If using Docker Desktop:**
1. **Enable Apple Virtualization Framework**: In Docker Desktop, go to:
- Settings β General β Enable "Use the new Virtualization framework"
2. **Enable Rosetta for x86_64 Emulation**: In Docker Desktop, go to:
- Settings β General β Enable "Use Rosetta for x86_64/amd64 emulation on Apple Silicon"
After enabling these options, restart Docker Desktop, then run `make run_stable` or `make run_latest` as usual.
To manually run SuperMQ, clone the repository and start all core services:
```bash
docker compose -f docker/docker-compose.yaml --env-file docker/.env up
```
### Usage π€π₯
**Using the CLI :**
```bash
make cli
./build/supermq-cli status
```
This command retrieves the status of the SuperMQ server and outputs it to the console.
**Using HTTP with Curl :**
```bash
curl -X GET http://localhost:8080/status
```
This request fetches the server status over HTTP and provides a JSON response.
See our [CLI documentation](https://magistrala.absmach.eu/docs/dev-guide/cli/introduction-to-cli/) for more details.
## Documentation π
The official documentation is hosted at [SuperMQ docs page](https://magistrala.absmach.eu/docs/).
Documentation is auto-generated, check out the instructions in the [docs repository](https://github.com/absmach/magistrala-website).
If you spot an error or a need for corrections, please let us know - or even better: send us a PR! π
## Community and Contributing π€
Thank you for your interest in SuperMQ and the desire to contribute!
1. Take a look at our [open issues](https://github.com/absmach/magistrala/issues). The [good-first-issue](https://github.com/absmach/magistrala/labels/good-first-issue) label is specifically for issues that are great for getting started.
2. Checkout the [contribution guide](CONTRIBUTING.md) to learn more about our style and conventions.
3. Make your changes compatible to our workflow.
Join our community:
- [Matrix Room](https://matrix.to/#/#supermq\:matrix.org)
## Professional Support πΌ
Need help deploying SuperMQ or integrating it into your system? Reach out to **[Abstract Machines](https://absmach.eu/)** for professional support and guidance.
## License π
SuperMQ is open-source software licensed under the [Apache License 2.0](LICENSE). Contributions are welcome!
## Acknowledgments π
Special thanks to the amazing contributors who make SuperMQ possible. Check out the [MAINTAINERS](MAINTAINERS) file to see the team behind the magic.
Ready to build the future of messaging and event-driven systems? Let's get started! π