https://github.com/9d4/inothing-broker-service
https://github.com/9d4/inothing-broker-service
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/9d4/inothing-broker-service
- Owner: 9d4
- Archived: true
- Created: 2022-03-22T06:15:45.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-11T14:43:35.000Z (about 4 years ago)
- Last Synced: 2024-06-21T18:52:05.333Z (almost 2 years ago)
- Language: Go
- Size: 86.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Notes and Contributing
---
Notes and contribution convention.
### **MQTT**
- Topic
Mqtt topic uses slash as separator. e.g.
- `air/humid` stands for air humid
- `air/temp` stands for air temperature
### **AMQP**
- Queue
In a nutshell Queue is another term of topic but in AMQP. Since we're using RabbitMQ as the broker it will automatically convert mqtt topic into amqp queue convention. Queue convention looks like these:
- `air.humid` stands for air humid
- `air.temp` stands for air temperature
It uses dot instead of slash
### Notes
- Always use `.` as separator when creating queue that will be used from mqtt. Since it will be processed automatically by RabbitMQ.
- Because no device will be the same, the queue name simply looks like `a12b3c.topic0.topic00`.