# Design of Safety Evaluation and Risk Traceability System for Agricultural Product Quality
## 1 Introduction
[14] constructed a traceability system for agricultural chemicals in food based on a monomer architecture to optimize the filtering ability of data categories during automatic storage. RFID tags were used as storage systems to achieve the function of recording and transmitting data in the traceability system. However, due to the limitation that the monomer architecture needs to be deployed as a unified solution with the storage capacity of RFID tags, the designed traceability system is difficult to support high-capacity  
Figure 1: Statistical chart of food safety incidents in China in the past three years. data transmission; [PERSON] et al. [15] aimed to seek the application of RFID technology in the traceability system of perishable food. By analyzing the supply chain of perishable food and combining it with IoT sensors, a traceability system was constructed to effectively trace the source of perishable food. However, the design of the system was limited by the capacity of electronic labels and sensor storage data. Microservice architecture is a distributed system architecture and has the following characteristics: the application system uses microservice architecture according to the business function, technical implementation, etc., and is split into the smallest components; these components are independent of each other but cooperate between themselves to complete a task, where each component or process is a microservice. Most of the traditional agricultural quality and safety traceability systems are built using monolithic architecture or SOA architecture, i.e., service-oriented architecture. Monolithic architectures have the advantage of being easy to develop, test, and deploy, but deploying the entire system program as a unified solution prevents the system's constituent modules from operating independently [16; 17]. When dealing with larger system programs, monolithic architectures are difficult to maintain, and updates to any of the system's constituent modules necessitate retesting and redeploying the entire system program. In addition, monolithic architectures create technology lock-in, where program development of all components must follow the same framework and technology system [18]. The system components under SOA architecture are independent and autonomous, but compared to SOA architecture, microservices architecture pays more attention to the characteristics of high availability, scalability, load balancing, and so on. System programs under microservice architecture run in a highly available distributed environment have better stability and reliability, while the fine-grained nature of microservice architecture improves development efficiency [19]. Nowadays, the traceability system of agricultural quality and safety has many kinds of projects, many user levels, and huge and complex data volume; however, the operation mechanism needs further in-depth study, and the architectural design and management rules also need to be further improved. Heavy metals exceeding the standard is an important factor affecting the quality and safety of agricultural products. In order to improve the quality and safety supervision level of agricultural products and improve the risk traceability efficiency of agricultural products, this paper has designed a quality and safety risk evaluation system for agricultural products, constructed a quality and safety risk evaluation model for agricultural products, and realized a quantitative evaluation of the quality and safety of agricultural products. Based on the six-layer system architecture division, the agricultural product risk traceability system for regulatory authorities, enterprises, and consumers was designed by using information technology, database technology, and a front-end framework. The designed agricultural product quality and safety evaluation model was integrated with the risk traceability system.