Is there a limitation on the number of topics in IoT Core?

0

Is there any limit or performance issue with the increasing number of topics?

Let's say I have 100 million devices and I want to be able to send messages specific to a device. First thing that comes to mind is to create a topic for each device and send to that topic. It is similar to a push message on a mobile device.

Does creating 100 million topics cause performance or governance problems?

AWS
已提問 4 年前檢視次數 1508 次
1 個回答
0
已接受的答案

IoT Core topics are not like SNS topics that are created resources. MQTT topics in IoT Core are not created or destroyed. They are an addressing scheme instead of a resource. There is an overview of this in an MQTT whitepaper here: https://d1.awsstatic.com/whitepapers/Designing_MQTT_Topics_for_AWS_IoT_Core.pdf

"An MQTT topic acts as a matching mechanism between publishers and subscribers. Conceptually, an MQTT topic behaves like an ephemeral notification channel."

At a high level there's not a limit on the number of topics and it is recommended to use a topic per device when possible. When it comes to management, I'd recommend following some of our best practices to make this easier:

  • We support features such as policy variables (so you can reduce the number of of total policies you manage).
  • We support thing groups so you can further group devices.

I also recommend using a common naming structure such that topics match with thing names in the registry 1) for policy variables 2) for management. The IoT Lens within the Security and Operational Excellence Well Architected Framework pillars discuss these topics in more depth: https://d1.awsstatic.com/whitepapers/architecture/AWS-IoT-Lens.pdf

AWS
已回答 4 年前
profile picture
專家
已審閱 9 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南