Sending device telemetry (D2C) from a cloud service without DeviceClient #3166
Unanswered
rgrace-puck
asked this question in
Q&A
Replies: 1 comment 4 replies
-
You might want to use AMQP connection pooling (multiplexing). Initialize your var transportSettings = new ITransportSettings[]
{
new AmqpTransportSettings(TransportType.Amqp_Tcp_Only)
{
AmqpConnectionPoolSettings = new AmqpConnectionPoolSettings
{
MaxPoolSize = 100, // pick a value that works for you, default is 100
Pooling = true,
}
}
}; I'm sorry to say we don't have a sample for this. We should add one but we won't be able to get to it in the near future. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
There is a service that we provide to a third-party which sends D2C messages from our system to their IoT hub.
Currently, we create a
DeviceClient
(and cache it) for each of their devices and send messages that way.There is some scalability issues with this as more devices are added. Due to the nature of the device client, having multiple instances is not supported so scaling this service horizontally is not possible.
Is there a more "lightweight" or scalable way to send D2C messages without spinning up device client instances?
I'm thinking potentially with something like
ServiceClient
or another class?Beta Was this translation helpful? Give feedback.
All reactions