fbpx
ObjectBox on Azure Sphere: Efficient IoT data persistence

ObjectBox on Azure Sphere: Efficient IoT data persistence

Listening to our IoT users, we implemented ObjectBox support for Microsoft’s Azure Sphere. With this extension, you can use ObjectBox on tiny devices now. But let us explain a bit more…

What is Edge computing?

Centralized computing entails a central computer storing and processing all data with multiple machines (clients) accessing it. Decentralized computing has no central instance and data is stored and processed on the machine it is used on. The currently predominant computing paradigm, namely cloud computing, is centralized.

The Internet of Things (IoT) is pushing the industry once again towards a distributed computing paradigm. In this context it is called Edge computing. Edge Computing aims to store and process data on end devices (so called edge devices or nodes) like smartphones, routers, and the IoT end devices. We view Edge Computing as an extension of the cloud, adding value and functionality on the edge of the network. 

Note: Fog Computing and Edge Computing definitions vary and overlap widely. This is just the definition we use.

What is the Azure Sphere?

The Azure Sphere is foremost an operating system for “small chips”, or more exactly, Internet-connected microcontroller units (MCUs). It was developed by Microsoft for Internet of Things (IoT) applications and comes with integrated cloud security services. As of today, it runs on a MT3620 MCU produced by MediaTek in collaboration with Microsoft.

Microsoft Azure, Microsoft’s cloud solution is closely related to the Azure Sphere. Security and user management, configuration and deployment can be analyzed and modified using that web interface.

ObjectBox on Azure Sphere 

There were a couple of reasons why we at ObjectBox support Azure Sphere:

Furthermore, we looked at the lifetime costs: Firstly, we chose Azure Sphere, because it can save maintenance costs. Secondly, because there is one unified interface to the platform, the platform itself may be used for any task imaginable (e.g. facility management, real time inventory, etc.). Thirdly, Microsoft’s security solution provides Over-the-air (OTA) updates. Therefore, it takes care of keeping the operating system up to date for you.

Azure Sphere use cases

These use cases exemplify a key consequence of using the Internet of Things in everyday devices: they may not only read and analyze sensor data, but also control the machine they are attached to, even autonomously. In connection with intelligent algorithms, these devices are able to make far-reaching decisions and thus maximize overall efficiency.

Benefits of ObjectBox on Azure Sphere

ObjectBox can greatly simplify the process of data collection, transmission, and processing. Let’s now see how ObjectBox is able to solve common problems encountered when integrating IoT into any kind of environment.

Let’s now see how ObjectBox is able to solve common problems encountered when integrating IoT into any kind of environment.

Scalability, i.e. integrating new devices into a fleet of existing ones, can be challenging because of the gigantic amount of data it generates and that must be transferred to a high-level entity. ObjectBox’s speed advantage provides a solution to this. Confirmed by 3rd party reviewers, ObjectBox outperforms alternatives in all areas. Thus, it offers higher rates for data transmission, storage and retrieval.

ObjectBox is created from developers for developers. Because ObjectBox’s programming interfaces are exceptionally easy to use, development time can be minimized and first prototypes can be delivered after a very short time.

Additionally, it is necessary to make sure data is always up-to-date and prevent unintentionally storing redundant or meaningless data. Our synchronization feature, coming up soon, will solve that out-of-the-box for you.

Find the full technical description and download on GitHub.

Let us know what you think

Last not least, we are always happy to hear from you. Post any questions you may have on stack overflow tagged ObjectBox. Please share your thoughts on ObjectBox on Azure Sphere with us via Twitter, Facebook, or Mail (contact [at] objectbox . io).

What are the benefits of Edge Computing?

What are the benefits of Edge Computing?

The benefits of edge computing stem directly from the underlying paradigm: Edge Computing is a decentralized computing architecture as opposed to a centralized/cloud computing model. 

 

Benefits of Edge Computing put simply

  • Data ownership / privacy: Data can stay where it belongs – and is produced and used (on the edge devices)
  • Security: Data on edge devices that is not transferred to the cloud is much more difficult to hack
  • Cloud costs: Cloud data volumes and costs can be significantly reduced
  • Rate of data transfer: Less need for bandwidth
  • Speed: Processing on the device instead of sending to the cloud and waiting for an answer is way faster (latency)
  • Offline-capability: Edge devices can operate independent from a network / cloud connection
  • Real-time communication on the edge: Edge devices can communicate between each other directly, which can be done much faster due to the short distances and also more efficient as the power and information of several devices can be combined (for more info see: ultra low latency networks, peer-2-peer, M2M actions)
Top 5 reasons why edge computing is crucial for IoT

Top 5 reasons why edge computing is crucial for IoT

IoT is growing at a very rapid rate and with it the vast amount of data it produces. Handling these amounts of data is an unresolved challenge. Edge Computing could be part of the solution. 
According to Dave Evans of Cisco, in 2010 the number of IoT devices connected to the internet passed the world population, with a device to person ratio of 1.84.1 By 2020 there will be up to ten Web-connected devices per person, collectively producing over 40 zettabytes of data.2, 4 

The graph on the right shows the estimated number of IoT devices from 2015-2025, Statista Gmbh.5 

Downsides of pure cloud computing in IoT use cases

Today, most IoT devices constantly push all data generated to the cloud and use little of the on-device capacities. There are some downsides to that:

 

  1. Data security
    When data is constantly being sent from device to the cloud, the risk of the data being compromised is huge. “As a centralized resource out of users’ control, the cloud resents an ever-present opportunity to violate privacy.”3 
      
  2. Realtime requirement
    IoT applications have a “need for speed”.2 The response time, however, inevitably decreases as the distance between device and the place where data is stored and computed (in the cloud) increases.2
      
  3. Cloud costs
    Pushing, storing, and processing all data in the cloud is associated with high cloud costs. These costs increase as data volumes increase.15

  4. Wastefulness
    Our current bandwidth infrastructure does not support this rapid growth: “With global Internet traffic growing by an estimated 22% per year, the demand for bandwidth is fast outstripping providers’ best efforts to supply it”.Even worse, most data stored in the cloud is of no value to the company and never used.
That is why analysts predict data will move to the edge. 2, 6, 10, 11

What is edge computing?

While there are varying definitions, a simple pragmatic definition is: computing data close to where it is produced, at the edge of the network, instead of a central point far away.1, 9 More technically, it is decentralized data persistence that happens on or near the devices that produce the data.

Moving data to the edge does not mean that data will be solely stored on the edge instead of the cloud. There is just a shift to more data being processed on the edge and less data stored in the cloud.1

Advantages of Edge Computing

Storing and processing data locally on device (e.g. on the IoT gateway) has some advantages:

 

  1. Privacy and Security
    If you are working with sensitive personal data that is not needed centrally / on the cloud, it is easier to keep data secure by storing it where it belongs.18 This can also ease up on GDPR compliance.12

  2. Latency / Speed
    If the data is being stored and processed in a local database, then computing can be done in real time rather than having to communicate back and forth with the cloud for every interaction.5 

  3. Offline-capability
    The more you compute on the edge, the more your app is independent from a constant network connection.19

  4. Costs
    Because you only store the data that is needed centrally or the data you really want to backup, your cloud costs will go down.12

  5. Resourcefulness
    Storing and processing data on the edge and only sending out to the cloud what will be used and useful saves bandwidth and server space.18
Practical Examples

Currently the main focus industries for IoT Edge Computing are Smart Cities, Autonomous Vehicles; Drones, and Industrial IoT.17

A simple case for an IoT edge solution is wearable health monitors. They locally analyze data like heart rate or sleep patterns and provide recommendations without the need for a constant cloud connection.16 It makes sense to be able to get health recommendations in any situation, no matter if there is an internet connection available. Also, not every patient may want all his/her personal health data stored online.
Straightforward IoT use cases, which can only work with local data processing, are (semi-)-autonomous cars. Data needs to be processed in real-time and independent of a network connection as no one would like to crash, because of lagging. Also, edge computing enables cars to process more sensor data faster and find patterns.5 
 
There is a trend to move data to the edge

When you look around the internet, you will find many studies predicting the rise of edge computing, for example: Peter Livine, partner at Andreessen Horowitz, predicted “the end of cloud computing” in favor of edge computing. Livine believes that the bulk of processing will soon take place at the device level.13 Transparency Market Research (TMR) forecasted the global edge computing market will be worth US $13.3 billion by the end of 2022.14 The IDC’s Global IoT Decision Maker Survey showed that 43% of IoT decision makers want to build on edge computing.4

For us edge computing makes a lot of sense, because it is resourceful, efficient, and data stays where it belongs. That’s why we built ObjectBox. Everything else, we’ll see… 😉

 

ObjectBox is an object oriented embedded database solution for IoT-devices (10x faster than SQLite, 1 million+ entities/second400kb native core, cross platform compatible, ACID-compliant). 

Sources

[1] Cisco (2011) https://www.cisco.com/c/dam/en_us/about/ac79/docs/innov/IoT_IBSG_0411FINAL.pdf
[2] Ieee (2018) http://innovationatwork.ieee.org/how-edge-computing-will-drive-5g-technology/
[3] Usenix (2015) https://www.usenix.org/system/files/conference/hotcloud15/hotcloud15-zhang.pdf
[4] IDC (2017) https://www.ge.com/de/sites/www.ge.com.de/files/IDC%20MarketScape_Worldwide%20IoT%20Platforms_Software%20Vendors_US42033517%5B1%5D.pdf
[5] Data Makes Possible (2018) https://www.datamakespossible.com/edge-computing-transform-autonomous-cars/
[6] IDG (2017) https://www.idgconnect.com/abstract/28926/iot-set-push-computing-edge-2018
[7] Scientific American (2016) https://www.scientificamerican.com/article/the-bandwidth-bottleneck-that-is-throttling-the-internet/
[9] Gartner (2017) https://www.gartner.com/smarterwithgartner/what-edge-computing-means-for-infrastructure-and-operations-leaders/
[10] Business Insider (2016) https://www.businessinsider.de/edge-computing-in-the-iot-forecasts-key-benefits-and-top-industries-adopting-an-analytics-model-that-improves-processing-and-cuts-costs-2016-7?r=US&IR=T
[11] Ieee (2016)  https://spectrum.ieee.org/tech-talk/telecom/internet/popular-internet-of-things-forecast-of-50-billion-devices-by-2020-is-outdated – as always with predictions. However, talking to many CTOs of IoT companies, we see there definitely is a need for edge computing.
[12] IoT Agenda (2018) https://internetofthingsagenda.techtarget.com/blog/IoT-Agenda/Living-on-the-edge-Why-IoT-demands-a-new-approach-to-data
[13] Andreessen Horowitz (2016) https://a16z.com/2016/12/16/the-end-of-cloud-computing/
[14] Transparency Market Research (2017) https://www.transparencymarketresearch.com/edge-computing-market.html
[15] SysGen (2017) https://sysgen.ca/cloud-vs-in-house-servers/
[16] Gartner (2017) https://www.gartner.com/smarterwithgartner/what-edge-computing-means-for-infrastructure-and-operations-leaders/
[17] Bowery Capital (2016) https://bowerycap.com/blog/insights/4-impacts-edge-computing/
[18] Hubraum (2017) https://www.slideshare.net/hubraum_iotacademy/edge-computing-and-5g-a-powerful-digital-mix-for-iot-ait-83646157
[19] HPE (2018) https://www.hpe.com/us/en/insights/articles/iot-analytics-strategy-cloud-edge-or-both-1803.html