小程序
传感搜
传感圈

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

参考译文
边缘与云计算:哪种解决方案更适合您的连接设备?
如果您正在开发一个物联网设备,您很可能希望它进行一些有价值的计算,以解决一个重要的问题。也许你想在偏远地区部署传感器,开发一个可以执行数据分析的设备来监测可再生能源,或者建造一个可以使用计算机视觉来检测疾病早期迹象的医疗设备。无论你在构建什么,在某些时候你可能会开始思考:你的设备应该在云还是在边缘执行这些重要的计算?在云计算和边缘计算之间进行选择是一个会影响设备成本或效率的决定——没有人希望一开始做出错误的决定,然后花时间和金钱来转向正确的决定。“云”指的是可以通过互联网访问的服务器集合——流行的云提供商包括Amazon Web Services、Microsoft Azure和谷歌cloud。这些服务器可以提供按需计算资源来存储和处理数据。您可以将云看作是您的文件和程序的集中位置,并且您可以将任何设备连接到云来访问它们。像Dropbox或谷歌Drive这样的服务是许多基于云计算的服务中的一部分。云计算描述了在云中执行计算的思想。这些计算可以包括数据分析和可视化、计算机视觉和机器学习。云计算应用的一个例子是,普通的智能家居音箱将音频输入发送到云端,由算法解析并返回响应。边缘描述了网络的“边缘”。它包括的设备是云的入口/出口点,但不是云本身的一部分。例如,数据中心中的服务器是云的一部分;连接到该服务器的智能手机和路由器是边缘的一部分。边缘计算描述了在边缘上执行计算的思想。这样,处理就在更接近收集数据或处理数据的位置进行。一个边缘计算过程的例子是自动驾驶汽车上的目标检测。车辆处理来自传感器的数据,并利用结果来避开障碍物。与你的智能家用音箱不同,它收集的数据是在本地处理的,而不是发送到云端。在选择边缘计算和云计算之间有几个关键问题需要考虑。当您拥有高带宽、低延迟和稳定的互联网连接时,在云上执行计算可以很好地工作,因为您将需要在云服务器和设备之间来回发送数据。例如,如果你的设备打算在有良好互联网连接的家庭或办公室中使用,这种来回切换可以相对无缝地完成。在大多数情况下,如果计算是在边缘进行的,它不会受到远程位置的网络连接差或丢失的影响;处理可以继续,因为它不是在云中计算的。在长途旅行中,你肯定不希望你的车辆的物体检测系统停止工作;这就是自动驾驶汽车经常进行边缘物体检测等计算的原因之一。当您的客户需要设备的响应时间比使用适当的网络连接(例如监视系统的重要组件)更快时,边缘计算可能是理想的选择。设备和云之间的旅行时间延迟可以减少或完全消除。因此,可以立即处理数据。如果数据处理本身是快速的,您可以实现实时响应从您的设备。 当设备间歇性使用时,云计算是有益的。智能家居设备也是一个很好的例子,在云计算中运行计算可以让多个客户共享相同的计算资源。通过避免为您的设备提供升级的硬件来运行数据处理,这降低了成本。如果您只关心数据处理后的结果,则边缘计算是有用的。您可以只发送需要长期存储在云中的重要数据,这样做可以降低在云中存储和处理数据的成本。例如,如果你正在创建一个交通监控设备,它需要报告道路上的拥堵程度,你可以在边缘对视频进行预处理——而不是在云端运行数小时的原始视频——只在交通状况出现时发送图像或视频剪辑。你可能需要保留这些数据来构建你的机器学习数据集,或者你计划在未来以其他方式分析原始数据。如果您已经将原始数据发送到云中,那么在云中执行计算可能是理想的。如果您认为您的设备在功耗和尺寸方面会受到限制,但前提是它有良好的网络连接,那么将要在云上完成的计算工作发送给您的设备将允许您的设备保持小型和低功耗。例如,谷歌Home和亚马逊Alexa将捕捉音频并将其发送到云端进行处理,这样就可以在音频上运行复杂的计算,而这是设备内部的小型计算机无法运行的。如果您正在制作消费设备,并且您用于处理数据的方法属于您的知识产权(IP)的一部分,您可能需要考虑如何计划保护它。把你的IP放在你的设备上,而没有一个强大的安全计划,可能会让它很容易被黑客攻击。如果您没有知识或资源来保护您的IP安全,那么最好将其放在云上,因为云上已经有了安全措施。在选择边缘计算还是云计算时,有很多事情需要考虑。在复杂的问题中,通过将处理的一部分放在边缘上,其余的部分放在云上,您可能会受益于两者的结合。
您觉得本篇内容如何
评分

评论

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

提交评论

iotforall

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

关注

点击进入下一篇

2022广东佛山国际工业互联网及工业通讯展览会

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