| The software system has made great progress from single service to microservice system.As a complex software architecture design,microservice architecture system has the characteristics of complexity and distribution,and has gradually developed into the mainstream architecture model.Microservice architecture advocates breaking down traditional system architectures into finer grained microservices,with complex invocation relationships between microservices.If a service encounters an exception,it can affect multiple services,slow down service response,and in severe cases,cause the microservice system to crash.The study of observability in microservice systems has important practical significance for discovering and locating anomalies in microservice systems.This article conducts observability research on performance,anomaly,and security issues in microservice systems.(1)To address the performance issues of microservice architecture software,an observable comprehensive evaluation model for microservices was designed to analyze performance indicators.The microservice system outputs specific log file information,collects,parses,and stores log information using the ELK+Beats framework.The log data is aggregated and processed to display the performance indicators of the microservice system in a visual chart format.Establish an observable comprehensive evaluation model for microservice system performance using mathematical methods,and observe the performance status of the microservice system through the microservice architecture software performance observation indicator Q.Actively send alarm messages to developers when an ERROR error is found.(2)In response to the issue of microservice architecture software anomalies,a microservice system anomaly observation component was designed based on AOP programming technology to intercept and analyze business logic anomalies.This component can intercept the interface request result and exception information thrown by the system runtime.The interface request result exception and exception information thrown by the system runtime will be recorded and persistence to the database.Provide visual information to developers by sending alarm information,and the frequency of sending alarm information can be dynamically set.(3)A SQL injection interception component based on AOP programming technology was designed to address the issue of SQL injection attacks in microservice architecture software,and the behavior of intercepting SQL injection attacks was analyzed.This component can intercept the parameters received by the data operation layer and parse them,judge whether there is an attack according to the characteristics of the SQL injection attack,and record the injection attack to the database persistence.Provide SQL injection attack visualization information by sending alarm information to operation and maintenance personnel,and dynamically set whether to allow SQL statements with injection risks to continue executing. |