A managed MQTT broker for device fleets, where every device authenticates with its own X.509 certificate. It is in the SA-Pro scope, and it shows up in a very recognisable shape: thousands of devices, MQTT, per-device certificates, two-way messaging.
Một MQTT broker managed cho đội thiết bị, mỗi thiết bị xác thực bằng certificate X.509 của riêng nó. Nó có trong phạm vi SA-Pro, và xuất hiện với một hình dạng rất dễ nhận: hàng nghìn thiết bị, MQTT, certificate riêng từng thiết bị, nhắn tin hai chiều.
These four get blurred together constantly. Split them by the question each one answers: which device is this in my inventory, can it prove who it is, what is it allowed to do, and where does the message go.Bốn cái này liên tục bị trộn vào nhau. Tách chúng bằng câu hỏi mà mỗi cái trả lời: đây là thiết bị nào trong danh mục, nó chứng minh được mình là ai không, nó được làm gì, và message đi về đâu.
A Thing on its own authenticates nothing — it's inventory metadata. Deactivate the certificate and the device is locked out immediately; delete the Thing and it can still connect.
Một Thing tự nó không xác thực gì cả — nó là metadata danh mục. Vô hiệu hoá certificate thì thiết bị bị chặn ngay; xoá Thing thì nó vẫn kết nối được.
{
"Effect": "Allow",
"Action": ["iot:Connect", "iot:Publish", "iot:Subscribe", "iot:Receive"],
"Resource": [
"arn:aws:iot:ap-southeast-1:123456789012:client/sensor-001",
"arn:aws:iot:ap-southeast-1:123456789012:topic/devices/sensor-001/*",
"arn:aws:iot:ap-southeast-1:123456789012:topicfilter/devices/sensor-001/*"
]
}
// scope mỗi thiết bị vào topic của chính nó — "Resource": "*" là mất cách ly giữa các device
IoT Core vs the brokers it's confused withIoT Core vs những broker hay bị nhầm
IoT Core
Amazon MQ
Broker on EC2Broker trên EC2
Built forSinh ra cho
device fleets at internet scaleđội thiết bị quy mô internet
lifting an existing ActiveMQ/RabbitMQ app to AWS unchangedbê nguyên app ActiveMQ/RabbitMQ có sẵn lên AWS
total control, total opstoàn quyền, toàn bộ vận hành
Per-device X.509 authXác thực X.509 từng thiết bị
nativecó sẵn
you configure itbạn tự cấu hình
you build itbạn tự làm
Scale modelMô hình scale
millions of connections, no broker to sizehàng triệu kết nối, không phải chọn size broker
you size the broker instancesbạn chọn size instance broker
ASG + HA + patchingASG + HA + vá lỗi
Rules to AWS servicesRule tới AWS service
✓
✗ — consumers do it✗ — consumer tự làm
✗
The rest of the IoT family, in one line eachPhần còn lại của họ IoT, mỗi cái một dòngIoT Device Management — bulk onboarding, grouping, remote jobs and OTA updates. IoT Device Defender — audits fleet configuration and detects anomalous device behaviour. IoT Greengrass — runs Lambda/ML at the edge and buffers when the link drops. IoT SiteWise — industrial equipment telemetry modelling. IoT Events — detects patterns across streams and raises alarms.IoT Device Management — onboarding hàng loạt, nhóm thiết bị, job từ xa và cập nhật OTA. IoT Device Defender — audit cấu hình fleet và phát hiện hành vi thiết bị bất thường. IoT Greengrass — chạy Lambda/ML ở edge và đệm khi mất đường truyền. IoT SiteWise — mô hình hoá telemetry thiết bị công nghiệp. IoT Events — phát hiện mẫu trên nhiều luồng và bật cảnh báo.
Exam reflexesPhản xạ thi
"Thousands of devices" + "MQTT" + "unique X.509 certificate" + "real time, both directions" → IoT Core, one Thing and one certificate per device. Read no further."Hàng nghìn thiết bị" + "MQTT" + "certificate X.509 riêng" + "real time, hai chiều" → IoT Core, mỗi thiết bị một Thing và một certificate. Không cần đọc tiếp.
"Set up IoT Core, then create a queue per device in Amazon MQ and connect the devices to MQ" — a distractor that sets up IoT Core and then doesn't use it."Dựng IoT Core, rồi tạo một queue mỗi thiết bị trong Amazon MQ và cho thiết bị nối vào MQ" — bẫy: dựng IoT Core xong không dùng.
Anything that runs an MQTT broker on EC2 behind an NLB/ASG loses on operational overhead, every time. And an "NLB Lambda authorizer" doesn't exist.Đáp án nào chạy MQTT broker trên EC2 sau NLB/ASG đều thua về operational overhead, lần nào cũng vậy. Và "NLB Lambda authorizer" không tồn tại.
API Gateway HTTP API speaks HTTP, not MQTT. mTLS on it authenticates clients — it doesn't turn it into a broker.API Gateway HTTP API nói HTTP, không nói MQTT. mTLS trên nó xác thực client — không biến nó thành broker.
"Configure the fleet while devices are intermittently offline" → Device Shadow. "Send a firmware update to 10,000 devices" → IoT Jobs (Device Management)."Cấu hình fleet trong khi thiết bị lúc online lúc không" → Device Shadow. "Gửi bản cập nhật firmware cho 10.000 thiết bị" → IoT Jobs (Device Management).
Telemetry landing in a database → Rules Engine straight to DynamoDB/Timestream/Kinesis. Putting an API + EC2 fleet in front of it is the "consistently overloaded API servers" anti-pattern.Telemetry đổ vào database → Rules Engine đi thẳng tới DynamoDB/Timestream/Kinesis. Đặt một API + đội EC2 phía trước chính là anti-pattern "API server luôn quá tải".