Yangzhou Langxu Lighting Technology Co., Ltd.

全国客户统一服务热线:

18944481288

Banner
Home > news > Content
新闻详情

Design and implementation of a smart streetlight management platform based on microservice architecture

Abstract: With the rapid development of smart city construction, a group of things characterized by wisdom, environmental protection and energy conservation Networked applications are rapidly developing. Smart street lights are one of the typical applications. The construction of their platforms is especially important. However, the variety of business functions and the huge system scale bring new challenges to platform construction. This paper combines the latest RESTful interface technology, API gateway technology, Kafka message communication mechanism and ZooKeeper configuration center to propose the overall design scheme of smart street lamp management platform based on micro-service architecture to enhance the usability, scalability and scalability of the platform. The purpose of the automated configuration run. Finally, the feasibility and application value of the platform are proved by practical application, and the value of reference for other smart city projects is provided.

1 Introduction

The current "Smart City" project is in full swing in every major city, aiming to be ubiquitously implanted into various buildings in the city through the network. Intelligent sensors are connected to form the Internet of Things to achieve a comprehensive perception of the physical city [1]. The urban street lighting system has the largest number of urban facilities, and its development role in the “smart city” is very important. Traditional street lamps have been artificially controlled by lighting, and their application is single and urgently needed to be improved. The "Smart Street Lamp" project is born on this basis [2]. The design of this platform is mainly to meet the intelligent control of street lighting time, as well as the collection and display of street lamp monitoring data and the application of other subsystems

[3]. Due to the large number of business functions and the large scale of the platform, the overall single architecture is difficult to cope with the unified technology stack, the deployment is complex, and the amount of concurrency is insufficient. The platform will be implemented by applying the latest micro-service architecture. Through the collection and analysis of the implementation experience of this project, the system design verification of the system is carried out to meet the needs of other “smart city” project construction in the future, achieving the requirements of ease of use, stability, high performance and easy expansion. Microservice Architecture Technology is an architecture technology that reasonably decomposes business functions into several separate service subsystems. The basic idea of microservices is to create applications by building around the business domain components, each of which can be managed, developed, and accelerated independently. The use of a microservice cloud architecture and platform in distributed components makes it easier to manage, deploy, and service functions of the system

[4] .

To use the microservices architecture to implement the entire system, it needs to be disassembled according to functional requirements and decomposed into independent service subsystems. Considering application development deployment, technology selection, deployment difficulty, scalability, etc.:

First, the complexity problem is solved for multiple microservice methods by decomposing system functions. With the system functionality remaining the same, the application is split into multiple manageable services or branches, each with a clearly defined boundary with the

API. The microservice architecture model provides a separate, modular solution for decomposed functionality, so a single service is easier to develop, understand, and maintain.

Secondly, the microservices architecture allows each individual service to be developed by a dedicated developer. During the development process, developers are free to choose development techniques and provide API services. Of course, developers can choose between current technology or advanced technology in a range of specific technology options.

Third, this architectural pattern is an independent deployment of each microservice. Because of the independence of the deployment, developers will no longer need to consider the impact of other service deployments when deploying the service. This speeds up deployment and makes continuous deployment possible. Finally, this architectural model facilitates the independent expansion of each service. Developers can scale to meet business needs based on the size of each service, or deploy in parallel. Of course, there are also shortcomings in the microservice architecture. The biggest problem is that developers need to clearly understand the interprocess communication mechanism between service modules and choose the appropriate communication method. In addition, application testing tasks based on micro-service architecture are relatively complex, and single micro-service testing is relatively simple. When interfaces are combined by function, the complexity will increase geometrically, but this can be mitigated by automated testing and deployment [5] ].

3 System Design

3.1 System Requirements Analysis

Smart Street Lights by Extending Controllers and Sensing Devices on Traditional Street Light Poles, Existing Urban Street Lights By upgrading, it is convenient and quick to establish an information-aware network with a wide coverage [6]. The schematic diagram of the specific smart streetlight integrated system architecture is shown in Figure 1.

shown in Figure 1 The smart street light is mainly composed of four parts: sensing device, street lamp controller, regional controller and management platform. Through the interaction of these four parts, the smart street lamp can complete wireless WIFI, intelligent lighting, dynamic ring monitoring, LED screen, real-time Monitoring, charging pile and one-button alarm and more.