If you’re developing an IoT device, odds are that you want it to do some valuable computations to solve an important problem. Maybe you want to deploy sensors in remote locations, develop a device that can perform data analytics to monitor a renewable energy source, or build a medical device that can use computer vision to detect early signs of an illness.
'Edge computing can be ideal in cases where your customer needs response times from your device to be faster than what can be achieved with a decent network connection.' -MistyWestClick To TweetWhatever you are building, at some point you may start to wonder: should your device perform these important computations in the cloud or at the edge? Choosing between computing on the cloud or on the edge is a decision that can impact things like your device’s cost or efficiency – and no one wants to make the wrong decision initially and spend time and money later down the line to pivot to the correct one.
What is Cloud Computing?
The “cloud” refers to the collection of servers that can be accessed over the internet – popular cloud providers include Amazon Web Services, Microsoft Azure, and Google Cloud.
These servers can provide on-demand computing resources to store and process data. You can think of the cloud as a centralized location for your files and programs, and you can connect any device to the cloud to access them. Services like Dropbox or Google Drive are some of the many cloud-based services out there.
Cloud computing describes the idea of performing computations in the cloud. These computations can include data analysis and visualization, computer vision, and machine learning. An example of cloud computing in action is when your average smart home speaker sends your audio input to the cloud where it is interpreted by algorithms and sends back a response.
What is Edge Computing?
The edge describes the “edge” of the network. It includes devices that are an entry/exit point to the cloud but are not part of the cloud itself. For example, a server in a data center is part of the cloud; the smartphone and router that connect to that server are part of the edge.
Edge computing describes the idea of performing computations on the edge. This way, the processing is done closer to or at the location where the data is collected or acted upon.
An example of an edge computing process is object detection on an autonomous vehicle. The vehicle processes data from its sensors and uses the results to avoid obstacles. Unlike your smart home speaker, the data it collects is processed locally rather than sent to the cloud.
Key Considerations
There are a couple of key questions to consider when choosing between edge and cloud computing.
What is the Quality of Your Device’s Network?
Performing computations on the cloud can work well when you have a high-bandwidth, low-latency, and stable connection to the internet, as you will be needing to send your data back and forth between cloud servers and your device. If your device is intended to be used, for instance, in a home or office with a good internet connection, this back and forth can be done relatively seamlessly.
In most cases, if the computation is done on the edge, it won’t be affected by poor or lost internet connection in a remote location; the processing can continue since it is not computed in the cloud. You wouldn’t want your vehicle’s object detection to stop working while on a long road trip; that’s one of the reasons why autonomous vehicles frequently perform computations like object detection on the edge.
How Quickly and How Often Does Your Data Need to be Processed?
Edge computing can be ideal in cases where your customer needs response times from your device to be faster than what can be achieved with a decent network connection, such as monitoring vital components of a system. The latency of the travel time between the device and the cloud can be reduced or eliminated completely. As a result, the data can be processed right away. If the data processing itself is quick, you could achieve real-time responses from your device.
Cloud computing is beneficial when device use is intermittent. Smart home devices are a good example of this again, where running computations in the cloud lets you share the same computing resources between multiple customers. This reduces costs by avoiding the need to provision your device with upgraded hardware to run the data processing.
What Part of Your Data is Important to You?
Computing on the edge is useful if you only care about the result of your data after it has been processed. You can send only what is important to store in the long-term in the cloud, and doing so will allow you to reduce the cost of storing and processing data in the cloud. For example, if you are creating a traffic surveillance device that needs to report levels of congestion on a road, you could pre-process the videos on the edge – instead of running hours of raw video in the cloud – and only send images or clips of the traffic when it is present.
It’s possible you need to keep the data to build out your machine learning dataset or you plan on analyzing the raw data in other ways in the future. If you are already sending your raw data to the cloud, it may be ideal to perform calculations in the cloud as well.
What are Your Devices’ Power and Size Limitations?
If you expect your device will be restricted in power and size, given that it has a good network connection, sending the computing work to be done on the cloud will allow your device to remain small and low-power. Google Home and Amazon Alexa, for example, will capture the audio and send it to the cloud for processing, allowing complex computations to be run on the audio that would not be possible to run on the small computers inside the devices themselves.
Is Your Data Processing Model Your Intellectual Property?
If you are making a consumer device and the method you are using to process data is part of your Intellectual Property (IP), you may need to consider how you plan to protect it. Putting your IP on your device without a robust security plan can leave it vulnerable to hacks. If you don’t have the knowledge or resources to secure your IP on the edge, it may be best to leave it on the cloud, which already has security measures in place.
Final Considerations for Choosing Between Edge and Cloud Computing
There are quite a few things to consider when choosing between computing on the edge or in the cloud. In complex problems, you may benefit from using a combination of both by leaving some parts of your processing on the edge and the rest on the cloud.
Tweet
Share
Share
- Connectivity
- Cloud Software
- Data Analytics
- Edge Computing
- Machine Learning
- Connectivity
- Cloud Software
- Data Analytics
- Edge Computing
- Machine Learning