技術筆記 Blog

大數據、容器化、虛擬化、AI 與系統管理技術筆記

View on GitHub

IoT 物聯網與訊息佇列

物聯網 (IoT) 相關的訊息佇列、通訊協議和分散式系統。

📁 內容

EMQTT

EMQ MQTT Broker Kubernetes 自動擴展

EMQTT Docker

EMQ MQTT Broker Docker 容器

Mosquitto

Mosquitto MQTT Broker 建置環境

OpenDDS

DDS (Data Distribution Service) 分散式通訊

🎯 使用場景

IoT 設備通訊

訊息佇列

即時系統

📡 MQTT 協議

特性

QoS 等級

🚀 快速開始

EMQTT 部署

# Kubernetes 部署
kubectl create namespace emqtt
kubectl apply -f mqtt/k8s-emqttd/

# 訪問 Dashboard
kubectl port-forward -n emqtt emqtt-0 18083:18083

Mosquitto 使用

# 啟動 Broker
mosquitto -c mosquitto.conf

# 訂閱主題
mosquitto_sub -h localhost -t "test/topic"

# 發布訊息
mosquitto_pub -h localhost -t "test/topic" -m "Hello MQTT"

OpenDDS 範例

# 建置容器
docker build -t opendds:latest opendds/

# 執行範例
docker run -it opendds:latest
cd $DDS_ROOT/DevGuideExamples/DCPS/Messenger
./run_test.pl

🔧 核心技術

MQTT Brokers

DDS 實作

📚 相關資源


連接萬物,即時通訊