EAST Experimental Data Gateway Based on RESTful and Microservice Architecture
Dixin Fan, Feng Wang, Jiaxin He · 2023
This paper designs and implements the EAST ex-perimental data gateway based on RESTful and microservice architecture as a centralized control point for traffic and services. Different from the single-architecture UDA method with high complexity and limited scalability, our method aims to realize the decoupling of data services at the business logic and technology stack levels, thereby improving the usability and maintainability of data services, and Unified provision of protocol conversion and adaptation, service routing and governance, traffic management and fault tolerance, log recording and monitoring and other functions. To achieve this goal, this paper designs and implements the EAST experimental data gateway based on the technical solution of the combination of Nginx and Flask backend frame-work. On the one hand, the gateway provides a unified RESTful experimental data query service for various external terminal devices, enabling cross-platform data access without maintaining various programming language clients. On the other hand, the gateway internally accesses microservices implemented by different technology stacks to realize the decoupling of data access services. In order to further improve the maintainability of the system, this paper also implements registration discovery and health detection of microservices through Consul, and implements distributed link tracing based on Elastic APM to record relevant logs and display global topology relationships. The test results show that the EAST experimental data gateway meets the established functional requirements and performance requirem-ents.