A systematic comparison of running on the device and in the cloud: latency, bandwidth, privacy, cost and reliability.
Beginner9 min read
Educational draft content that needs expert review before it is used as an academic reference. Specifications, versions and licences change; check the official source. No experimental result is shown here unless it was actually run.
Learning objectives
Compare edge and cloud on five axes
Compute total latency for each option
Describe the hybrid system and when it is used
Neither option is always better; the decision balances conflicting factors. Total latency in the cloud = upload time + server inference time + return time, and it depends on network quality. On the edge latency is the local inference time only, which depends on the device’s power.
Bandwidth: sending full video or audio is expensive while sending a small result is cheap. Privacy: keeping sensitive data on the device lowers transport and storage risk but does not remove the need to secure the device itself. Cost: the cloud is a recurring operating cost; the edge is upfront hardware plus maintenance and updates.
Reliability: the edge works without a network, but updating models on thousands of devices is a real engineering challenge. In practice many systems are hybrid: a small local model filters and the cloud handles the hard cases.
Diagram
Schematic, not a measurement.
Terminology (with Arabic equivalents)
Round-trip time (RTT)
زمن الذهاب والعودة
Hybrid
نظام هجين
Offloading
تفريغ الحمل إلى السحابة
Break-even
نقطة التعادل
Worked example
Assume (teaching defaults only): a 200 KB image, a network with 8 Mbps upload and a 60 ms RTT, cloud inference of 20 ms, and on-device inference of 90 ms. Cloud latency ≈ 200×8/8000 s = 200 ms sending + 60 + 20 = 280 ms, while the device takes 90 ms. The result changes if the network or the device changes; try the interactive calculator.
Shi et al. (2016). Edge Computing: Vision and Challenges. IEEE Internet of Things JournalNot verified
Image and audio processing in the experiments runs inside your browser. Your images and audio are never uploaded and conversations are not stored. Privacy
Assistant Professor of Artificial Intelligence and Deep Learning
University of Al-Qadisiyah
About
Researcher and academic specialising in artificial intelligence (AI), deep learning, computer vision and natural language processing (NLP). The “Deep Learning in Arabic” project aims to enrich Arabic scientific and technical content with sound, free references and software for researchers and learners across the Arab world.
Edge AI Assistant
I am the Edge AI Assistant. Ask about a concept, technology, board or project and I will answer from the lab content with links.
Edge AI Assistant
Local Database Mode
Answers from the lab knowledge base only, without sending your question to any external party. Conversations are not stored.
Smart assistant
Answers from the site’s content
The assistant can make mistakes, so check the attached sources.
Welcome! I am Dr. Alaa Taima, and this is my smart assistant on “Deep Learning in Arabic”. Ask it about any term or topic in artificial intelligence, and it will answer from the site's content with links to the sources.
DL Bot
Your smart assistant · Connecting…
Enter to send · Shift + Enter for a new line · The assistant can make mistakes, so check the sources.