| With the advent of the industrial information age,cloud platforms have gradually been widely used in various industries.Based on virtualization technology,the platform provided users with various services,which can be used by users after accessing the cloud platform through the client or web page.In the field of industrial automation,real-time status data of equipment is collected through a large number of different types of sensors,and massive data is stored and analyzed to realize the monitoring and maintenance of equipment,which is of great significance to factory equipment.However,with the increase in the number of users and the continuous improvement and diversification of functional modules,traditional cloud platform servers are prone to problems such as high coupling,performance degradation,and slower development and testing speed.Therefore,a reasonable solution needs to be selected to optimize the server-side of cloud platform.This paper aims at some shortcomings of building a single application under the cloud platform,the factory equipment monitoring platform is designed and implemented based on the microservice framework,which guarantees the reliability,scalability and fault tolerance of the system to a certain extent through related functional components.First,with the help of the microservice framework Spring Cloud,the overall design of the platform system is completed,which is mainly divided into access layer,business layer,service governance layer and persistence layer.Next,this paper specifically designs and implements the various functional modules of the cloud platform server-side.In the network module,Spring Cloud Feign components and Kafka message middleware are used to design and implement the synchronous and asynchronous invocation methods between different services.The service gateway at the access layer uses the component of Spring Cloud Gateway to implement routing and forwarding of service requests.At the same time,Spring Security and OAuth2.0 are used to perform security authentication and resource filtering for service permissions.In view of the unbalanced load of the back-end server cluster when the amount of access requests is large,a dynamic adaptive load balancing algorithm is designed to realize the load balancing of the server cluster by collecting the performance parameter data of the back-end server nodes.According to the functional characteristics and business boundaries of the business layer,the corresponding splitting is carried out to obtain factory information management services,sensor general configuration services,warning trigger services,and real-time monitoring services.Each service can be independently developed,deployed,and operated.For the dataset collected by the sensors on the equipment,the remaining useful life of the equipment can be analyzed by integrating machine learning algorithm in the system to achieve the purpose of monitoring and maintenance.The service governance layer uses core components of Spring Cloud to simplify the microservice management and development process,realizes service registration management through Eureka,combined with Spring Cloud GateWay and Hystrix to realize the fuse current limit of the service requests,and Spring Cloud Config completes the unification of microservice dependency configuration Management,Spring Cloud Sleuth and Zipkin realize service link tracking and monitoring.Finally,this thesis conducted functional and performance tests on the newly designed platform system scheme.The test results show that the use of microservice architecture can solve the problems of high coupling,performance degradation and slow testing in the traditional single service architecture to a certain extent,and has certain feasibility and reference significance. |