Font Size: a A A

Design And Implementation Of Development System Based On GraphQL For Theme Service Of Presentation Layer

Posted on:2022-09-22Degree:MasterType:Thesis
Country:ChinaCandidate:X Y ZhangFull Text:PDF
GTID:2518306725984899Subject:Master of Engineering
Abstract/Summary:PDF Full Text Request
The local life service platform is an e-commerce platform for the local life service industry,which provides a lot of convenience for people.In the local life service platform,the information display plays an important role in the user's consumption decision-making process.With the advancement of microservices and the construction of middle platform,the back-end core transaction system of large-scale e-commerce platforms is often split into multiple domain services.In this case,the responsibility of information display is often undertaken by the business presentation layer service,which is responsible for the responses of the requests between the front-end and backend domain services and the query,processing and aggregation of display data.In the early days,out of the consideration of rapid business expansion,the business presentation layer system of the company's local life service platform was divided into different business teams for independent development according to different industries,lacking a unified architecture constraint.There are a lot of repeated developments between systems and it is difficult to reuse.This kind of development method has insufficient flexibility,low efficiency,and high cost,and cannot effectively meet the scene display needs of the local life service platform when it expands its business to more industries.In this regard,the company's development team abstractly divides the business presentation layer services into scene services that provide display data for pages and theme services that provide display data for the modules of pages to improve the flexibility and reusability of the display system.The scene services has been developed by other teams of the company,and the theme services are still in need of development.This thesis designs and implements a development system for the theme service of the presentation layer.The system is mainly developed based on GraphQL,using its features of on-demand data access and aggregate query to make the theme services developed based on the system have highly flexible data query functions.The system is mainly divided into client and server.The software architecture of the system is divided into five modules: metadata management module,Spring extension module,query schema execution engine module,extension module,general components module,and query schema management module.The system client is composed of metadata management module,Spring extension module,query schema execution engine module,extension module and general components module.It provides the theme service developer with standardized theme component interfaces and automated component execution functions.It is also responsible for automatically generating GraphQL related code through metadata analysis of each component,and uploading the metadata to the system server.The system server is composed of metadata management module and query schema management module.Based on the metadata obtained from the client,it provides developers with functions of metadata query of theme service and configuration of query schema for the theme service.The system help theme service developers to meet the query requirements of scene services for theme services with a configurable development method,which greatly improves the efficiency of requirement development of the business presentation system.At present,the presentation layer service development system has been put into use within the company,and a number of presentation layer theme services developed based on this system have also been put into operation.After the presentation layer service development system is refactored,the performance,quality and development efficiency of business presentation system have been improved significantly,providing support for the company's local life service platform with an average daily visit volume of 100 million users.
Keywords/Search Tags:Local life service platform, Development system for theme service of presentation layer, GraphQL, Configurable development
PDF Full Text Request
Related items