Unified to-do method and device based on cache and message queue, and computer equipment
By building a unified to-do center based on cache and message queue, integrating Redis cache and kafka message queue, the cumbersome problems of to-do tasks in various business systems are solved, efficient to-do data collection and management are achieved, and operation efficiency is improved and system stability.
Patent Information
- Application Number
- CN202310784330.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-28
- Publication Date
- 2024-12-31
AI Technical Summary
In the prior art, the to-do tasks of each business system can only be processed in their respective systems, resulting in cumbersome user operations and easy to miss approval, and the lack of a unified to-do data collection and management center.
Adopt a unified to-do method based on cache and message queue. By building a unified to-do center, integrating Redis cache and kafka message queue, the collection and centralized processing of business to-do data is realized, and a visual interface is set up on the application platform terminal to process the to-do data. Handle tasks.
It realizes a high-performance unified to-do center, reduces user operation complexity, improves the management efficiency of to-do tasks, avoids missed approvals, and has open access capabilities, which are suitable for all fields of information processing.
Smart Images

Figure CN119228285A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information processing technology, and in particular to a unified to-do method, device, computer equipment and storage medium based on cache and message queue. Background Art
[0002] In the era of mobile Internet, business complexity continues to increase, the number of business systems continues to grow, and the number of approval flow to-dos in each business system continues to increase. At the same time, the to-dos of each system can only be processed on their own business systems, lacking a unified to-do processing portal and to-do data collection center. Taking iLink as an example, the number of applications in the workbench is as high as hundreds and is still growing, and each business system will generate a certain amount of to-do tasks. Assuming that when users process to-do tasks, they need to click into the corresponding business system, which will make the user operation very cumbersome and prone to missed approvals. Therefore, there is an urgent need for a high-performance unified to-do center that can collect and manage the to-do data of each business system, and the to-do center needs to have the ability to smoothly adapt and have an application platform with a visual display interface. Summary of the invention
[0003] The purpose of the embodiments of the present invention is to propose a unified to-do method, device, computer equipment and storage medium based on cache and message queue, so as to solve the problem that the to-do of each business system in the prior art can only be processed on its own business system, resulting in cumbersome user operations and easy omission of approval.
[0004] In order to solve the above technical problems, the present invention provides a unified to-do method based on cache and message queue, which adopts the following technical solution, including:
[0005] Based on the middleware, a unified to-do center is constructed, wherein the unified to-do center has internal services and is used to centrally process to-do tasks;
[0006] Establish a to-do business collection service, and integrate the redis cache mechanism and the kafka message queue of the unified to-do service center service program to collect the to-do business data into the unified to-do center to become to-do business;
[0007] Establishing an application platform terminal, wherein the application platform terminal is provided with a business platform with a visual interface, based on the business platform, applying the internal services of the unified to-do center, and setting rules for processing the to-do tasks;
[0008] Processing the to-do tasks based on the rules for processing the to-do tasks;
[0009] Among them, the unified to-do center, to-do business collection service and application platform terminal are connected through the network.
[0010] Preferably, the unified to-do center is constructed based on the middleware, and the unified to-do center is provided with internal services. The steps for the unified to-do center to centrally process to-do tasks specifically include:
[0011] Install and deploy a cluster of nginx, redis, kafka, nacos and mysql middleware;
[0012] Based on the SpringCloud-Alibaba and MybatisPlus development framework, a unified to-do center is constructed to build business services such as creating to-do / completed tasks, updating to-do tasks, updating to-do task status, deleting to-do tasks, querying various types of to-do lists, and querying to-do details.
[0013] Preferably, a to-do business collection service is established. The unified to-do service center service program integrates the redis cache mechanism and the kafka message queue to collect the to-do business data to the unified to-do center. The steps of becoming to-do business specifically include:
[0014] Introducing redis cache and kafka message queue, creating interfaces for data-level changes such as creating to-do / completed tasks, updating to-do tasks, updating to-do task status, and deleting to-do tasks, to implement information caching, distributed locks, traffic peak shaving, and asynchronous requests;
[0015] Through the data transmission of the unified to-do service center service, the data is organized and collected into the MySQL database within the unified to-do service center service.
[0016] Preferably, the step of establishing an application platform terminal, wherein the application platform terminal is provided with a business platform with a visual interface, and applying the internal services of the unified to-do center based on the business platform, and setting rules for processing the to-do tasks specifically includes:
[0017] The application platform terminal calls the internal services of the unified to-do center;
[0018] Set real-time notification rules for to-do tasks.
[0019] Preferably, the step of processing the to-do tasks based on the rule for processing the to-do tasks specifically includes:
[0020] Based on the premise of single sign-on with the business system, the to-do details page can be queried on the terminal, and the to-do tasks can be processed in the business system.
[0021] Based on the application platform terminal, the terminal business functions to be done are realized.
[0022] Preferably, after the step of processing the to-do tasks based on the rules for processing the to-do tasks, the method further includes:
[0023] Establish a unified to-do center web management backend.
[0024] In order to solve the above technical problems, the present invention further provides a unified to-do device based on cache and message queue, which adopts the following technical solution, including:
[0025] A unified to-do center construction module is used to build a unified to-do center based on the middleware. The unified to-do center is provided with internal services and is used to centrally process to-do tasks.
[0026] An integration module is used to integrate the redis cache mechanism and the kafka message queue into the unified to-do service center service program, so as to collect the business to-do data into the unified to-do center to become to-do business;
[0027] An application platform terminal establishment module is used to establish an application platform terminal, wherein the application platform terminal is provided with a business platform with a visual interface, based on the business platform, the internal services of the unified to-do center are applied, and rules for processing the to-do tasks are set;
[0028] A processing module, used for processing the to-do tasks based on the rules for processing the to-do tasks;
[0029] Among them, the unified to-do center, to-do business collection service and application platform terminal are connected through the network.
[0030] Preferably, the device further comprises: a web module for establishing a unified to-do center web-side management backend.
[0031] In order to solve the above technical problems, the present invention also provides a computer device, which adopts the technical solution described below, including a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, it implements the steps of the above-mentioned unified to-do method based on cache and message queue.
[0032] In order to solve the above technical problems, the present invention also provides a computer-readable storage medium, which adopts the technical solution described below, and stores computer-readable instructions on the computer-readable storage medium. When the computer-readable instructions are executed by the processor, the steps of the above-mentioned unified to-do method based on cache and message queue are implemented.
[0033] Compared with the prior art, the present invention has the following beneficial effects: with to-do tasks as the core, a high-performance unified to-do center based on cache and message queue is realized around the creation, update, approval, query and data collection functions of to-do tasks, and it has open access capabilities; it can centrally process cache and message queues with high processing efficiency, and can be widely applied to various fields of information processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the scheme in the present invention, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present invention. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0035] Figure 1 It is a flow chart of an embodiment of a unified to-do method based on cache and message queue of the present invention;
[0036] Figure 2 It is a schematic diagram of the architecture adopted in the unified to-do method based on cache and message queue of the present invention;
[0037] Figure 3 It is a schematic diagram of adding to-do tasks adopted in the unified to-do method based on cache and message queue of the present invention;
[0038] Figure 4 It is a schematic diagram of an application platform terminal used in the unified to-do method based on cache and message queue of the present invention;
[0039] Figure 5 It is a schematic diagram of to-do tasks arriving at a unified to-do center adopted in the unified to-do method based on cache and message queue of the present invention;
[0040] Figure 6 It is a structural diagram of an embodiment of a unified to-do device based on cache and message queue of the present invention;
[0041] Figure 7 It is a schematic structural diagram of an embodiment of a computer device of the present invention. DETAILED DESCRIPTION
[0042] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present invention; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention; the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present invention or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0043] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0044] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings.
[0045] It should be noted that the unified to-do method based on cache and message queue provided in the embodiment of the present invention is generally executed by a server / terminal device. Accordingly, the unified to-do device based on cache and message queue is generally set in the server / terminal device.
[0046] It should be understood that the number of terminal devices, networks and servers is merely illustrative and any number of terminal devices, networks and servers may be provided as required.
[0047] Embodiment 1
[0048] Continue to refer Figure 1 , shows a flow chart of an embodiment of a unified to-do method based on cache and message queue of the present invention. The unified to-do method based on cache and message queue includes the following steps:
[0049] Step S1, based on the middleware, a unified to-do center is constructed. The unified to-do center has internal services and is used to centrally process to-do tasks.
[0050] Middleware is an independent system software service program that can share resources between different technologies. It sits on top of the operating system of the client server and manages computing resources and network communications. The middleware here can be nginx, redis, kafka, etc. nginx is a very lightweight HTTP server reverse proxy server, and it is also an IMAP / POP3 / SMTP proxy server. Redis is an open source log-type, Key-Value database written in ANSI C language, supporting the network, memory-based and persistent, and provides APIs in multiple languages. Redis supports relatively more value types for storage, including string, list, set, and zset. Kafka is a distributed, publish / subscribe-based messaging system. It can handle all action stream data of consumers on the website. This action (web browsing, search and other user actions) is a key factor in many social functions on modern networks. These data are usually solved by processing logs and log aggregation due to throughput requirements.
[0051] The internal services of the unified to-do center can include but are not limited to: creating to-do / completed tasks, updating to-do tasks, updating to-do task status, querying various types of to-do lists and querying to-do details, etc.
[0052] In this embodiment, the electronic device (e.g., server / terminal device) on which the unified to-do method based on cache and message queue runs can receive the unified to-do request based on cache and message queue through a wired connection or a wireless connection. It should be noted that the above wireless connection method may include but is not limited to 3G / 4G / 5G connection, WiFi connection, Bluetooth connection, WiMAXX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or to be developed in the future.
[0053] In this embodiment, step S1 may further include the following steps:
[0054] S11. Install and deploy a cluster of nginx, redis, kafka, nacos and mysql middleware.
[0055] Nacos is the service registration and configuration middleware, and mysql is the database. The purpose of installing and deploying the cluster of nginx, redis, kafka, nacos and mysql middleware is to ensure the high availability of each core middleware.
[0056] S12. Construct a unified to-do center based on the SpringCloud-Alibaba and MybatisPlus development framework, and build business services such as creating to-do / completed tasks, updating to-do tasks, updating to-do task status, deleting to-do tasks, querying various types of to-do lists, and querying to-do details.
[0057] SpringCloud-Alibaba is a microservice framework, and MybatisPlus is a data persistence framework. The purpose of implementing step S12 is to support the collection of business data in the to-do center.
[0058] Step S2, establish a to-do business collection service, and the unified to-do service center service program integrates the redis cache mechanism and the kafka message queue to effectively, efficiently and accurately collect the business to-do data to the unified to-do center to become to-do businesses.
[0059] In this embodiment, step S2 may further include the following steps:
[0060] S21. Introduce redis cache and kafka message queue, create interfaces for data-level changes such as to-do / completed tasks, update to-do tasks, update to-do task status, and delete to-do tasks, to realize information caching, distributed locks, traffic peak shaving, and asynchronous requests.
[0061] The purpose of implementing step S21 is to ensure high availability and high performance of the service program.
[0062] S22. Through the data transmission of the unified to-do service center service, the data is sorted and collected into the MySQL database within the unified to-do service center service.
[0063] The purpose of collating and collecting data into the MySQL database within the unified to-do service center service through the data transmission of the above-mentioned unified to-do service center service is to uniformly manage business data.
[0064] Step S3, establishing an application platform terminal, the application platform terminal is provided with a business platform with a visual interface, based on the business platform, applying the internal services of the unified to-do center, and setting rules for processing to-do tasks.
[0065] In this embodiment, step S3 may further include the following steps:
[0066] S31. The application platform terminal calls the internal service of the unified to-do center.
[0067] The application platform terminal calls the internal services of the unified to-do center, such as querying the to-do list, querying application information, querying to-do details, etc., to realize the visualization of to-do tasks.
[0068] S32. Setting real-time notification rules for to-do tasks.
[0069] The real-time notification rules for to-do tasks include but are not limited to whether to accept to-do arrival notifications, etc.
[0070] Step S4, processing the to-do tasks based on the rules for processing the to-do tasks.
[0071] In this embodiment, step S4 may further include the steps of:
[0072] S41. Based on the premise of establishing single sign-on with the business system, query the to-do details page on the terminal and jump to the business system to process the to-do tasks.
[0073] S42. Based on the application platform terminal, the to-do terminal business functions are realized.
[0074] The to-do terminal business functions include but are not limited to querying the to-do list by conditions, not processing it temporarily, etc.
[0075] The unified to-do center, to-do business collection service and application platform terminals are connected through the network to exchange data.
[0076] In some optional implementations of this embodiment, after step S4, the electronic device may further perform the following steps:
[0077] S5. Establish a unified to-do center web management backend.
[0078] In specific implementation, step S5 may further include the following steps:
[0079] S51. Based on the business data of the unified to-do service center, administrator operation functions such as to-do task summary list query and to-do status update are implemented in the web management background.
[0080] S52. Based on the log data of the unified to-do service center, the to-do log query function is implemented in the web-based management background to trace the source of service operation problems, etc.
[0081] This makes it convenient to track problems that arise during the operation of the unified to-do service center's services and provide full life cycle management.
[0082] Figure 2 Schematic diagram of the architecture used in the unified to-do method based on cache and message queue of the present invention. Figure 2As shown, the user system can be: the application platform of the to-do business collection service and the unified to-do center synchronizes user information and obtains a unique user identification standard. The unified to-do center stores the to-do data according to the unique user identification standard. The application platform of the to-do business collection service and the unified to-do center implements application single sign-on, which is mainly used for single sign-on to view the to-do details page. Single sign-on means: after logging in through the platform, when jumping to the business system to view the to-do details, there is no need to enter the account password again, and jump directly to the details page through single sign-on. Application authorization can be enabled: application authorization authentication, after obtaining the authorization code (app_key, app_secret), the relevant services of the unified to-do center can be called to connect with the unified to-do center for data. The authorization code determines which application the to-do belongs to. Open services can be enabled: through a series of to-do data synchronization interfaces, the business system data is pushed to the unified to-do center, and a to-do compensation mechanism and to-do query method are provided. Internal services refer to: collecting and managing to-do data based on business systems / applications, and providing data query services for application platforms with visual display interfaces.
[0083] The internal services of the unified to-do center include establishing user data standards, distinguishing tenants, application authorization, and data collection. Establishing user data standards refers to the to-do business collection service and the application platform of the unified to-do center performing user synchronization to obtain a unique user identification standard. The unified to-do center stores to-do data according to the unique user identification standard. Differentiating tenants means that a tenant code needs to be set when each to-do task is created. After data collection, the to-do will be distinguished by multiple tenants. Application authorization: The unified to-do center management background performs application authorization. After obtaining the authorization code (app_key, app_secret), it is provided to the access party before the open service can be used. Data collection manages to-do data collection based on tenants and applications, and is subdivided into four categories: pending, processed, initiated by me, and copied to me.
[0084] The system stability is ensured by adopting the cluster deployment mode of distributed cluster deployment, nginx is used to achieve load balancing, redis is used to achieve information caching and efficient query, and kafka message queue is used to achieve request asynchrony and traffic peak shaving; thereby achieving high availability and high performance of the system.
[0085] By adopting the master-slave replication architecture of MySQL, mysql_proxy can be used at the same time to achieve data read and write separation to ensure high availability of the database.
[0086] Figure 3 Schematic diagram of adding to-do tasks in the unified to-do method based on cache and message queue of the present invention. Figure 3As shown, first obtain the access token. The access token is obtained through the key and secret assigned by the unified to-do center, which is used to call other services later. The validity period of the access token can be set, for example, it can be 2 hours, and it needs to be refreshed regularly. Secondly, add to-do tasks. Create to-do tasks. To-do tasks can have multiple approvers and readers. The system can customize the to-do task id and pass it in. If the to-do id is not passed, it will be generated and returned by the unified to-do service. The to-do task id is the unique identifier of the to-do task, and will be used to update the information of the to-do task and the status of the executor in the future. Then add completed tasks. Create completed tasks for automatic approval and other record storage. The system can customize the completed task id and pass it in. If the completed id is not passed, it will be generated and returned by the unified to-do service for automatic approval and other record storage. To-do tasks can be updated. Update the to-do task information or the approval status of the entire to-do task. Update the to-do task according to the to-do task id that is customized when the to-do task is created or returned by the system. You can modify the executor (approver), participant (cc), executor's to-do processing status, to-do viewing address, etc. Update the to-do executor status, update the approval status of one or more approvers of the to-do task, applicable to the case where there are multiple executors for a to-do task, update the to-do processing status of one or more to-do executors according to the to-do task id that is customized when the to-do task is created or returned by the system. Delete to-do tasks, delete a to-do task, and formulate a deletion to-do task according to the to-do task id that is customized when the to-do task is created or returned by the system. Query the details of the to-do task according to the to-do id, query the details of the to-do task according to the to-do id that is customized when the to-do task is created or returned by the system. Query the details of the to-do task according to the sourceId, query the details of the to-do task according to the sourceId (sourceId is the business id that can be passed in when creating a to-do task, and can also be understood as the process instance id). Query the details of the to-do task based on the sourceId parameter on the business system side that can be passed when creating the to-do task. If it is not passed or is empty when creating, it cannot be queried.
[0087] Figure 4 Schematic diagram of the application platform terminal used in the unified to-do method based on cache and message queue of the present invention. Figure 4As shown, to view the to-do list, the application platform terminal calls the internal service of the unified to-do center to visualize the to-do task information, which is divided into four categories: pending, processed, initiated by me, and copied to me. At the same time, it can distinguish between application search and keyword search to specify to-do tasks. Single sign-on on the details page: The jump link to the details page of the to-do task is passed in by the access party system, and the link needs to be spliced with a placeholder. For example, the application platform of the unified to-do center requires &token=@token to be spliced on the jump link. The application platform can obtain the current user's authentication token (actual value of the token) and replace the placeholder @token according to the link passed in by the business system. The business system needs to implement single sign-on to jump to the details page based on the token in the jump link.
[0088] Figure 5 Schematic diagram of the arrival of to-do tasks at the unified to-do center in the unified to-do method based on cache and message queue of the present invention. Figure 5 As shown, users are reminded through real-time messages and can log in to the detail page through single-point messaging.
[0089] It should be emphasized that in order to further ensure the privacy and security of the above-mentioned to-do task information, the above-mentioned to-do task information can also be stored in a node of a blockchain.
[0090] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0091] The beneficial effects of implementing this embodiment are as follows: by connecting the unified to-do center, the to-do business collection service and the application platform terminal through the network, a unified to-do center is constructed based on the middleware, and the unified to-do center is provided with internal services, and the unified to-do center is used to centrally process to-do tasks; a to-do business collection service is established, and the service program of the unified to-do service center integrates the redis cache mechanism and the kafka message queue, which is used to effectively, efficiently and accurately collect the business to-do data to the unified to-do center as to-do businesses; an application platform terminal is established, and the application platform terminal is provided with a business platform with a visual interface, based on the business platform, the internal services of the unified to-do center are applied, and rules for processing to-do tasks are set; based on the rules for processing to-do tasks, to-do tasks are processed; with to-do tasks as the core, a high-performance unified to-do center based on cache and message queue is realized around the creation, update, approval, query and data collection functions of to-do tasks, and it has open access capabilities; it can centrally process cache and message queues, has high processing efficiency, and can be widely applicable to various fields of information processing.
[0092] The present invention can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present invention can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0093] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0094] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0095] Embodiment 2
[0096] Further references Figure 6 , as a response to the above Figure 1 The present invention provides an embodiment of a unified to-do device based on a cache and a message queue, and the embodiment of the device is similar to Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0097] like Figure 6 As shown, the unified to-do device 50 based on cache and message queue in this embodiment includes: a unified to-do service center construction module 51, an integration module 52, an application platform terminal establishment module 53 and a processing module 54. Among them:
[0098] The unified to-do service center construction module 51 is used to build a unified to-do center based on the middleware. The unified to-do center has internal services and is used to centrally process to-do tasks.
[0099] The integration module 52 is used to establish a to-do business collection service. The unified to-do service center service program integrates the redis cache mechanism and the kafka message queue to collect the to-do business data into the unified to-do center to form to-do businesses.
[0100] The unified to-do service center service program integrates the redis cache mechanism and the kafka message queue to effectively, efficiently and accurately collect business to-do data into the unified to-do center to become to-do businesses.
[0101] The application platform terminal establishment module 53 is used to establish an application platform terminal. The application platform terminal is provided with a business platform with a visual interface. Based on the business platform, the internal services of the unified to-do center are applied to set rules for processing to-do tasks.
[0102] The processing module 54 is used to process the pending tasks based on the rules for processing the pending tasks.
[0103] Among them, the unified to-do center, to-do business collection service and application platform terminals are connected through the network.
[0104] In some optional implementations of this embodiment, the unified to-do center construction module 51 further includes: a deployment module 511, which is used to install and deploy clusters of nginx, redis, kafka, nacos and mysql middleware; a construction module 512, which is used to construct a unified to-do center based on the SpringCloud-Alibaba, MybatisPlus development framework, and build business services for creating to-do / completed tasks, updating to-do tasks, updating to-do task status, deleting to-do tasks, querying various types of to-do lists, and querying to-do details.
[0105] In some optional implementations of this embodiment, the integration module 52 further includes: a cache and message queue module 521, which is used to introduce redis cache and kafka message queue, and to create interfaces for data-level changes involving to-do / completed tasks, updating to-do tasks, updating to-do task status, and deleting to-do tasks, to realize information caching, distributed locks, traffic peak shaving, and asynchronous requests; a collection module 522, which is used to organize and collect data into the MySQL database within the unified to-do service center service through data transmission of the unified to-do service center service.
[0106] In some optional implementations of this embodiment, the application platform terminal establishment module 53 further includes: a calling module 531, which is used by the application platform terminal to call the internal service of the unified to-do center; and a setting module 532, which is used to set real-time notification rules for to-do tasks.
[0107] In some optional implementations of this embodiment, the processing module 54 further includes: a jump module 541, which is used to implement the query of the to-do details page on the terminal based on the premise of establishing a single sign-on with the business system, and jump to the business system to process the to-do tasks; a to-do module 542, which is used to implement the to-do terminal business functions based on the application platform terminal.
[0108] In some optional implementations of this embodiment, the device also includes a web module 55, which is used to establish a unified to-do center web-side management background. In specific implementation, the web module 55 may also include an administrator module 551, which is used to implement administrator operation functions such as to-do task summary list query and to-do status update in the web-side management background based on the business data of the unified to-do service center; a query module 552, which is used to implement the to-do log query function in the web-side management background based on the log data of the unified to-do service center, and is used for tracing the source of service operation problems. This makes it convenient to track problems that arise during the operation of the services of the unified to-do service center, and to have full life cycle management.
[0109] The beneficial effects of implementing this embodiment are as follows: by connecting the unified to-do center, the to-do business collection service and the application platform terminal through the network, a unified to-do center is constructed based on the middleware, and the unified to-do center is provided with internal services, and the unified to-do center is used to centrally process to-do tasks; a to-do business collection service is established, and the service program of the unified to-do service center integrates the redis cache mechanism and the kafka message queue, which is used to effectively, efficiently and accurately collect the business to-do data to the unified to-do center as to-do businesses; an application platform terminal is established, and the application platform terminal is provided with a business platform with a visual interface, based on the business platform, the internal services of the unified to-do center are applied, and rules for processing to-do tasks are set; based on the rules for processing to-do tasks, to-do tasks are processed; with to-do tasks as the core, a high-performance unified to-do center based on cache and message queue is realized around the creation, update, approval, query and data collection functions of to-do tasks, and it has open access capabilities; it can centrally process cache and message queues, has high processing efficiency, and can be widely applicable to various fields of information processing.
[0110] Embodiment 3
[0111] To solve the above technical problems, the embodiment of the present invention also provides a computer device. Figure 7 , Figure 7 This is a basic structural block diagram of the computer device in this embodiment.
[0112] The computer device 6 includes a memory 61, a processor 62, and a network interface 63 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 6 having a component memory 61, a processor 62, and a network interface 63, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0113] The computer device may be a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with the user through a keyboard, a mouse, a remote control, a touch pad, or a voice control device.
[0114] The memory 61 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 61 may be an internal storage unit of the computer device 6, such as a hard disk or memory of the computer device 6. In other embodiments, the memory 61 may also be an external storage device of the computer device 6, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. equipped on the computer device 6. Of course, the memory 61 may also include both the internal storage unit of the computer device 6 and its external storage device. In this embodiment, the memory 61 is generally used to store the operating system and various application software installed on the computer device 6, such as computer-readable instructions of a unified to-do method based on a cache and a message queue. In addition, the memory 61 can also be used to temporarily store various types of data that have been output or are to be output.
[0115] The processor 62 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 62 is generally used to control the overall operation of the computer device 6. In this embodiment, the processor 62 is used to run the computer-readable instructions stored in the memory 61 or process data, such as running the computer-readable instructions of the unified to-do method based on cache and message queue.
[0116] The network interface 63 may include a wireless network interface or a wired network interface. The network interface 63 is generally used to establish a communication connection between the computer device 6 and other electronic devices.
[0117] The beneficial effects of implementing this embodiment are: taking to-do tasks as the core, a high-performance unified to-do center based on cache and message queue is realized around the creation, update, approval, query, and data collection functions of to-do tasks, and it has open access capabilities; it can centrally process cache and message queues, has high processing efficiency, and can be widely applied to various fields of information processing.
[0118] Embodiment 4
[0119] The present invention also provides another embodiment, namely, providing a computer-readable storage medium, which stores computer-readable instructions. The computer-readable instructions can be executed by at least one processor to enable at least one processor to perform the steps of the unified to-do method based on cache and message queue as described above.
[0120] The beneficial effects of implementing this embodiment are: taking to-do tasks as the core, a high-performance unified to-do center based on cache and message queue is realized around the creation, update, approval, query, and data collection functions of to-do tasks, and it has open access capabilities; it can centrally process cache and message queues, has high processing efficiency, and can be widely applied to various fields of information processing.
[0121] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the various embodiment methods of the present invention.
[0122] Obviously, the embodiments described above are only some embodiments of the present invention, rather than all embodiments. The preferred embodiments of the present invention are given in the accompanying drawings, but they do not limit the patent scope of the present invention. The present invention can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present invention more thorough and comprehensive. Although the present invention has been described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific embodiments, or to perform equivalent replacements for some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of the present invention, directly or indirectly used in other related technical fields, is also within the scope of patent protection of the present invention.
Claims
1. A unified to-do method based on cache and message queue, characterized in that: The steps include: Based on the middleware, a unified to-do center is constructed, wherein the unified to-do center has internal services and is used to centrally process to-do tasks; Establish a to-do business collection service, and integrate the redis cache mechanism and the kafka message queue of the unified to-do service center service program to collect the to-do business data into the unified to-do center to become to-do business; Establishing an application platform terminal, wherein the application platform terminal is provided with a business platform with a visual interface, based on the business platform, applying the internal services of the unified to-do center, and setting rules for processing the to-do tasks; Processing the to-do tasks based on the rules for processing the to-do tasks; Among them, the unified to-do center, to-do business collection service and application platform terminal are connected through the network.
2. The unified to-do method based on cache and message queue according to claim 1, characterized in that: The unified to-do center is constructed based on the middleware, and the unified to-do center is provided with internal services. The steps for the unified to-do center to centrally process to-do tasks specifically include: Install and deploy a cluster of nginx, redis, kafka, nacos and mysql middleware; Based on the SpringCloud-Alibaba and MybatisPlus development framework, a unified to-do center is constructed to build business services such as creating to-do / completed tasks, updating to-do tasks, updating to-do task status, deleting to-do tasks, querying various types of to-do lists, and querying to-do details.
3. The unified to-do method based on cache and message queue according to claim 1 is characterized in that: The steps of establishing a to-do business collection service and integrating the redis cache mechanism and the kafka message queue of the unified to-do service center service program to collect the to-do business data to the unified to-do center and turn it into to-do business specifically include: Introducing redis cache and kafka message queue, creating interfaces for data-level changes such as creating to-do / completed tasks, updating to-do tasks, updating to-do task status, and deleting to-do tasks, to implement information caching, distributed locks, traffic peak shaving, and asynchronous requests; Through the data transmission of the unified to-do service center service, the data is organized and collected into the MySQL database within the unified to-do service center service.
4. The unified to-do method based on cache and message queue according to claim 1 is characterized in that: The step of establishing an application platform terminal, wherein the application platform terminal is provided with a business platform with a visual interface, applying the internal services of the unified to-do center based on the business platform, and setting rules for processing the to-do tasks specifically includes: The application platform terminal calls the internal services of the unified to-do center; Set real-time notification rules for to-do tasks.
5. The unified to-do method based on cache and message queue according to claim 1, characterized in that: The step of processing the to-do tasks based on the rule of processing the to-do tasks specifically includes: Based on the premise of single sign-on with the business system, the to-do details page can be queried on the terminal, and the to-do tasks can be processed in the business system. Based on the application platform terminal, the terminal business functions to be done are realized.
6. The unified to-do method based on cache and message queue according to any one of claims 1 to 5, characterized in that: After the step of processing the to-do tasks based on the rules for processing the to-do tasks, the method further includes: Establish a unified to-do center web management backend.
7. A unified to-do device based on cache and message queue, characterized in that: include: A unified to-do center construction module is used to build a unified to-do center based on the middleware. The unified to-do center is provided with internal services and is used to centrally process to-do tasks. An integration module is used to establish a to-do business collection service. The unified to-do service center service program integrates the redis cache mechanism and the kafka message queue to collect the to-do business data into the unified to-do center to become to-do business; An application platform terminal establishment module is used to establish an application platform terminal, wherein the application platform terminal is provided with a business platform with a visual interface, based on the business platform, the internal services of the unified to-do center are applied, and rules for processing the to-do tasks are set; A processing module, used for processing the to-do tasks based on the rules for processing the to-do tasks; Among them, the unified to-do center, to-do business collection service and application platform terminal are connected through the network.
8. The unified to-do device based on cache and message queue according to claim 7, characterized in that: The device also includes: a web module, which is used to establish a unified to-do center web-side management background.
9. A computer device, comprising a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the steps of the unified to-do method based on cache and message queue as described in any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the unified to-do method based on cache and message queue as described in any one of claims 1 to 6.
