# How does thin-edge handle measurements when it is unable to reach the internet?

**URL:** <https://community.cumulocity.com/t/how-does-thin-edge-handle-measurements-when-it-is-unable-to-reach-the-internet/7746>\
**Category:** Forum\
**Tags:** thin-edge-io, cumulocity\
**Created:** [September 25, 2023, 6:49am UTC](https://community.cumulocity.com/t/how-does-thin-edge-handle-measurements-when-it-is-unable-to-reach-the-internet/7746 "2023-09-25T06:49:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simon55](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@Simon55](https://community.cumulocity.com/u/Simon55)\
**Post date:** [September 25, 2023, 6:49am UTC](https://community.cumulocity.com/t/how-does-thin-edge-handle-measurements-when-it-is-unable-to-reach-the-internet/7746/1 "2023-09-25T06:49:13Z")

</div>

Hi, I’m curious how thin-edge handles measurements when it is unable to offload them to cumulocity.

Given that thin edge is being supplied measurements on `tedge/measurements` but there is no internet connectivity, what happens? Will data be stored in-memory until network connectivity is restored? Does it roll-over to disk?

Reason for asking is we want minimize the risk of data being lost, and we can not afford saving data in-memory in a resource constrained environment.

Extra question: Is thin-edge the only straight forward way to forward data to cumulocity, or are there other ways?

---

<div class="post-metadata">

**Author:** ![Stefan\_Witschel](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/stefan_witschel/32/31955_2.png) [@Stefan\_Witschel](https://community.cumulocity.com/u/Stefan_Witschel)\
**Post date:** [September 25, 2023, 9:28am UTC](https://community.cumulocity.com/t/how-does-thin-edge-handle-measurements-when-it-is-unable-to-reach-the-internet/7746/2 "2023-09-25T09:28:16Z")

</div>

Hi @Simon55  
this has been discussed already here  
[Buffering messages with connection lost on thin-edge.io](https://community.cumulocity.com/t/buffering-messages-with-connection-lost-on-thin-edge-io/5533) and here  
[Cumulocity Device with inconsistent internet access](https://community.cumulocity.com/t/cumulocity-device-with-inconsistent-internet-access/2398/)

In short: Yes, [thin-edge.io](http://thin-edge.io) buffers the messages using the local mosquitto broker. When `persistence` is enabled it is written to disk and when at least QoS 1 is sent the messages are forwarded to Cumulocity when the connection is restored.

Extra answer: It is the most straight forward way yes and by far the best maintained open-source project, but of course there are multiple other so called “agents”. Some of them are pretty old or not much maintained but could be a start.

Have a look here: [https://open-source.softwareag.com/cumulocity-os-repo-overview/#agents](https://open-source.softwareag.com/cumulocity-os-repo-overview/#agents)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [March 23, 2024, 9:28am UTC](https://community.cumulocity.com/t/how-does-thin-edge-handle-measurements-when-it-is-unable-to-reach-the-internet/7746/3 "2024-03-23T09:28:47Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
