DEV Community

Daksh Ranjan Srivastava
Daksh Ranjan Srivastava

Posted on

Cloud vs Edge vs Local Architecture (Use-Case: Security Camera).

1. Cloud Computing

How it works:
The camera captures video and streams it to a cloud server. Processing (like motion detection, face recognition, storage) happens in the cloud.

Diagram:

[Security Camera] ---> [Internet] ---> [Cloud Server] ---> [User App]
Enter fullscreen mode Exit fullscreen mode

Pros:
✅ Scalable storage
✅ Powerful AI/ML processing
✅ Accessible from anywhere

Cons:
❌ High latency (delays in alerts)
❌ Requires strong internet connection
❌ Privacy risks (data stored in cloud)

2. Edge Computing
How it works:
The camera or a nearby edge device (router/gateway) does the processing (motion detection, AI inference). Only relevant data or alerts are sent to the cloud.

Diagram:

[Security Camera + Edge Processor] ---> [Filtered Data/Alerts] ---> [Cloud / User App]

Enter fullscreen mode Exit fullscreen mode

Pros:
✅ Low latency (faster alerts)
✅ Reduced bandwidth (only key data sent)
✅ Better privacy (raw video stays local)

Cons:
❌ Higher hardware cost
❌ Limited processing power compared to cloud
❌ Still needs internet for remote access

3. Local Computing
How it works:
All processing and storage happen within the camera or a local DVR/NVR. Users connect via LAN or directly to the device.

Diagram:

[Security Camera + Local Storage/Processor] ---> [User (LAN/Direct)]
Enter fullscreen mode Exit fullscreen mode

Pros:
✅ Very fast response (no internet needed)
✅ Maximum privacy (data stays local)
✅ Works even without internet

Cons:
❌ Limited storage (hard drive fills up)
❌ No remote access without setup
❌ Limited AI features compared to cloud

Comparison Table

| Feature             | Cloud                  | Edge                           | Local                |
| ------------------- | ---------------------- | ------------------------------ | -------------------- |
| Latency             | High (due to internet) | Low                            | Very Low             |
| Storage             | Virtually unlimited    | Limited (depends on edge node) | Limited (local disk) |
| Privacy             | Lower                  | Medium                         | High                 |
| Internet Dependence | High                   | Medium                         | Low                  |
| Cost                | Subscription-based     | Higher hardware cost           | One-time device cost |
Enter fullscreen mode Exit fullscreen mode

✅ Summary:

Use Cloud if you want scalability and remote access everywhere.

Use Edge if you need fast AI decisions (motion alerts, face detection) with reduced bandwidth.

[https://dev-to-uploads.s3.amazonaws.com/uploads/articles/am5n4ap26j4kdujxw92w.png]
[https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hcacd96i00vrr0j9cd0m.png]

Top comments (0)