One-stop legal service platform based on modular development
Through a one-stop legal service platform designed in modular development, adopting microservice architecture and load balancing strategies, the problem of poor performance of traditional single-system platforms under high concurrent requests is solved, and efficient operation, rapid response and high availability are achieved.
Patent Information
- Application Number
- CN202411970885.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-25
AI Technical Summary
The traditional single-structure legal service platform has poor performance under high concurrent requests, slow response speed, and complex function expansion and maintenance, making it difficult to meet users' efficient service needs.
It adopts a one-stop legal service platform designed with modular development, including front-end modules, microservice clusters, load balancers, API gateways and data storage managers, and improves the high availability and response speed of the system through microservice architecture and load balancing strategies.
It realizes efficient operation, rapid response, flexible expansion and high maintenance, improves user experience and high system availability, and reduces system downtime caused by failures.
Smart Images

Figure CN119887108A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet legal services, and in particular to a one-stop legal service platform based on modular development. Background Art
[0002] With the rapid development of the Internet and information technology, legal service platforms have gradually become an important tool for providing legal consultation, case management, document generation and other services. Traditional legal service platforms usually adopt a monolithic architecture, integrating all functions into one application. Although this architecture is relatively simple in the initial development and deployment, its limitations gradually become apparent as the system functions increase and the number of users grows. Monolithic systems have poor performance and slow response when dealing with high-concurrency requests, and there are many inconveniences in function expansion and maintenance.
[0003] For example, a legal service platform adopts a monolithic architecture, integrating functional modules such as user management, case management, online consultation, and document generation. All modules share a database and application server. When the number of users increases or the system needs to add new functions, the platform gradually exposes problems such as slow response speed, poor system stability, and complex maintenance, making it difficult to meet users' needs for efficient services. Summary of the invention
[0004] To this end, the present invention provides a one-stop legal service platform based on modular development to solve the above-mentioned problems in the prior art.
[0005] In order to achieve the above-mentioned purpose, the present invention provides the following technical solutions: a one-stop legal service platform based on modular development, including a front-end module, specifically including several user interfaces, responsible for displaying data and user interaction;
[0006] The microservice cluster specifically includes a main microservice cluster and several backup microservice clusters. The main microservice cluster and the several backup microservice clusters have the same structure and specifically include several microservice instances. Each of the microservice instances executes its related business logic. Each of the microservice instances has two working states: running (UP) and stopped (DOWN);
[0007] Load balancer, used to distribute traffic to each microservice instance, ensure high availability and responsiveness of the system, and balance the load to optimize resource usage;
[0008] API gateway, which uniformly receives and distributes requests from the user interface to each microservice instance;
[0009] Data storage manager, used to store and manage business data;
[0010] The front-end module is communicatively connected to the API gateway, the API gateway is communicatively connected to the load balancer, the load balancer is communicatively connected to the microservice cluster, and the microservice cluster is communicatively connected to the data storage manager.
[0011] Preferably, the microservice cluster includes several microservice instances, and the microservice instances specifically include:
[0012] Account management microservice, used for user account modification, user rights management, and user group modification of the platform;
[0013] Legal consultation microservice: used for online legal consultation, lawyer interview appointment, consultation record and tracking, and consultation history review on the platform;
[0014] Case management microservice: used for case information registration, case progress tracking, case document management, case scheduling, and case-related notifications on the platform;
[0015] Expert management microservice: used for lawyer and legal expert information management, professional field classification, lawyer and expert rating system, and user evaluation management on the platform;
[0016] Legal document microservices: legal document template library for the platform, custom document generation, document archiving and management, and document electronic signature;
[0017] Legal and regulatory database microservice: used for legal text query, regulatory update reminders, legal case analysis, legal knowledge articles and tutorials on the platform;
[0018] Litigation service microservice: used for online case filing, electronic litigation material submission, and litigation material management on the platform;
[0019] Fee payment microservice: used for service fee calculation, online payment, invoice management, and payment record query of the platform;
[0020] Knowledge Base Education Microservice: used for the legal knowledge base, legal training and courses, FAQs, and legal information update notifications of the platform;
[0021] Customer support microservices: used for online customer service, telephone support, support ticket system, and customer feedback management of the platform;
[0022] Data analysis microservices: used for user behavior analysis, service usage statistics, financial reporting and analysis, and platform performance monitoring of the platform;
[0023] Security and privacy microservices: used for data encryption, user privacy protection, security auditing and compliance, and access control management of the platform.
[0024] Preferably, the load balancer distributes the access request to the corresponding microservice instance in the microservice cluster according to the access request from the user interface.
[0025] Preferably, the load balancer uses one of weighted round-robin, least connections, URL hash, shortest response time, or a combination of weighted round-robin and least connections as a load balancing strategy to distribute requests to appropriate microservice instances.
[0026] Preferably, the API gateway routes the request to the corresponding microservice instance according to the URL path or domain name of the request, and the API gateway can support conversion between HTTP protocol, HTTPS protocol or WebSocket protocol.
[0027] Preferably, the data storage manager includes a relational database management system, which is one of MySQL, PostgreSQL, Oracle Database or SQL Server. The microservice instance transfers the data to be stored to the data storage manager through a defined data storage protocol. The data is information collected from other microservice instances, user input data or monitoring data.
[0028] Preferably, the load balancer itself will record the process of the microservice instance receiving the access request and executing it to generate a monitoring log, and the monitoring log records the monitoring data. The monitoring log is integrated into the monitoring platform for global view and comprehensive analysis.
[0029] Preferably, the monitoring platform monitors the fault detection and automatic recovery mechanism of the load balancer to ensure that when a fault occurs on the monitoring platform, the load balancer can quickly switch from the microservice instance of the working main microservice cluster to the microservice instance in the backup microservice cluster.
[0030] Preferably, the load balancer itself can set the load threshold of the microservice instance, and monitor the actual load value of the negative microservice instance through the monitoring platform. The load balancer can quickly switch from the microservice instance of the working main microservice cluster to the microservice instance in the backup microservice cluster.
[0031] Preferably, message middleware is also included to achieve asynchronous communication and decoupling between microservices.
[0032] The present invention has the following advantages:
[0033] 1. Efficient operation: Through modular architecture, a single huge application is split into multiple small services, which significantly improves the system operation efficiency.
[0034] 2. Fast response: By adopting optimized load balancing strategy, the system response time is greatly shortened, and the average response time can reach X milliseconds, improving user experience.
[0035] 3. Flexible expansion: The modular design makes it easy to expand system functions and can quickly respond to market demand for functional updates and upgrades.
[0036] 4. High maintainability: Each module can be deployed and maintained independently, reducing the complexity and risk of system maintenance.
[0037] 5. High availability: Through monitoring and automatic fault recovery mechanism, the high availability of the system is ensured and the system downtime caused by faults is reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a schematic diagram of the structure of a one-stop legal service platform based on modular development according to an embodiment of the present invention;
[0039] Figure 2 It is a functional block diagram of a one-stop legal service platform based on modular development according to an embodiment of the present invention;
[0040] Figure 3 It is a schematic diagram of the working status of a microservice cluster of a one-stop legal service platform based on modular development according to an embodiment of the present invention; DETAILED DESCRIPTION
[0041] The following is a description of the implementation of the present invention by specific embodiments. People familiar with the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] Based on the technical problems existing in the prior art, the present invention provides a modularly developed one-stop legal service platform, such as Figures 1 to 3 As shown, specifically including:
[0043] The front-end module includes several user interfaces, responsible for displaying data and user interaction;
[0044] The microservice cluster specifically includes a main microservice cluster and several backup microservice clusters. The main microservice cluster and the several backup microservice clusters have the same structure and specifically include several microservice instances. Each microservice instance executes its related business logic. Each of the microservice instances has two working states: running (UP) and stopped (DOWN);
[0045] Load balancer, used to distribute traffic to each microservice instance, ensure high availability and responsiveness of the system, and balance the load to optimize resource usage;
[0046] API gateway, which uniformly receives and distributes requests from the user interface to each microservice instance;
[0047] Data storage manager, used to store and manage business data;
[0048] The front-end module is communicatively connected to the API gateway, the API gateway is communicatively connected to the load balancer, the load balancer is communicatively connected to the microservice cluster, and the microservice cluster is communicatively connected to the data storage manager.
[0049] The microservice cluster includes several microservice instances, which include:
[0050] Account management microservice, used for platform user account modification, user rights management, and user group modification;
[0051] Legal consultation microservices: used for online legal consultation, lawyer interview appointments, consultation records and tracking, consultation history viewing,
[0052] Case management microservices: used for case information registration, case progress tracking, case document management, case scheduling, case-related notifications,
[0053] Expert management microservices: used for lawyer and legal expert information management, professional field classification, lawyer and expert rating system, user evaluation management,
[0054] Legal document microservices: legal document template library for the platform, custom document generation, document archiving and management, document electronic signature,
[0055] Legal and regulatory database microservices: used for legal text query, regulatory update reminders, legal case analysis, legal knowledge articles and tutorials on the platform,
[0056] Litigation service microservice: used for online case filing, electronic litigation material submission, and litigation material management on the platform;
[0057] Fee payment microservice: used for platform service fee calculation, online payment, invoice management, payment record query,
[0058] Knowledge Base Education Microservice: used for the platform’s legal knowledge base, legal training and courses, FAQs, legal information update notifications,
[0059] Customer support microservices: used for the platform's online customer service, telephone support, support ticket system, customer feedback management,
[0060] Data analysis microservices: used for platform user behavior analysis, service usage statistics, financial reporting and analysis, platform performance monitoring,
[0061] Security and privacy microservices: used for platform data encryption, user privacy protection, security auditing and compliance, and access control management.
[0062] The load balancer distributes access requests to the corresponding microservice instances in the microservice cluster based on access requests from the user interface.
[0063] The load balancer uses one of the following load balancing strategies: weighted round-robin, least connections, URL hash, shortest response time, or a combination of weighted round-robin and least connections to distribute requests to appropriate microservice instances.
[0064] The API gateway routes the request to the corresponding microservice instance based on the requested URL path or domain name. The API gateway can support conversion between HTTP protocol, HTTPS protocol or WebSocket protocol.
[0065] The data storage manager includes a relational database management system, which is one of MySQL, PostgreSQL, Oracle Database or SQL Server. The microservice instance transfers the data to be stored to the data storage manager through the defined data transmission protocol. The data is information collected from other microservice instances, user input data or monitoring data.
[0066] The load balancer itself will record the process of the microservice instance receiving access requests and executing them to generate a monitoring log. The monitoring log contains monitoring data and is integrated into the monitoring platform for global view and comprehensive analysis.
[0067] The fault detection and automatic recovery mechanism of the load balancer is monitored through the monitoring platform to ensure that when a failure occurs on the monitoring platform, the load balancer can quickly switch from the microservice instance of the working primary microservice cluster to the microservice instance in the backup microservice cluster.
[0068] The load balancer itself can set the load threshold of the microservice instance, and monitor the actual load value of the negative microservice instance through the monitoring platform. The load balancer can quickly switch from the microservice instance of the working main microservice cluster to the microservice instance in the backup microservice cluster.
[0069] It also includes message middleware to achieve asynchronous communication and decoupling between microservices.
[0070] It should be noted that the above specific implementations are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art should understand that various modifications, equivalent substitutions, changes, etc. can be made to the present invention. However, as long as these changes do not deviate from the spirit of the present invention, they should be within the scope of protection of the present invention. In addition, some terms used in the specification and claims of this application are not restrictive, but are only for the convenience of description.
Claims
1. A one-stop legal service platform based on modular development, characterized by: include: The front-end module includes several user interfaces, responsible for displaying data and user interaction; The microservice cluster specifically includes a main microservice cluster and several backup microservice clusters. The main microservice cluster and the several backup microservice clusters have the same structure and specifically include several microservice instances. Each of the microservice instances executes its related business logic. Each of the microservice instances has two working states: running and stopped. Load balancer, used to distribute traffic to each microservice instance, ensure high availability and responsiveness of the system, and balance the load to optimize resource usage; API gateway, which uniformly receives and distributes requests from the user interface to each microservice instance; Data storage manager, used to store and manage business data; The front-end module is connected to the API gateway, the API gateway is connected to the load balancer, the load balancer is connected to the microservice cluster, and the microservice cluster is connected to the data storage manager. The microservice cluster includes several microservice instances, and the microservice instances specifically include: Account management microservice, used for user account modification, user rights management, and user group modification of the platform; Legal consultation microservice: used for online legal consultation, lawyer interview appointment, consultation record and tracking, and consultation history review on the platform; Case management microservice: used for case information registration, case progress tracking, case document management, case scheduling, and case-related notifications on the platform; Expert management microservice: used for lawyer and legal expert information management, professional field classification, lawyer and expert rating system, and user evaluation management on the platform; Legal document microservices: legal document template library for the platform, custom document generation, document archiving and management, and document electronic signature; Legal and regulatory database microservice: used for legal text query, regulatory update reminders, legal case analysis, legal knowledge articles and tutorials on the platform; Litigation service microservice: used for online case filing, electronic litigation material submission, and litigation material management on the platform; Fee payment microservice: used for service fee calculation, online payment, invoice management, and payment record query of the platform; Knowledge Base Education Microservice: used for the legal knowledge base, legal training and courses, FAQs, and legal information update notifications of the platform; Customer support microservices: used for online customer service, telephone support, support ticket system, and customer feedback management of the platform; Data analysis microservices: used for user behavior analysis, service usage statistics, financial reporting and analysis, and platform performance monitoring of the platform; Security and privacy microservices: used for data encryption, user privacy protection, security auditing and compliance, and access control management of the platform.
2. The one-stop legal service platform based on modular development according to claim 1 is characterized by: The load balancer distributes the access request to the corresponding microservice instance in the microservice cluster according to the access request from the user interface.
3. The one-stop legal service platform based on modular development according to claim 1 is characterized by: The load balancer uses one of weighted polling, least connections, URL hashing, shortest response time, or a combination of weighted polling and least connections as a load balancing strategy to distribute requests to appropriate microservice instances.
4. The one-stop legal service platform based on modular development according to claim 1 is characterized by: The API gateway routes the request to the corresponding microservice instance according to the requested URL path or domain name. The API gateway can support conversion between HTTP protocol, HTTPS protocol or WebSocket protocol.
5. The one-stop legal service platform based on modular development according to claim 1 is characterized by: The data storage manager includes a relational database management system, which is one of MySQL, PostgreSQL, Oracle Database or SQL Server. The microservice instance transmits the data to be stored to the data storage manager through a defined data transmission protocol. The data is information collected from other microservice instances, user input data or monitoring data.
6. The one-stop legal service platform based on modular development according to claim 1 is characterized by: The load balancer itself will record the process of the microservice instance receiving the access request and executing it to generate a monitoring log. The monitoring log records the monitoring data. The monitoring log is integrated into the monitoring platform for global view and comprehensive analysis.
7. The one-stop legal service platform based on modular development according to claim 6 is characterized by: The monitoring platform monitors the fault detection and automatic recovery mechanism of the load balancer to ensure that when a fault occurs on the monitoring platform, the load balancer can quickly switch from the microservice instance of the working main microservice cluster to the microservice instance in the backup microservice cluster.
8. The one-stop legal service platform based on modular development according to claim 6 is characterized by: The load balancer itself can set the load threshold of the microservice instance, and monitor the actual load value of the negative microservice instance through the monitoring platform. The load balancer can quickly switch from the microservice instance of the working main microservice cluster to the microservice instance in the backup microservice cluster.
9. The one-stop legal service platform based on modular development according to claim 1 is characterized by: It also includes message middleware to achieve asynchronous communication and decoupling between microservices.