Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [milo-dev] How to cache message in milo client?

George,

There's no caching in the client, but you have some options to control how much and how often the server reports data changes.

When creating the subscription, you choose the publishing interval, which is how often the client will receive data change notification. Each data change notification contains multiple values, batched up if necessary.

When creating a monitored item, you can choose the sampling interval and a queue size. This influences how often the server should sample the underlying data source and as well as the size of the queue that holds value changes in between the intervals that a subscription batches and reports at.

On Wed, Sep 27, 2017 at 12:58 AM, george.ray <george.ray@xxxxxxxxxx> wrote:
Hi all,

I subscribe device message with milo client sdk in my appliction. 
There is a question:
If device generate 400 messages in a second, but business layer can consume 200 messages in a second, how to cache message in milo client?
And after a period of time, is there a huge backlog of messages? If I want to handle the latest message always, is there any cache policy in milo client? 

Thanks!

Best regards, 
George Ray


Back to the top