Skip to main content
Jan 13, 2020 12:10 PM UTC
Question

DotNet SDK - Best way to implement queue and buffering to update properties

We have various properties that are updating very frequently. What will be the best way to implement this using the .Net SDK?

Do we need to create separate threads to update properties?

Current code looks like this, which is the default implementation, however for properties that are updating very frequently, what would be the best way?

 

targetThing.setProperty(propertyName, value);

targetThing.updateSubscribedProperties(15000);

 

6 replies

ShivajiAuthor
Jan 14, 2020 8:57 AM UTC

How to achieve maximum throughput, using both these?

Do I need to create separate threads for both SetProperty and UpdateSubscribedProperties ?

 

Jan 16, 2020 7:43 PM UTC

Hi @Shivaji.

 

When you say the properties are updating very frequently, how often is that?  What version of the DotNet SDK are you using?

 

Regards.

 

--Sharon

ShivajiAuthor
Jan 17, 2020 5:38 AM UTC

We have several devices that have more than 300 properties which are updating every second.