While developing cloud video surveillance systems (VSaaS), I eventually arrived at a conclusion that became absolutely clear to me:the classic Cloud-Only model hits a hard technical and economic wall when scaling to hundreds of video streams.
The cloud is excellent at scaling peak and unpredictable workloads and centralizing resource management — that is its strength. But video surveillance is not transactional data or IoT telemetry with discrete packets of a few kilobytes. Video is a continuous stream, and a single 4K camera generates up to 8–12 Mbps constantly, 24/7, 365 days a year. Multiply that by 250 cameras at a large facility — and you get hundreds of terabytes per month that need to be transmitted, processed, and stored. No other IoT vertical creates such pressure on data channels and storage.
This may be obvious to some, but for me at the time it was a genuine revelation.
Today, when the cloud has become the default answer to many infrastructure challenges, it is easy to forget its flip side: along with the convenience of elastic scaling and centralized management, it brings significant overhead costs.
Traffic and Bandwidth
Continuous video streams from hundreds of high-resolution cameras instantly saturate network links and demand constant expansion of network infrastructure.
Network Latency
Round-tripping data to the cloud and back adds delays that are unacceptable in scenarios where the system must react instantaneously.
Cloud AI Overload
Analyzing every frame with neural networks in the cloud creates enormous compute pressure and requires continuous rental of expensive GPU capacity.
Storage Economics
Paying for long-term storage of petabytes of video places a heavy burden on the budget, since the vast majority of the archive consists of static ("empty") footage with no events of interest.
In the first half of the 2010s, as cloud solutions were rapidly gaining traction, Edge-First concepts began emerging in the industry (see State of the Edge). The core idea is simple yet radical in its own right: move processing logic and part of the system state (data storage) out of remote data centers and as close as possible to the traffic source. Only the most important information is sent to the central data center for further analysis or storage.
Thus, Edge-First is a distributed system whose topology is chosen toreduce latency in data transmission,improve performance, and enable real-time decision-making. An additional benefit of this approach is reduced load on centralized infrastructure and networks by minimizing the volume of data that must be transmitted over long distances. In a broader sense, Edge-First is an application design philosophy (a global architectural pattern) that requires developers to build local node autonomy and local data processing as the top priority from the ground up, leaving the central cloud with only the role of a global coordinator.
To make well-informed architectural decisions, it is important to clearly understand the distinction between Edge-First and the seemingly similar term Edge Cloud.
In essence, Edge Cloud is cloud computing performed at the network periphery. We move cloud compute resources closer to where data is generated and to end users. In practice, these compute resources are typically so-called serverless functions (FaaS) — executable code that lives and consumes resources only at the moment of activation (e.g., triggered by an event or an HTTP request). In heavier IoT or telecom scenarios, Edge Cloud may be delivered as continuously running containers or virtual machines at the edge. Thus, it is simply an extension of the cloud data model (whether private, hybrid, or multi-cloud). Examples include platforms like Cloudflare Workers, Fly.io, and Vercel Functions.
The fundamental difference is that Edge Cloud does not assume fully autonomous operation when connectivity to the main cloud is lost, and it traditionally does not persist system state on the compute node. Moreover, in most cases the cloud provider itself handles the geographic distribution of these nodes. Because of this, Edge Cloud inevitably falls behind true Edge-First solutions in response time: a cloud edge server resides in the nearest metropolitan data center (ping — tens of milliseconds), whereas an Edge-First node is physically located on the premises — right at the data source (ping under 10 ms).
As early as January 2014, Cisco introduced the term Fog Computing to the IT industry, using an elegant metaphor: "Fog is a cloud that has come down to the ground." Here, an intermediate layer between the cloud and the device is organized as a "fog" node — a physical edge server on the premises. After this concept of an intermediate/local layer gained some traction, IBM and Nokia (as part of the RACS project) introduced a similar term in 2015 — "Edge Computing."This marked the gradual birth of a new paradigm that offered the market a powerful decentralized alternative to the classic Cloud-Only architecture. Today, its ideas have matured and crystallized into the Edge-First approach, harnessing the full power of local autonomy to solve the challenges of distributed systems.
In the context of high-load video surveillance systems, I believe the greatest potential is unlocked precisely through synergy: the performance and autonomy of Edge-First solutions combined with the global availability of the cloud (SaaS) and centralized device fleet management.
A striking confirmation of this synergy's success in the market is AWS IoT Greengrass. Amazon effectively split the system into two parts: it provided the local edge runtime as a free open-source project while retaining a paid cloud subscription for centralized control and fleet management. The pioneer of cloud solutions became the leading pioneer and ambassador of the Edge-First approach.
But Greengrass is not an isolated example. Azure IoT Edge, Eclipse ioFog, EdgeX Foundry, and even Home Assistant all build edge node autonomy on the same proven combination: a local MQTT broker + SQLite for event buffering. These platforms are where you can study battle-tested patterns for communication, autonomy, and context synchronization after connectivity loss — but more on that in the articles on this site.
For a clearer illustration of these ideas, take a look at the block diagram of an On-Edge video system:
<100ms
Access
Here, Edge-First + Edge AI and SaaS + Fleet Management represent a well-designed separation of concerns. All the heavy lifting (analytics and archive storage) is handled by the local Data Plane node right on the premises. The cloud (Control Plane) remains a lightweight tool for global management, orchestration (Fleet Management), data access, and scaling MoQ streams.
💡 The Edge node is a high-performance mini PC (Mini-PC class with a powerful CPU/NPU, e.g., Beelink SER8 series or Minisforum UM880 Pro). The high efficiency of Rust-based software makes it possible to run optimized AI models (e.g., the YOLO26/YOLOE26 family via ONNX Runtime or OpenVINO Runtime) and process hundreds of megabits of video streams on compact consumer-grade hardware.
⚡ The result — savings on bandwidth and resources, high autonomy, and real-time video via MoQ with minimal latency.
Consider a telling scenario — a critical loss of connectivity, which in a Cloud-Only architecture leads to complete system degradation. Under the classic cloud model, archive recording stops and video analytics become unavailable. In an Edge-First architecture, the peripheral node retains full autonomy: the video stream continues to be recorded to the local ring buffer archive, the local AI engine keeps running inference as normal, and alert events are cached in a local queue. Once connectivity is restored, the node automatically synchronizes accumulated metadata and critical video clips with the cloud platform. The system operates without downtime and guarantees processing of 100% of events.
I believe this model will become the architectural standard for high-load distributed systems where autonomy and privacy (Privacy-First) are paramount. And it is in video surveillance that this approach will reach its fullest potential.
My goal in this project is to discover, validate, and establish simple and reliable architectural patterns that can serve as a foundation for building Edge-First video systems.
I see Rust and Media over QUIC (MoQ) as the technological foundation. Rust's speed, memory control, and concurrency allow you to squeeze maximum performance out of local edge hardware (including onboard NPUs). MoQ was designed with the key limitations of WebRTC and SRT in mind and solves the real-time streaming challenge with minimal latency, combining a relatively simple API with easy scalability. This stack is an excellent fit for Edge-First — it makes on-edge video data processing fast and resilient.
Why not WebRTC, not SRT, not plain RTSP? WebRTC is complex, tailored for P2P calls, and scales poorly through relays. SRT is great for broadcast and point-to-point but lacks native multiplexing. RTSP is a legacy of the LAN era: it does not work through NAT without hacks and cannot encrypt data on its own.
MoQ is built on top of QUIC and solves these problems architecturally: it provides 0-RTT reconnection (no extra handshakes), stream multiplexing within a single connection, and — critically for a hybrid Edge-First + Cloud architecture — a relay-native approach where the cloud relay simply forwards MoQ packets without transcoding the video.
This is exactly what is needed: the edge streams, the relay scales, and the viewer gets sub-100 ms latency within the Edge/Relay region of presence without the need to spin up heavy media servers for transcoding. Although the MoQ specification is currently (2026) in its final stages at the IETF (with active participation from Meta, Cisco, and Akamai), the protocol is already de facto recognized as the future of ultra-low-latency streaming.
A common question arises: "How does an Edge node differ from a standard NVR?" The difference is fundamental. A traditional NVR is a passive storage device: its functions are limited to cyclic recording of the video stream to disk and serving it on demand. An Edge node is a full-fledged compute platform. It performs local real-time AI inference, programmatically filters false alarms, streams video over MoQ with sub-100 ms latency, and synchronizes context with the cloud ecosystem. An NVR is just a local archive. An Edge node is a peripheral decision-making center.
Local Intelligence: AI as an Architectural Necessity
But if the Edge node is the center of decision-making, a natural question arises: who exactly makes these decisions and on what basis? A traditional NVR simply detects motion and writes a buffer to disk. An Edge node of the new generation must do something fundamentally different—turn a continuous, semantically "empty" video stream into a structured event stream, where each event carries weight, context, and priority. This is where local AI inference enters the scene not as a marketing add-on, but as an architectural necessity, without which the very idea of Edge-First loses half its meaning.
Consider this: a single camera generates 86,400 seconds of video per day. On average, 90–95% of that is static background, swaying trees, and changing lighting. In a Cloud-Only model, you pay to transfer and analyze all these seconds in the cloud, burning GPU resources on processing emptiness. In the Edge-First paradigm, a local AI engine—the same YOLOv8/v11 running via ONNX Runtime on your Mini-PC’s NPU—acts as an intelligent first-level filter. In real time, it separates signal from noise: detects objects, tracks trajectories, classifies intrusion zones, and what lands on the ring-buffer disk is no longer a raw stream, but an indexed sequence of events with metadata, bounding boxes, and confidence scores. The cloud receives not terabytes of "silence," but compact event segments—and this changes the unit economics of the entire system.
For a long time, split inference was considered an unavoidable architectural compromise—where primary detection was executed on the periphery, while "heavy" secondary analysis was delegated to the data center. However, with the emergence of ultra-efficient next-generation architectures (such as YOLOv26 and YOLOEv26), optimized for hardware execution on modern NPUs and edge accelerators, split inference is losing its relevance and turning into an anti-pattern due to its complexity. Interestingly, the release of YOLOv26 was framed under the slogan: Ultralytics YOLO26: The new standard for edge-first vision AI.
The Edge node no longer needs cloud "crutches": it is capable of performing a full On-Edge visual analysis cycle with latency under 100 ms—from high-precision tracking, segmentation, and LPR (license plate recognition) to spatial classification of complex behavioral patterns. The entire compute load is fully contained within the local Data Plane. What goes to the cloud is neither raw frames nor intermediate tensors, but exclusively finished semantic events and aggregated metadata. The cloud Control Plane is completely freed from video inference and focuses on global coordination, Fleet Management, and long-term cross-site analytics.
This refusal to send frames to the cloud makes the principle of privacy by default (Privacy by Architecture) an absolute reality rather than a compromise. In the context of regulatory requirements like 152-FZ (or GDPR in Europe), the classic model of transmitting video streams with faces and license plates to third-party data centers carries colossal regulatory risks. In a fully local Edge-First architecture, all analysis and de-identification tasks (face blurring, silhouetting, plate anonymization) run on site, before a single byte leaves the physical perimeter of the facility. The position for regulators is crystal clear: all personal and biometric data is processed in isolation on a trusted local node. The system architecture guarantees that confidential information never leaves the protected internal perimeter.
If we look slightly beyond the horizon—and in the video surveillance industry, the horizon is now shrinking to two or three years—the next qualitative leap will occur at the moment of transition from detection to understanding. Today, edge AI draws bounding boxes and labels them: "person", "car", "dog". Tomorrow, edge nodes with sufficiently powerful NPUs will host compact VLM models (such as YOLOEv26) capable of describing a scene in coherent text: "a courier in a yellow jacket left a package at the side entrance and walked toward the parking lot." Combined with local generation of vector embeddings (CLIP, SigLIP) and their synchronization via MoQ into a cloud vector database, this opens up the possibility of semantic search across the video archive. An operator will no longer spend hours scrubbing a timeline in search of an incident—they will ask the system in natural language: "show all moments from the past week when someone approached the perimeter after midnight," and receive an answer in seconds. At that point, VSaaS will cease to be a "remote-access archive" and become a situational awareness system—and this will happen on the edge, not in the cloud, because only a local node has direct access to the full video stream with sub-second latency and zero bandwidth constraints.
Finally, there is one more argument in favor of laying the AI foundation right now, rather than "when a clear business case emerges." I am not claiming that tomorrow every warehouse will feature autonomous AI agents controlling turnstiles and PTZ cameras without human intervention—video surveillance, with its conservative adoption cycles and strict reliability requirements, still has years to go before that. I am talking about the direction of evolution, which is already visible clearly enough to be accounted for in architectural decisions today.
Today, typical AI in VSaaS is a model that answers the question "what is happening in the frame?" and returns a bounding box with a confidence score. This is a model-as-a-tool: a detector, a classifier, a counter. The next logical step is systems that do not merely record an event, but track its evolution over time and respond: detected an unauthorized intrusion into the perimeter—panned the PTZ camera toward the intruder, triggered the siren, generated an incident report, and escalated to the on-duty operator with priority. This is no longer a single inference call, but a closed-loop decision-making cycle (Closed-Loop Decision Making)—even if initially under human supervision and with simple logic, it is architecturally a fundamentally different pattern. And if your Data Plane is designed as a one-way pipeline "frame → model → metadata → storage," embedding such a feedback loop a couple of years down the line could prove difficult. By understanding the direction of technology evolution, we can immediately lay down an extensible event bus, a pluggable enrichment pipeline (semantic enrichment), and an abstraction over actuators (PTZ drives, turnstiles, I/O relays, sirens, etc.), so that closed decision loops fit in natively as just another consumer in an existing event stream.
That is why I am convinced: an Edge-First video system you design today must be ready not only for AI inference, but also for closed loops of autonomous response at the edge (the MAPER approach - Extending MAPE-K with LLM-Based Reasoning)—even if in the first version of the product you simply write an archive and send alerts. Architectural debt in distributed systems is paid with interest, and the earlier you lay down the right abstractions, the cheaper the evolution will be.
Of course, behind this architecture lies a substantial set of challenges. Here are the key ones:
- Heterogeneous environments.A single site may have an x86 server running Ubuntu alongside an ARM box running Yocto, while another has an NVIDIA Jetson GPU accelerator next to a regular Mini-PC. Data Plane code must compile, launch, and behave identically across all these configurations without manual tuning for each piece of hardware.
- Network barriers.The absence of public IP addresses and the inability to forward ports force you to design an architecture around outbound long-lived QUIC sessions that maintain connectivity through NAT and do not break on IP changes or brief jitter.
- Update orchestration.When you have hundreds of geographically distributed edge servers, "SSH in and update" no longer works. You need a reliable OTA pipeline: atomic container delivery, rollback on failure, canary rollout to 5% of the fleet before full deployment — all through cloud-based Fleet Management.
- Security and privacy.Video data and metadata fall under the requirements of Federal Law No. 152 and GDPR, demanding encryption across all layers of the system — from network traffic (mTLS / QUIC) to the local on-disk archive (at rest) and management channels.
Once these challenges are solved, the system simply works — stably, autonomously, and with predictable costs.
This portal is dedicated to finding architectural solutions to these problems. Here I collect my working notes, benchmarks, and hands-on experience.