Scegliere il livello di hub IoT più adatto per la soluzioneChoose the right IoT Hub tier for your solution
Ogni soluzione IoT è diversa, pertanto l'hub IoT di Azure offre diverse opzioni in base al prezzo e alla scalabilità.Every IoT solution is different, so Azure IoT Hub offers several options based on pricing and scale. Questo articolo ha lo scopo di assistere nella valutazione delle esigenze a livello di hub IoT.This article is meant to help you evaluate your IoT Hub needs. Per informazioni sui prezzi dei diversi livelli di hub IoT, vedere Prezzi di Hub IoT.For pricing information about IoT Hub tiers, see IoT Hub pricing.
Per decidere quale livello di hub IoT è adatto per la propria soluzione, è opportuno porsi due domande:To decide which IoT Hub tier is right for your solution, ask yourself two questions:
Quali funzionalità si prevede di usare?What features do I plan to use?
L'hub IoT di Azure offre due livelli, Basic e Standard, che si differenziano per il numero di funzionalità supportate.Azure IoT Hub offers two tiers, basic and standard, that differ in the number of features they support. Se la soluzione IoT si basa sulla raccolta di dati dai dispositivi e sulla loro analisi centralizzata, il livello Basic è probabilmente il più adatto.If your IoT solution is based around collecting data from devices and analyzing it centrally, then the basic tier is probably right for you. Se si vogliono usare configurazioni più avanzate per controllare in remoto i dispositivi IoT o per distribuire alcuni dei carichi di lavoro nei dispositivi stessi, prendere invece in considerazione il livello Standard.If you want to use more advanced configurations to control IoT devices remotely or distribute some of your workloads onto the devices themselves, then you should consider the standard tier. Per un'analisi dettagliata delle funzionalità incluse in ogni livello, vedere la sezione Livelli Basic e Standard più avanti.For a detailed breakdown of which features are included in each tier continue to Basic and standard tiers.
Quanti dati si prevede di spostare ogni giorno?How much data do I plan to move daily?
Ogni livello di hub IoT è disponibile in tre dimensioni, in base alla velocità effettiva dei dati che possono gestire in un determinato giorno.Each IoT Hub tier is available in three sizes, based around how much data throughput they can handle in any given day. Queste dimensioni sono identificate numericamente come 1, 2 e 3.These sizes are numerically identified as 1, 2, and 3. Ad esempio, ogni unità di un hub IoT di livello 1 può gestire 400.000 messaggi al giorno, mentre un'unità di livello 3 ne può gestire 300 milioni.For example, each unit of a level 1 IoT hub can handle 400 thousand messages a day, while a level 3 unit can handle 300 million. Per altre informazioni sulle linee guida sui dati, vedere la sezione Velocità effettiva dei messaggi più avanti.For more details about the data guidelines, continue to Message throughput.
Livelli Basic e StandardBasic and standard tiers
Il livello Standard dell'hub IoT supporta tutte le funzionalità ed è necessario per qualsiasi soluzione IoT in cui si vogliano usare le funzionalità di comunicazione bidirezionale.The standard tier of IoT Hub enables all features, and is required for any IoT solutions that want to make use of the bi-directional communication capabilities. Il livello Basic supporta un subset delle funzionalità ed è destinato alle soluzioni IoT per cui è sufficiente la comunicazione unidirezionale dai dispositivi al cloud.The basic tier enables a subset of the features and is intended for IoT solutions that only need uni-directional communication from devices to the cloud. Entrambi i livelli offrono le stesse funzionalità di sicurezza e autenticazione.Both tiers offer the same security and authentication features.
Per ogni hub IoT è possibile scegliere un solo tipo di edizione all'interno di un livello.Only one type of edition within a tier can be chosen per IoT Hub. Ad esempio, è possibile creare un hub IoT con più unità di S1, ma non con una combinazione di unità appartenenti a edizioni diverse, ad esempio, S1 e S2.For example, you can create an IoT Hub with multiple units of S1, but not with a mix of units from different editions, such as S1 and S2.
FunzionalitàCapability | Livello BasicBasic tier | Livello gratuito/standardFree/Standard tier |
---|---|---|
Telemetria da dispositivo a cloudDevice-to-cloud telemetry | SìYes | SìYes |
Identità per dispositivoPer-device identity | SìYes | SìYes |
Routing di messaggi, arricchimenti di messaggi e integrazione Griglia di eventiMessage routing, message enrichments, and Event Grid integration | SìYes | SìYes |
Protocolli HTTP, AMQP e MQTTHTTP, AMQP, and MQTT protocols | SìYes | SìYes |
Servizio Device ProvisioningDevice Provisioning Service | SìYes | SìYes |
Monitoraggio e diagnosticaMonitoring and diagnostics | SìYes | SìYes |
Messaggistica da cloud a dispositivoCloud-to-device messaging | SìYes | |
Dispositivi gemelli, Moduli gemelli e Gestione dei dispositiviDevice twins, Module twins, and Device management | SìYes | |
Flussi del dispositivo (anteprima)Device streams (preview) | SìYes | |
Azure IoT EdgeAzure IoT Edge | SìYes | |
Plug and Play IoTIoT Plug and Play | SìYes |
L'hub IoT offre inoltre un livello gratuito adatto per il testing e la valutazione.IoT Hub also offers a free tier that is meant for testing and evaluation. Include tutte le funzionalità del livello standard, ma offre un supporto limitato delle funzionalità di messaggistica.It has all the capabilities of the standard tier, but limited messaging allowances. Non è possibile eseguire l'aggiornamento dal livello gratuito al livello Basic o Standard.You cannot upgrade from the free tier to either basic or standard.
PartizioniPartitions
Gli hub IoT di Azure contengono molti componenti di base di Hub eventi di Azure, tra cui le partizioni.Azure IoT Hubs contain many core components of Azure Event Hubs, including Partitions. I flussi di eventi per gli hub IoT vengono in genere popolati con dati di telemetria in ingresso che vengono segnalati da vari dispositivi IoT.Event streams for IoT Hubs are generally populated with incoming telemetry data that is reported by various IoT devices. Il partizionamento del flusso di eventi consente di ridurre le contese che si verificano durante la lettura e la scrittura simultanee nei flussi di eventi.The partitioning of the event stream is used to reduce contentions that occur when concurrently reading and writing to event streams.
Il limite di partizioni viene scelto al momento della creazione dell'hub IoT Hub e non può essere modificato.The partition limit is chosen when IoT Hub is created, and cannot be changed. Il limite massimo di partizioni per hub IoT di livello basic e di livello standard è 32.The maximum partition limit for basic tier IoT Hub and standard tier IoT Hub is 32. La maggior parte degli hub IoT richiede solo 4 partizioni.Most IoT hubs only need 4 partitions. Per altre informazioni sulla determinazione delle partizioni, vedere la domanda frequente su Hub eventi Quante partizioni sono necessarie?For more information on determining the partitions, see the Event Hubs FAQ How many partitions do I need?
Aggiornamento del livelloTier upgrade
Dopo aver creato l'hub IoT, è possibile eseguire l'aggiornamento dal livello Basic al livello Standard senza interrompere le attività in corso.Once you create your IoT hub, you can upgrade from the basic tier to the standard tier without interrupting your existing operations. Per altre informazioni, vedere How to upgrade your IoT hub (Come eseguire l'aggiornamento dell'hub IoT).For more information, see How to upgrade your IoT hub.
Con la migrazione dal livello di base al livello standard la configurazione della partizione rimane invariata.The partition configuration remains unchanged when you migrate from basic tier to standard tier.
Nota
Il livello gratuito non supporta l'aggiornamento a basic o standard.The free tier does not support upgrading to basic or standard.
API REST dell'hub IoTIoT Hub REST APIs
La differenza a livello di funzionalità supportate tra i livelli Basic e Standard dell'hub IoT è che alcune chiamate API non funzionano con gli hub di livello Basic.The difference in supported capabilities between the basic and standard tiers of IoT Hub means that some API calls do not work with basic tier hubs. La tabella seguente illustra le API disponibili:The following table shows which APIs are available:
Velocità effettiva dei messaggiMessage throughput
Il modo migliore per definire le dimensioni di una soluzione hub IoT consiste nel valutare il traffico per unità.The best way to size an IoT Hub solution is to evaluate the traffic on a per-unit basis. In particolare, considerare la velocità effettiva di picco richiesta per le categorie di operazioni seguenti:In particular, consider the required peak throughput for the following categories of operations:
- Messaggi da dispositivo a cloudDevice-to-cloud messages
- Messaggi da cloud a dispositivoCloud-to-device messages
- Operazioni del registro delle identitàIdentity registry operations
Il traffico viene misurato per l'hub IoT in base alle singole unità.Traffic is measured for your IoT hub on a per-unit basis. Quando si crea un hub IoT, si sceglie il livello e l'edizione e si imposta il numero di unità disponibili.When you create an IoT hub, you choose its tier and edition, and set the number of units available. È possibile acquistare fino a 200 unità per l'edizione B1, B2, S1 o S2 o fino a 10 unità per l'edizione B3 o S3.You can purchase up to 200 units for the B1, B2, S1, or S2 edition, or up to 10 units for the B3 or S3 edition. Dopo aver creato l'hub IoT, è possibile modificare il numero di unità disponibili all'interno dell'edizione, effettuare l'aggiornamento o il downgrade tra le edizioni all'interno del livello (da B1 a B2) o eseguire l'aggiornamento dal livello Basic al livello standard (da B1 a S1) senza interrompere le operazioni esistenti.After your IoT hub is created, you can change the number of units available within its edition, upgrade or downgrade between editions within its tier (B1 to B2), or upgrade from the basic to the standard tier (B1 to S1) without interrupting your existing operations. Per altre informazioni, vedere How to upgrade your IoT hub (Come eseguire l'aggiornamento dell'hub IoT).For more information, see How to upgrade your IoT hub.
Come esempio delle capacità di traffico di ogni livello, i messaggi da dispositivo a cloud seguono queste linee guida di velocità effettiva sostenuta:As an example of each tier's traffic capabilities, device-to-cloud messages follow these sustained throughput guidelines:
Edizione livelloTier edition | Velocità effettiva sostenutaSustained throughput | Frequenza di invio sostenutaSustained send rate |
---|---|---|
B1, S1B1, S1 | Fino a 1.111 KB al minuto per unitàUp to 1111 KB/minute per unit (1,5 GB al giorno per unità)(1.5 GB/day/unit) |
Una media di 278 messaggi al minuto per unitàAverage of 278 messages/minute per unit (400.000 messaggi al giorno per unità)(400,000 messages/day per unit) |
B2, S2B2, S2 | Fino a 16 MB al minuto per unitàUp to 16 MB/minute per unit (22,8 GB al giorno per unità)(22.8 GB/day/unit) |
Una media di 4.167 messaggi al minuto per unitàAverage of 4,167 messages/minute per unit (6 milioni di messaggi al giorno per unità)(6 million messages/day per unit) |
B3, S3B3, S3 | Fino a 814 MB al minuto per unitàUp to 814 MB/minute per unit (1144,4 GB al giorno per unità)(1144.4 GB/day/unit) |
Una media di 208,333 messaggi al minuto per unitàAverage of 208,333 messages/minute per unit (300 milioni di messaggi al giorno per unità)(300 million messages/day per unit) |
La velocità effettiva da dispositivo a cloud è solo una delle metriche che è necessario prendere in considerazione quando si progetta una soluzione IoT.Device-to-cloud throughput is only one of the metrics you need to consider when designing an IoT solution. Per informazioni più complete, vedere Quote e limitazioni dell'hub IoT.For more comprehensive information, see IoT Hub quotas and throttles.
Velocità effettiva delle operazioni del registro delle identitàIdentity registry operation throughput
Le operazioni del registro delle identità dell'hub IoT non sono considerate operazioni di runtime perché sono per lo più correlate al provisioning dei dispositivi.IoT Hub identity registry operations are not supposed to be run-time operations, as they are mostly related to device provisioning.
Per i dati specifici sulle prestazioni in modalità burst, vedere Quote e limitazioni dell'hub IoT.For specific burst performance numbers, see IoT Hub quotas and throttles.
Scalabilità automaticaAuto-scale
Se si sta per raggiungere il limite consentito per un messaggio nell'hub IoT, è possibile usare questi passaggi per la scalabilità automatica al fine di incrementare un'unità hub IoT allo stesso livello di hub IoT.If you are approaching the allowed message limit on your IoT hub, you can use these steps to automatically scale to increment an IoT Hub unit in the same IoT Hub tier.
Passaggi successiviNext steps
Per altre informazioni sulle funzionalità dell'hub IoT e per dettagli sulle prestazioni, vedere Prezzi dell’hub IoT o Quote e limitazioni dell'hub IoT.For more information about IoT Hub capabilities and performance details, see IoT Hub pricing or IoT Hub quotas and throttles.
Per cambiare il livello dell'hub IoT, seguire la procedura descritta in How to upgrade your IoT hub (Come eseguire l'aggiornamento dell'hub IoT).To change your IoT Hub tier, follow the steps in Upgrade your IoT hub.