The invention relates to a lightweight micro-
service framework implementation method for an embedded platform, which is divided into three parts, namely a lightweight runtime environment, a
dynamic resource management system and lightweight service communication
middleware, and is specifically implemented as follows: the lightweight runtime environment is responsible for life cycle management of micro-services, provides a uniform
configuration management mechanism, and is used for managing the life cycle of the micro-services; a log is recorded and is responsible for monitoring; the lightweight inter-service communication
middleware is a low-overhead
remote procedure call (RPC) protocol; the
middleware adopts a compact
message format and a binary coding format; according to the
dynamic resource management system, the micro-service instances are dynamically loaded and unloaded on an embedded platform according to needs,
resource utilization is optimized, and the overall performance of the
system is improved. The problems of high
resource consumption, long starting time and low communication efficiency of the application of the micro-service architecture in the
embedded system are solved, the efficient operation of the micro-service in the
embedded system is realized, and the performance, the stability and the
usability of the
system are also remarkably improved.