WASM Microservices for Edge AI Data Processing
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current approaches to real-time AI-assisted data processing on edge devices face limitations such as high bandwidth requirements for data transfer to the cloud, security concerns, limited resource constraints, and lack of customization and scalability to meet specific use case requirements.
Innovation Solution
A modular microservices architecture in WebAssembly (WASM) is implemented, allowing for the creation of microservice modules for real-time data processing on edge devices, which are compiled into bytecode format and deployed in a WASM runtime environment, enabling flexible and scalable AI-assisted data processing with modules for machine learning, data streaming, database management, and peer-to-peer networking.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If data is transferred from edge devices to the cloud for AI model training, then AI models can be updated regularly, but bandwidth requirements increase and connectivity challenges arise
Solution Approach 1:
The system segments the monolithic software into modular microservices that can be independently updated and deployed. Each microservice can be trained and updated separately using federated learning, eliminating the need to transfer large datasets to the cloud while maintaining model update capabilities.
Solution Approach 2:
The edge device performs AI model training locally using federated learning, where multiple edge devices contribute gradients or model updates without sharing raw data. This self-service approach enables continuous model improvement while keeping data processing at the edge, reducing bandwidth requirements.
2Ease of manufacture
If traditional monolithic software is used on edge devices, then implementation is straightforward, but customization and scalability are limited
Solution Approach 1:
The software is divided into independent microservices that can be selectively deployed and customized based on specific use case requirements. Each microservice encapsulates a specific functionality, allowing flexible composition and scaling without affecting the entire system.
Solution Approach 2:
The microservice architecture provides universal interfaces and standardized communication protocols that allow the same framework to support multiple different functionalities and use cases. Microservices can be reused across different applications, enhancing versatility while maintaining ease of implementation.
3Speed
If AI computations are performed on edge devices, then real-time processing speed increases, but resource constraints become more challenging
Solution Approach 1:
Computational tasks are segmented into separate microservices that can be executed independently and parallelized. This allows efficient utilization of limited edge device resources by distributing computational load across multiple specialized services rather than requiring a single resource-intensive monolithic system.
4Reliability
If manual software updates are performed on edge devices, then security measures can be implemented, but update complexity increases significantly
Solution Approach 1:
Software updates are segmented into individual microservice updates rather than requiring full system reinstallation. Each microservice can be independently updated, validated, and deployed, significantly reducing update complexity while maintaining security through incremental verification.
Solution Approach 2:
The system implements automated update mechanisms where microservices can self-update and self-validate security measures. The modular architecture enables automated dependency resolution and conflict detection, reducing the complexity of manual security updates.
Data Source
AI summary
A method and system for real-time AI-assisted data processing on edge, where the method includes creating a set of microservice modules for real-time data processing on an edge device, compiling the set of microservice modules into a bytecode format for implementation in a WebAssembly (WASM) runtime environment, and embedding the compiled microservice modules on the edge device configured to provide the WASM runtime environment. The compiled microservice modules include at least one microservice module configured to implement real-time data processing on a live data stream collected from one or more sensors included in the edge device.


