Electronic document management system oriented to micro-service architecture
By designing an electronic document management system for microservice architecture, the challenges of traditional single architecture in scaling, optimization and multi-department collaboration are solved, efficient resource utilization, improved response speed and high concurrency processing capabilities are achieved, and complex collaboration and Mobile office needs.
Patent Information
- Application Number
- CN202411609860.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-12
- Publication Date
- 2025-02-07
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional single-architecture electronic document management systems have huge challenges in function expansion, performance optimization and technical updates, and it is difficult to meet complex multi-department collaboration needs and mobile office services.
Design an electronic document management system for microservice architecture, including user permission management microservice module, document storage microservice module, document retrieval microservice module, document editing microservice module, document encryption and security microservice module, workflow and Approve microservice modules, each service can independently allocate resources and interact with each other to meet different functional needs.
Through the microservice architecture, each service can allocate resources according to its own load needs, avoid resource competition, improve system resource utilization efficiency, improve response speed and processing capabilities, and can better deal with high concurrency scenarios, reduce user waiting time, and shorten failures Recovery time and improve system throughput and maintainability.
Smart Images

Figure CN119397581A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic document management, and in particular to an electronic document management system oriented to a microservice architecture. Background Art
[0002] In traditional electronic document management systems, a monolithic architecture is mostly used. As the scale of enterprises expands and the complexity of their businesses increases, this architecture faces many challenges, making the system face huge challenges in terms of functional expansion, performance optimization, and technology updates. In an enterprise environment, electronic document management involves the collaboration of multiple departments, and different departments have different access rights, processing procedures, and storage requirements for documents. With the continuous development of technology, enterprises may want to adopt new technologies in document management systems. With the emergence of microservice architecture, as a cloud-native architecture method, a single application contains many loosely coupled and independently deployable small components or services. Traditional electronic document management systems mostly use a monolithic architecture. As the number of documents and the scale of users increase, this architecture has the problem of poor scalability, such as:
[0003] Under the traditional monolithic architecture, the various functional modules of the system are tightly coupled. Since all functions are concentrated in one code base, the maintenance and update of the system become complicated. With the popularization of mobile office, employees need to access and process electronic documents anytime and anywhere. In office processing, different departments have different access rights, processing procedures and storage requirements for documents. The traditional monolithic architecture is difficult to meet the complex multi-department collaboration needs and meet the services of mobile office.
[0004] In response to the above problems, it is urgent to carry out innovative design based on the original electronic document management system. Summary of the invention
[0005] The purpose of the present invention is to provide an electronic document management system for a microservice architecture to solve the problem that under the traditional monolithic architecture proposed in the above background technology, the various functional modules of the system are tightly coupled, and the traditional monolithic architecture is difficult to cooperate with the complex multi-department collaboration needs to meet the service needs of mobile office.
[0006] To achieve the above-mentioned purpose, the present invention provides the following technical solutions: an electronic document management system oriented to a microservice architecture, comprising a user authority management microservice module, a document storage microservice module, a document retrieval microservice module, a document editing microservice module, a document encryption and security microservice module, a workflow and approval microservice module and a microservice database;
[0007] The user rights management microservice module interacts with the document storage microservice module, the document retrieval microservice module, the document editing microservice module, the document encryption and security microservice module, and the workflow and approval microservice module, and the data table of the user rights management microservice module is uploaded to the microservice database;
[0008] The document storage microservice module is used to process document storage and reading, and a local storage area and a cloud storage platform are set in the document storage microservice module. The document storage microservice module is connected with the document editing microservice module and the document encryption and security microservice module;
[0009] The document retrieval microservice module retrieves documents by keywords, and provides document retrieval requests to the document editing microservice module and the workflow and approval microservice module;
[0010] The document editing microservice module is used to edit the document content online, and a document version information record is set in the document editing microservice module. The document editing microservice module is connected with the document encryption and security microservice module and the workflow and approval microservice module;
[0011] The document encryption and security microservice module is used to encrypt the document content, metadata and user access information in storage and transmission, and the document encryption and security microservice module is connected to the workflow and approval microservice module;
[0012] The microservice database collects data table modules from the user authority management microservice module, the document storage microservice module, the document retrieval microservice module, the document editing microservice module, the document encryption and security microservice module, and the workflow and approval microservice module.
[0013] The above technical solution makes it easier for each service to allocate resources according to its own load requirements, avoiding the problem of resource contention in the traditional monolithic architecture.
[0014] Preferably, the user authority management microservice module outputs a user table and a authority table and uploads them to the microservice database, and the user table includes basic user information, and the user table is connected to the authority table.
[0015] By adopting the above technical solution, the authority of each user can be quickly defined and the operation authority for the document can be established.
[0016] Preferably, the user authority management microservice module interacts with the document encryption and security microservice module about user execution authority, and the user authority management microservice module is provided with the enterprise's user directory integration and user database.
[0017] The above technical solution allows user permissions and document encryption to be integrated with each other, making it easier to ensure the confidentiality of documents during circulation.
[0018] Preferably, the document storage microservice module, document retrieval microservice module and document editing microservice module jointly produce a document table, a document version table and a document access record table, and the document table is connected to the document version table, the document table is connected to the author field in the user table, and the document table is connected to the document type field in the permission table.
[0019] By adopting the above technical solution, the document table is used to quickly associate related users, and the user permissions are restricted in conjunction with the permission table.
[0020] Preferably, the document version table records document version information, and the document version table associates a document access record table with each version as a group, and the document access record table is connected to the user table.
[0021] The above technical solution is used to provide a record source for each version of the document, which facilitates quick retrieval of users and version content and facilitates document data backtracking.
[0022] Preferably, the document encryption and security microservice module generates a document encryption information table and a security audit table, and the document encryption information table is connected to the document table.
[0023] The above technical solution is adopted to effectively improve document security and avoid leakage of document data.
[0024] Preferably, the security audit table is connected to the document access record table and the user table respectively, and the security audit table records security-related events in the system.
[0025] By adopting the above technical solution, a list of security incidents occurring to users in the system is provided, which is convenient for quick search.
[0026] Preferably, the workflow and approval microservice module outputs an approval process table, and the approval process table is connected to the document table.
[0027] Using the above technical solution, the approval process table starts the approval procedure according to the preset approval process and feeds back the approval result to the document editing microservice.
[0028] Preferably, the approval process table is connected to the document table, and the approval process table is connected to the approver field in the user table.
[0029] With the above technical solution, the approval process table is used to quickly associate the approval permissions of different users.
[0030] Preferably, the workflow and approval microservice module receives the sensitive information document sent by the document encryption and security microservice module and synchronously feedbacks the approval instruction information, and the workflow and approval microservice module interacts with the document retrieval microservice module to retrieve the document during the approval period, and the workflow and approval microservice module feedbacks the result information for the editing request of the document editing microservice module.
[0031] Using the above technical solution, the workflow and approval microservice module receives work applications and information processing from other microservice modules.
[0032] Compared with the prior art, the beneficial effects of the present invention are: the electronic document management system oriented to the microservice architecture:
[0033] 1. The microservice architecture within the system allows each service to independently allocate resources according to its load requirements. The document storage microservice quickly obtains more memory and storage resources when processing a large number of document uploads or downloads, while the document retrieval microservice can use computing resources on demand when executing complex queries. Through targeted resource allocation, the performance bottleneck caused by unreasonable resource allocation in the traditional monolithic architecture is avoided, and the resource utilization efficiency of the entire system is improved, thereby improving the system's response speed and processing capabilities;
[0034] When multiple users access the document management system at the same time, different microservices handle these operations separately without interfering with each other. Compared with the lock mechanism conflicts that may be caused by concurrent operations in the traditional architecture, the microservice architecture can better cope with high-concurrency scenarios, reduce user waiting time, improve system throughput, and enable each microservice to independently handle concurrent requests;
[0035] 2. Set up a fault isolation mechanism in the system to cooperate with the independence of each microservice module. When a single microservice is damaged, the fault isolation mechanism reduces the impact of single point failure on the system and implements repair and restart of it separately, without restarting and recovering the entire system as in the traditional monolithic architecture. This allows the problem to be quickly located and repaired, and then the microservice is restarted. Other parts of the system can continue to operate normally, thus shortening the system's fault recovery time;
[0036] At the same time, each microservice has its own code base and clear functional boundaries. Since each microservice runs independently, the clear division greatly improves the readability and maintainability of the code, and also makes it easier for new developers to quickly understand and participate in the project. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 This is a schematic diagram of the electronic document management system process of the present invention;
[0038] Figure 2This is a schematic diagram of the connection relationship between modules in the microservice database of the present invention;
[0039] Figure 3 Schematic diagram of the microservice architecture of the present invention. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.
[0041] See also Figure 1-Figure 3 , the present invention provides a technical solution: an electronic document management system oriented to a microservice architecture, comprising a user authority management microservice module, a document storage microservice module, a document retrieval microservice module, a document editing microservice module, a document encryption and security microservice module, a workflow and approval microservice module and a microservice database;
[0042] The user authority management microservice module interacts with the document storage microservice module, the document retrieval microservice module, the document editing microservice module, the document encryption and security microservice module, and the workflow and approval microservice module, and the data table of the user authority management microservice module is uploaded to the microservice database, the user authority management microservice module outputs the user table and the permission table and uploads them to the microservice database, and the user table contains basic user information, the user table is connected to the permission table, the user authority management microservice module interacts with the document encryption and security microservice module for user execution permissions, and the user authority management microservice module is provided with the enterprise's user directory integration and user database;
[0043] In conjunction with the accompanying drawings Figure 1-Figure 3As shown in the figure, the display layer of the microservice architecture in the user authority management microservice module is mainly responsible for user registration, login and authority management. It adopts the mature authentication and authorization framework of OAuth to cooperate with the database, and further selects a relational database to store user information and authority information to support user authentication. According to the user role and department information, users are assigned access rights to different documents, including read, write, edit, delete and other operation rights. At the same time, the user table produced by the user authority management microservice module stores the basic information of users, including user ID, user name, password, email, department, role, etc. The authority of each user role is associated with the authority table. Among them, the user ID is the primary key, which is associated with the authority table and the document access record table through the role and department information. At the same time, the user's login data is synchronously sent to the document encryption and security microservice module and the workflow and approval microservice module to establish corresponding monitoring records, analyze the audit log in real time, find abnormal access behaviors such as frequent login failures and illegal document access attempts, and issue alarms in time so as to take corresponding security measures;
[0044] The document storage microservice module is used to process document storage and reading, and a local storage area and a cloud storage platform are set in the document storage microservice module. The document storage microservice module is connected with the document editing microservice module and the document encryption and security microservice module;
[0045] The document retrieval microservice module retrieves documents by keywords, and provides document retrieval requests to the document editing microservice module and the workflow and approval microservice module;
[0046] The document editing microservice module is used to edit the document content online, and a document version information record is set in the document editing microservice module. The document editing microservice module is connected with the document encryption and security microservice module and the workflow and approval microservice module;
[0047] The document storage microservice module, the document retrieval microservice module and the document editing microservice module jointly output a document table, a document version table and a document access record table, and the document table is connected to the document version table, the document table is connected to the author field in the user table, and the document table is connected to the document type field in the permission table, the document version table records the document version information, and the document version table associates the document access record table with each version as a group, and the document access record table is connected to the user table;
[0048] The document encryption and security microservice module is used to encrypt the document content, metadata and user access information in storage and transmission, and the document encryption and security microservice module is connected to the workflow and approval microservice module. The document encryption and security microservice module outputs a document encryption information table and a security audit table, and the document encryption information table is connected to the document table. The security audit table is respectively connected to the document access record table and the user table, and the security audit table records security-related events in the system;
[0049] In conjunction with the accompanying drawings Figure 1-Figure 3 As shown, the document storage microservice module, document retrieval microservice module and document editing microservice module constitute the document management and editing interface. The document management interface in the UI interface built by the microservice architecture displays the documents that the user has the right to access in the form of a list, including document name, type, creation time, author and other information. The user can search for documents through the search box, or filter the document list through screening conditions, so as to obtain the detailed content and corresponding information of the document. At the same time, document editing tools are added according to the document type to facilitate the editing of the document. Each time the document is edited, the user is used as the starting point to send an approval application to the workflow and approval microservice module, and the document is modified after the application is approved.
[0050] The document storage microservice module mainly handles the storage and reading operations of documents. The local storage area and cloud storage platform set up internally can store documents in the local storage system and cloud storage platform, and classify and index the stored documents for quick retrieval. During storage, the appropriate storage technology is selected based on storage requirements and cost considerations. For metadata management, a relational database is used. For large document storage, the distributed file system or object storage service can be combined to achieve document storage. The document table recorded in the document storage microservice module is used to record document metadata information, which is associated with the storage system through the storage path, the author and the user table, and the document version table through the version number. At the same time, each edit of the document is synchronized with the version storage to form a document version table. The document version table includes version ID, document ID, version number, creation time, modified content summary, etc. The version ID is the primary key, and is associated with the document table through the document ID to implement document version control and history query;
[0051] The document retrieval microservice module uses Elasticsearch as an open source full-text retrieval engine. It improves retrieval efficiency by establishing document indexes and inverted indexes, thereby providing users with document retrieval functions. Users can search by keywords, document names, creation time, authors, departments, and other conditions. It supports fuzzy search and precise search, and can quickly locate the documents required by users.
[0052] The modification editing interface in the document editing microservice module is integrated with professional online office software to generate an editing interface to realize the online editing function of the document. During the document editing process, especially for documents involving sensitive information, the document editing microservice module works together with the document encryption and security microservice module. The editing microservice passes the document data being edited to the encryption and security microservice for real-time encryption to ensure the security of the document content during the editing process. At the same time, when decrypting the document for editing, the encryption and security microservice also needs to interact with the editing microservice to ensure the legality and security of the decryption operation;
[0053] When the document is edited and enters the approval process, the document editing microservice passes the edited document information to the workflow and approval microservice. After the workflow and approval microservice module receives the document, it starts the approval process according to the preset approval process and feeds back the approval result to the document editing microservice module. Figure 1 As shown;
[0054] The document encryption and security microservice module uses hybrid encryption technology to encrypt document content, metadata, and user access information to ensure the security of documents during storage and transmission. The service has a security audit function to record document access and operation logs for security monitoring and violation tracing.
[0055] The workflow and approval microservice module outputs an approval process table, and the approval process table is connected to the document table, the approval process table is connected to the document table, and the approval process table is connected to the approver field in the user table. The workflow and approval microservice module receives the sensitive information document sent by the document encryption and security microservice module and synchronously feedbacks the approval instruction information. The workflow and approval microservice module interacts with the document retrieval microservice module to retrieve documents during the approval period, and the workflow and approval microservice module feedbacks the result information for the editing request of the document editing microservice module.
[0056] The microservice database collects data table modules from the user authority management microservice module, the document storage microservice module, the document retrieval microservice module, the document editing microservice module, the document encryption and security microservice module, and the workflow and approval microservice module;
[0057] In conjunction with the accompanying drawings Figure 1-Figure 3 As shown, the microservice database collects data content and output data tables from all microservice modules, such as Figure 1-2 As shown, it is convenient to provide corresponding data backup when a microservice module is damaged, providing backup storage effect for the system;
[0058] The workflow and approval microservice module is used to coordinate the approval process of documents. It has a complex interactive relationship with other microservices. When in use, it obtains the documents to be approved from the document storage microservice module. According to the conditions for starting the approval process, it obtains the documents that need to be approved from the document storage microservice to ensure the synchronization of the approval process and the document storage status.
[0059] After that, the document retrieval microservice module is called to search for reference documents. During the approval process, the reviewer is provided with the function of searching for relevant reference documents. At the same time, the basic information of the document is obtained from the document table, and the document is circulated according to the rules in the approval process table, so that the reviewer can have a more comprehensive understanding of the document content and make accurate approval decisions.
[0060] Secondly, when the approved document information is fed back to the document editing microservice module, according to the setting of the approval process, the contact information of the approver and other information are obtained from the user table, so as to remind and notify the editor during the approval process, thereby informing the editor whether the document has been approved and whether it needs to be modified, so as to realize the information exchange between the document approval and editing links, so that the document editing microservice module can open the editing qualifications for the editor to modify;
[0061] Throughout the approval process, the document encryption and security microservice modules work together to ensure the security of documents, especially the encryption and decryption operations during the document circulation process. By associating the document encryption table, the document ID field is connected to the document table to ensure that each document has corresponding encryption information. During the decryption operation, the encryption parameters of the document encryption table corresponding to the document are pulled for decryption to provide users with secure access and ensure the confidentiality and integrity of documents in the approval process. The security audit table is used to retrieve documents to establish a comprehensive record and analysis of security events until submission for review. When abnormal document access behavior occurs, the security audit table is connected with the user table and document table to determine which document file the abnormal user has performed illegal operations on, further improving the security management and processing of electronic documents.
[0062] Working principle: When using the electronic document management system oriented to the microservice architecture, the UI interface first connects to the user authority management microservice module to log in or register the user account. A unique identity is assigned to each user through the enterprise user directory and the user database, so that users can determine their access rights to different documents according to user roles and department information in the document storage microservice module, document retrieval microservice module, and document editing microservice module, including read, write, edit, delete and other operation rights. Each microservice module is an independent module, and each microservice interacts with each other through a lightweight communication protocol. When the microservice is started, it registers its service information with the service discovery component, including the service name, IP address, port number, available interface, etc. When other microservices need to call a certain service, they query and obtain the information of the target service through the service discovery component, thereby realizing dynamic service calls. The service module stores the document data produced by the user, and the document is edited in the document editing microservice module. Before each edit, the document editing microservice module sends an editing application to the workflow and approval microservice module, and the editing process can be carried out only after approval. After the edited document is approved by the workflow and approval microservice module, the document is uploaded to the encryption and security microservice module for encryption feedback processing. At the same time, the document storage microservice module stores the document information and encryption method. During this period, all microservice module data used are uploaded to the microservice database for storage. The configuration center is set up in the microservice architecture, allowing each microservice module to allocate resources according to its own load requirements, thereby improving the overall resource utilization efficiency of the system and improving system performance. In addition, each microservice independently processes concurrent requests, and different microservices can process these requests in parallel without interfering with each other. The concurrent processing capability greatly reduces user waiting time and improves system throughput.
[0063] While the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that many changes, modifications, substitutions and variations can be made to the embodiments without departing from the principles and spirit of the invention.
Claims
1. An electronic document management system for microservice architecture, characterized in that: include: User rights management microservice module, document storage microservice module, document retrieval microservice module, document editing microservice module, document encryption and security microservice module, workflow and approval microservice module, and microservice database; The user rights management microservice module interacts with the document storage microservice module, the document retrieval microservice module, the document editing microservice module, the document encryption and security microservice module, and the workflow and approval microservice module, and the data table of the user rights management microservice module is uploaded to the microservice database; The document storage microservice module is used to process document storage and reading, and a local storage area and a cloud storage platform are set in the document storage microservice module. The document storage microservice module is connected with the document editing microservice module and the document encryption and security microservice module; The document retrieval microservice module retrieves documents by keywords, and provides document retrieval requests to the document editing microservice module and the workflow and approval microservice module; The document editing microservice module is used to edit the document content online, and a document version information record is set in the document editing microservice module. The document editing microservice module is connected with the document encryption and security microservice module and the workflow and approval microservice module; The document encryption and security microservice module is used to encrypt the document content, metadata and user access information in storage and transmission, and the document encryption and security microservice module is connected to the workflow and approval microservice module; The microservice database collects data table modules from the user authority management microservice module, the document storage microservice module, the document retrieval microservice module, the document editing microservice module, the document encryption and security microservice module, and the workflow and approval microservice module.
2. The electronic document management system for microservice architecture according to claim 1, characterized in that: The user authority management microservice module outputs a user table and a permission table and uploads them to the microservice database. The user table contains basic user information, and the user table is connected to the permission table.
3. The electronic document management system for microservice architecture according to claim 1, characterized in that: The user authority management microservice module interacts with the document encryption and security microservice module about user execution authority, and the user authority management microservice module is provided with the enterprise's user directory integration and user database.
4. The electronic document management system for microservice architecture according to claim 1, characterized in that: The document storage microservice module, document retrieval microservice module and document editing microservice module jointly output a document table, a document version table and a document access record table, and the document table is connected to the document version table, the document table is connected to the author field in the user table, and the document table is connected to the document type field in the permission table.
5. The electronic document management system for microservice architecture according to claim 4, characterized in that: The document version table records document version information, and the document version table associates a document access record table with each version as a group, and the document access record table is connected to the user table.
6. The electronic document management system for microservice architecture according to claim 1, characterized in that: The document encryption and security microservice module generates a document encryption information table and a security audit table, and the document encryption information table is connected to the document table.
7. The electronic document management system for microservice architecture according to claim 6, characterized in that: The security audit table is connected to the document access record table and the user table respectively, and the security audit table records security-related events in the system.
8. The electronic document management system for microservice architecture according to claim 1, characterized in that: The workflow and approval microservice module outputs an approval process table, and the approval process table is connected to the document table.
9. The electronic document management system for microservice architecture according to claim 8, characterized in that: The approval process table is connected to the document table, and the approval process table is connected to the approver field in the user table.
10. The electronic document management system for microservice architecture according to claim 1, characterized in that: The workflow and approval microservice module receives the sensitive information document sent by the document encryption and security microservice module and synchronously feeds back the approval instruction information. During the approval period, the workflow and approval microservice module interacts with the document retrieval microservice module to retrieve the document, and the workflow and approval microservice module feeds back the result information for the editing request of the document editing microservice module.
Citation Information
Cited By
Document micro-service-based security and environmental protection management platform construction method and system
CN121300837A