DYAP 0184 min read + 15–25 min practice

Cloud, Edge and On-Device AI

My DYAP →

Where an AI model runs—cloud, edge device or directly on a user’s device—changes latency, privacy, cost, reliability and available computing power.

Editorial learning illustration for Cloud, Edge and On-Device AI
Visual guide · Use the flow from inputs and evidence to models, outputs and human decisions.

What you will be able to do

  • Explain cloud, edge and on-device ai accurately in your own words.
  • Recognise how the concept appears in real AI products and professional work.
  • Identify an important limitation, risk or evaluation requirement.
  • Apply the concept through a practical activity and knowledge check.

Build the right mental model

Cloud AI offers scalable computing and centralised updates. It is suitable for large models but requires connectivity and transfers data to remote infrastructure. Edge AI runs near the data source, such as a gateway or factory server. On-device AI runs directly on a phone, laptop, vehicle or sensor.

Local processing can reduce latency and keep sensitive raw data closer to the user, but devices have limits on memory, energy and processing. Model compression, quantisation and specialised hardware help.

Many systems are hybrid: immediate detection happens locally while aggregated analysis and retraining happen in the cloud.

Place computation where the task needs it

Cloud processing runs on remote infrastructure reached over a network. Edge processing runs closer to where data is produced or used, such as an on-site gateway. On-device processing runs on the user’s phone, laptop, camera or other endpoint. These are deployment choices, not three different definitions of intelligence. One application can combine them: local filtering, on-site analysis and periodic cloud training.

The right location depends on response time, connectivity, hardware, data handling and operational support. A classroom transcription app used with unreliable internet may need local processing. A large batch analysis performed overnight may tolerate network delay and benefit from central compute. Start with the user’s failure conditions instead of assuming that cloud is always stronger or local is always safer.

Account for the complete delay and data path

End-to-end latency includes capture, preprocessing, transfer, queuing, inference and delivery of the result. A model that computes quickly can still feel slow if a large file must be uploaded first. Conversely, local inference on weak hardware can be slower than a well-connected remote service. Measure the actual workflow under relevant conditions rather than comparing only advertised model speed.

Data remaining on a device can reduce particular transmission risks, but local software still needs access controls, updates and secure storage. Cloud services can offer central management, but their retention, location and permission arrangements require review. “Offline” is not a complete privacy policy, and “encrypted” does not specify who can access data after decryption.

Plan deployment as an operational responsibility

Edge systems need monitoring and a way to deliver updates. A hundred classroom devices may each run a different model version unless updates are managed. Record the version and configuration used for important results, and define what happens when a model update fails. A rollback plan is part of reliability, not an optional final detail.

Consider degraded operation. If a network link disappears, should the system queue a job, show a clear unavailable message or use a simpler local function? A safety-critical action must not silently use stale or incomplete information. For a learning tool, a readable explanation that analysis is unavailable may be more useful than a guessed result.

01

Cloud inference

A remote hosted service runs the model.

02

Edge inference

Processing occurs near the data source.

03

On-device AI

The end-user device executes the model locally.

04

Quantisation

Reducing numerical precision to make a model smaller and faster.

Illustrative example

Worked example: a fictional document camera workflow

A workshop camera produces a 4-megabyte image. Assume 8 bits per byte, ignore protocol overhead and use a sustained upload rate of 8 megabits per second. The image contains 32 megabits, so upload alone takes 32 ÷ 8 = 4 seconds. If remote processing and the return response take another second, the simplified total is about 5 seconds before capture and queuing delays.

Suppose local processing takes 2 seconds on the available device. It is faster in this particular example, but the numbers are hypothetical and say nothing about all local or cloud models. At an upload rate of 40 megabits per second, the same transfer takes 0.8 seconds; adding the assumed one-second remote step gives 1.8 seconds.

The architectural decision must still consider quality and data handling. A local system that cannot read small text accurately may be unsuitable despite its speed. A remote system may require transmitting material that the workshop is not authorised to send. A hybrid design could crop a relevant public diagram locally and upload only that region, if permitted.

Document the assumptions: file size, sustained throughput, processing delay, permitted data and the quality criterion. A timed demonstration without those details is hard to reproduce and easy to overgeneralise.

Practical activity

  1. Spend 5 minutes defining a fictional image-analysis task and a maximum acceptable response delay.
  2. Spend 5 minutes comparing local, edge and cloud options using connectivity, accuracy, privacy and maintenance as separate criteria.
  3. Spend 5 minutes calculating upload time for a 6-megabyte image at 12 megabits per second, ignoring overhead.
  4. Spend 5 minutes specifying the user-visible behaviour during a network outage and a failed model update.
Compare with an explained example answer

Six megabytes contain 48 megabits under the stated convention. At 12 megabits per second, upload takes 4 seconds before other delays. Do not confuse megabytes with megabits or present this idealised calculation as measured network performance.

A suitable design might use local reading for a public practice worksheet and queue optional cloud analysis when offline. A failed update should leave a known working version available or disable the affected function with a clear message. The preferred location depends on the actual requirements; a well-explained tradeoff is a stronger answer than declaring one architecture universally best.

Write your answers in a learning journal. The value comes from connecting the concept to your own profession.

Test your understanding

Q1Is edge AI necessarily running on the end user’s device?

Answer: No. It may run on a nearby gateway or on-site server. On-device processing is one specific location near the data source.

Q2Why is model inference time not the whole response time?

Answer: Capture, preprocessing, transfers, queuing and result delivery also contribute. Network conditions can dominate a remote workflow.

Q3Does local processing eliminate privacy risk?

Answer: No. It may avoid a transmission, but local permissions, retention, device security and software behaviour still matter.

Reflection

If you cannot explain the answer without reading it, revisit the core explanation and example before continuing.

Important industry resources

These links lead to official organisations, industry laboratories or established open-source learning projects.