Edge Vs. Cloud Computing: Which Solution Is Better For Your Connected Device?

2022-08-09
关注

Illustration: © IoT For All

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 Tweet

Whatever 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.

https://www.mistywest.com/posts/edge-vs-cloud-computing-which-solution-is-better-for-your-connected-device/

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

Email

  • Connectivity
  • Cloud Software
  • Data Analytics
  • Edge Computing
  • Machine Learning

  • Connectivity
  • Cloud Software
  • Data Analytics
  • Edge Computing
  • Machine Learning

参考译文
边缘与云计算:哪种解决方案更适合您的连接设备?
图解:© IoT For All → 如果你正在开发一个物联网设备,那么十有八九,你希望它能完成一些有价值的计算,以解决重要的问题。或许你想要在偏远地区部署传感器,开发一种设备,可以进行数据分析以监控可再生能源,或者构建一种医学设备,能够使用计算机视觉来检测疾病的早期迹象。“边缘计算在客户需要设备的响应速度比良好网络连接所能实现的还要快的情况下可能尤为理想。”——MistyWest点击推文 无论你正在构建什么,迟早你可能会开始思索:你的设备应该在云中进行这些重要的计算,还是在边缘?在云和边缘之间做出计算选择,是一个可能会影响设备成本和效率的决定——没人希望一开始就做出错误的决定,之后还要花费时间和金钱去调整到正确的方向。 什么是云计算? “云”指的是可以通过互联网访问的一组服务器——流行的云服务提供商包括亚马逊云服务(Amazon Web Services)、微软Azure和谷歌云(Google Cloud)。这些服务器可以提供按需计算资源来存储和处理数据。你可以将云看作是文件和程序的集中式存储地点,任何设备都可以连接到云以访问这些资源。Dropbox或Google Drive这样的服务就是众多云服务中的例子。云计算描述的是在云中进行计算的概念。这些计算可以包括数据分析和可视化、计算机视觉和机器学习。比如,普通智能音箱在听到语音输入时,会将音频输入发送到云中,由算法进行解析,然后返回响应,这就是云计算的一个实例。 什么是边缘计算? “边缘”指的是网络的“边缘”。它包括那些作为进入/退出云的入口/出口点的设备,但这些设备本身并不属于云的一部分。例如,数据中心中的服务器是云的一部分,而与该服务器连接的智能手机和路由器则属于边缘设备。边缘计算描述的是在边缘进行计算的概念。这样,数据的处理就更接近于数据采集或应用的地点。一个边缘计算的实例是自动驾驶汽车上的物体检测。车辆会处理来自传感器的数据,并利用这些结果来避开障碍物。不像智能音箱,这些数据是在本地处理的,而不是发送到云中。 关键考虑因素 在云计算与边缘计算之间进行选择时,有几个关键问题需要考虑。你设备的网络质量如何?当你拥有高带宽、低延迟和稳定的互联网连接时,云计算可以运作良好,因为你需要在设备和云服务器之间来回传输数据。如果你的设备打算用在家中或办公室等有良好网络连接的地方,这种来回传输可以相对顺畅地进行。 在大多数情况下,如果计算是在边缘进行的,那么即使在偏远地区网络质量差或中断,也不会受到影响;因为处理在本地进行,数据处理仍可继续。你不希望车辆在长途旅行中,其物体检测功能因失去网络连接而停止工作;这也是为什么自动驾驶汽车经常在边缘执行物体检测等计算任务的原因之一。 你的数据需要多快和多频繁地被处理? 在客户要求设备响应速度比良好网络连接所能实现的更快的情况下,边缘计算可能是理想的选择,例如监控系统的关键部件。设备与云之间的通信延迟可以被减少甚至完全消除。因此,数据可以立即被处理。如果数据处理本身速度较快,你的设备就可以实现实时响应。 云计算在设备使用间歇性的情况下是很有益的。智能家居设备就是这种使用方式的一个很好例子,通过在云中运行计算,你可以将相同的计算资源共享给多个用户。这可以通过避免为你的设备配备升级的硬件来运行数据处理,从而降低成本。 哪些部分的数据对你重要? 如果你只关心数据经过处理后的结果,那么边缘计算对你来说可能很有用。你可以仅将长期存储的重要部分上传到云中,这样可以减少云中数据存储和处理的成本。例如,如果你正在开发一种用于监控道路交通拥堵的设备,你可以在边缘设备上预处理视频——而不是在云中运行数小时的原始视频——只在交通存在时发送图像或视频片段。你也有可能需要保留这些数据,以便构建机器学习数据集,或在未来以其他方式分析原始数据。如果你已经将原始数据发送到云中,那么在云中进行计算可能是理想的选择。 你的设备在功耗和体积方面有什么限制? 如果你预计你的设备在功耗和体积上受到限制,而它又有良好的网络连接,那么将计算任务发送到云中进行,可以让你的设备保持小巧和低功耗。例如,Google Home和Amazon Alexa会捕捉音频并将其发送到云中进行处理,从而在音频上运行复杂的计算,而这些计算是无法在设备内部的小型计算机上运行的。 你的数据处理模型是否属于你的知识产权? 如果你正在开发消费类设备,并且你用来处理数据的方法是你的重要知识产权(IP),你可能需要考虑如何保护它。在设备上部署你的IP而没有健全的安全计划,会使它容易受到黑客攻击。如果你没有知识或资源来在边缘保护你的IP,那么最好将它保留在云中,因为云本身已经有安全措施。 https://www.mistywest.com/posts/edge-vs-cloud-computing-which-solution-is-better-for-your-connected-device/ 关于在边缘和云之间选择计算的最终考虑因素 在选择使用边缘计算还是云计算时,需要考虑的因素相当多。在复杂的问题中,你可能会从两者的结合中受益:将部分处理放在边缘,另一部分处理放在云中。 推文分享分享邮件 连接性 云软件 数据分析 边缘计算 机器学习
您觉得本篇内容如何
评分

评论

您需要登录才可以回复|注册

提交评论

广告
广告

iotforall

这家伙很懒,什么描述也没留下

关注

点击进入下一篇

正在IPO的公司怎么看智能家居市场

提取码
复制提取码
点击跳转至百度网盘