Container management method, electronic equipment and computer readable storage medium
By introducing the middleware module into the container management system and establishing a dedicated communication channel, the problems of response delay and unstable data transmission in the existing simulation system are solved, efficient management of multiple users and container modules is achieved, and the accuracy and reliability of the simulation are improved.
Patent Information
- Application Number
- CN202510623342.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-14
- Publication Date
- 2025-09-19
AI Technical Summary
Existing simulation systems based on container technology have room for optimization in the container creation, management, and destruction processes in multi-user scenarios. In particular, problems such as response delays and untimely resource allocation may occur in simulation tasks with high real-time requirements. At the same time, the stability and consistency of data transmission are difficult to guarantee, which may lead to data loss or transmission errors, affecting the accuracy and reliability of the simulation.
By introducing the middle platform module into the container management system, establishing a primary communication channel between the front-end module and the middle platform module, and a secondary communication channel between the middle platform module and the container module, unified management of multiple users and container modules is achieved. The middle platform module establishes a dedicated communication channel with the container module based on user information, ensuring real-time and reliable data transmission.
It effectively reduces response delays and untimely resource allocation, improves the stability and consistency of data transmission, and reduces the risk of data loss or transmission errors, thereby improving the accuracy and reliability of simulation.
Smart Images

Figure CN120670081A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer network technology, and in particular to a container management method, an electronic device, and a computer-readable storage medium. Background Art
[0002] With the continuous development of simulation technology, its application is becoming more and more extensive in various fields, such as scientific research, engineering design, education and training. As an emerging simulation technology, simulation robot containers can provide users with highly customized simulation environments to meet the simulation needs of different users in different scenarios.
[0003] Existing simulation systems based on container technology have room for improvement in the creation, management, and destruction of containers in multi-user scenarios. This is especially true for simulation tasks with high real-time requirements, which can lead to response delays or untimely resource allocation. Furthermore, frequent user operations on containers pose challenges to the stability and consistency of data transmission, potentially leading to data loss or transmission errors, which can affect the accuracy and reliability of the simulation. Summary of the Invention
[0004] The present application mainly provides a container management method, an electronic device and a computer-readable storage medium to solve the problems of response delay or untimely resource allocation when performing simulation tasks, and data loss or transmission errors during data transmission.
[0005] This application provides a container management method, which is applied to a container management system. The system includes a front-end module, a middle-end module, and a container module. The method includes:
[0006] The middle platform module obtains a login request through the front-end module, and the login request includes user information;
[0007] The middle platform module generates a response login message based on the login request, sends the response login message to the front-end module, and establishes a first communication channel with the front-end module based on the login request;
[0008] The middle platform module obtains the establishment instruction through the front-end module, and establishes a second communication channel with the container module based on the establishment instruction and the user information.
[0009] In some embodiments, the method further comprises:
[0010] The middle platform module obtains the registration request through the front-end module;
[0011] The middle platform module generates a registration response message containing the user information based on the registration request, and sends the registration response message to the front-end module.
[0012] In some embodiments, the method further comprises:
[0013] The middle platform module obtains operation instructions from the front-end module through the first channel;
[0014] The middle platform module transmits the operation instruction to the container module through the second communication channel, so that the container module generates an operation result after performing the operation based on the operation instruction, and transmits the operation result to the middle platform module through the second communication channel;
[0015] The middle platform module transmits the operation result to the front-end module through the first communication channel.
[0016] In some embodiments, the method further comprises:
[0017] The middle platform module obtains the user's exit request through the front-end module;
[0018] The middle platform module saves the user data based on the exit request, generates a response exit message, and transmits the response exit message to the front-end module through the first communication channel;
[0019] The middle platform module generates a destruction instruction based on the exit request, and transmits the destruction instruction to the container module through the second communication channel, so that the container module performs a destruction operation based on the destruction instruction.
[0020] In some embodiments, the response login message includes a login success message and a login failure message, and the step of the middle platform module generating the response login message based on the login request includes:
[0021] The middle platform module obtains the user information and verifies the user information;
[0022] If the verification is successful, the login success message is generated;
[0023] If the verification fails, the login failure message is generated.
[0024] In some embodiments, the step of establishing a first communication channel with the front-end module based on the login request includes:
[0025] The middle platform module establishes the first communication channel corresponding to the user information based on the user information;
[0026] The middle platform module generates a first feedback message and sends the first feedback message to the front-end module.
[0027] In some embodiments, the step of establishing a second communication channel with the container module based on the establishment instruction and the user information includes:
[0028] The middle platform module establishes the container module corresponding to the user information based on the user information;
[0029] The middle platform module sends the establishment instruction to the container module, so that the container module establishes the second communication channel with the middle platform module based on the establishment instruction, generates a second feedback message, and sends the second feedback message to the middle platform module;
[0030] The middle platform module sends the second feedback message to the front-end module.
[0031] The present application also provides a container management method, which is applied to a container management system. The system includes a front-end module, a middle-end module, and a container module. The method includes:
[0032] The front-end module obtains the registration request and sends the registration request to the middle-end module;
[0033] The middle platform module generates a registration response message containing user information based on the registration request, and sends the registration response message to the front-end module;
[0034] The front-end module obtains the login request and sends the login request to the middle-end module;
[0035] The middle platform module generates a response login message based on the login request, sends the response login message to the front-end module, and establishes a first communication channel with the front-end module based on the login request;
[0036] The middle platform module obtains the establishment instruction sent by the front-end module, and establishes a second communication channel with the container module based on the establishment instruction and the user information.
[0037] The present application also provides an electronic device, comprising: at least one processor and a memory;
[0038] The memory stores computer-executable instructions;
[0039] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method described above.
[0040] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the method described above is implemented.
[0041] The beneficial effects of the present application are: the present application establishes a first communication channel with the front-end module based on a login request through the middle platform module, and establishes a second communication channel with the container module based on establishment instructions and user information, so that each user can obtain exclusive container resources, which is convenient for unified management of multiple users and container modules, and can effectively reduce response delays or problems of untimely resource allocation; through the establishment of the first communication channel and the second communication channel, a dedicated communication channel is provided for data transmission between the front-end module and the middle platform module, and between the middle platform module and the container module. When the container module is frequently operated, the problem of data loss or transmission errors can be effectively reduced, thereby improving the accuracy and reliability of the simulation. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without inventive efforts. Among them:
[0043] Figure 1 This is a schematic diagram of the architecture of an embodiment of a container management system provided by the present application;
[0044] Figure 2 This is a flowchart of an embodiment of a container management method provided by the present application;
[0045] Figure 3 This is a flowchart of another embodiment of a container management method provided by the present application;
[0046] Figure 4 This is a flowchart of another embodiment of a container management method provided by the present application;
[0047] Figure 5 This is a flowchart of another embodiment of a container management method provided by the present application;
[0048] Figure 6 This is a flowchart of another embodiment of a container management method provided by the present application;
[0049] Figure 7 This is a timing diagram of an embodiment of a container management method provided by the present application;
[0050] Figure 8 This is a schematic structural diagram of an embodiment of an electronic device provided by the present application;
[0051] Figure 9 It is a structural diagram of an embodiment of a computer-readable storage medium provided by this application. DETAILED DESCRIPTION
[0052] The following embodiments of the technical solution of the present application will be described in detail with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application and are therefore only examples and are not intended to limit the scope of protection of the present application.
[0053] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned figure descriptions are intended to cover non-exclusive inclusions.
[0054] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0055] Existing simulation systems based on container technology have room for improvement in the creation, management, and destruction of containers in multi-user scenarios. This is especially true for simulation tasks with high real-time requirements, which can lead to response delays or untimely resource allocation. Furthermore, frequent user operations on containers pose challenges to the stability and consistency of data transmission, potentially leading to data loss or transmission errors, which can affect the accuracy and reliability of the simulation.
[0056] See Figure 1 As shown, Figure 1 This is a schematic diagram of the architecture of an embodiment of a container management system provided by this application. The container management system of this embodiment includes a front-end module, a middle-end module, and a container module.
[0057] The front-end module refers to the interface and functional modules that directly interact with users. It receives user input, such as registration requests, login requests, and operational instructions, and displays system feedback to the user. The front-end module typically presents itself as a graphical user interface or web page, providing a user-friendly operational experience. It also passes user requests to the middle-end module for processing.
[0058] The middle platform module is the core processing module located between the front-end module and the container module. It parses, verifies, and processes user requests transmitted by the front-end module and generates corresponding response messages. Furthermore, the middle platform module is responsible for resource scheduling, communication channel management, and coordination between users and containers. As the core control unit of the entire container management system, it ensures efficient system operation and collaborative work between modules.
[0059] The container module refers to a simulation robot container exclusive to each user. That is, the container module corresponds to the user and is a system component used to provide the user with an independent and isolated simulation running environment to meet the user's personalized needs and resource isolation requirements in simulation tasks.
[0060] Among them, the front-end module, middle-end module and container module communicate through standardized interfaces.
[0061] The container management system of this embodiment includes a front-end module, a middle-end module and a container module. By adopting a modular design, it facilitates the maintenance and expansion of the system, and improves the flexibility and scalability of the system; the modular design also makes the functions of each module independent and clear, which facilitates development and maintenance by technical personnel and reduces the complexity and cost of system maintenance.
[0062] See Figure 2 As shown, Figure 2 This is a flow chart of an embodiment of a container management method provided by this application. The container management method of this embodiment is applied to a container management system and includes:
[0063] Step S130: The middle platform module obtains a login request through the front-end module, and the login request includes user information.
[0064] The login request refers to a request for verifying the user's identity and logging into the system.
[0065] The user first submits a login request through the front-end interface of the front-end module, and the front-end module sends the login request to the middle-end module; at this time, the middle-end module obtains the login request through the front-end module to process the login request.
[0066] The login request includes user information, that is, the login request contains user information.
[0067] User information refers to the number or string used to identify each user in the container management system; it is also called the user ID. User information includes but is not limited to ID numbers, account numbers, unique codes, or dedicated numbers.
[0068] In addition, the login request also includes the user's login password. For example, the user enters user information and login password into the front-end interface of the front-end module, and the front-end module then sends the user information and login password to the middle-end module, so that the middle-end module can obtain the user information and login password through the front-end module.
[0069] Step S140: The middle platform module generates a response login message based on the login request, sends the response login message to the front-end module, and establishes a first communication channel with the front-end module based on the login request.
[0070] In some embodiments, after the middle platform module obtains the login request, it first parses the login request, that is, extracts and analyzes the user information contained in the login request; then verifies the login request, for example, verifies whether the user information is correct; then processes the login request, that is, generates a response login message based on the login request; finally, sends the response login message to the front-end module; at the same time, the middle platform module establishes a first communication channel with the front-end module according to the login request.
[0071] The login response message is the feedback information generated by the middleware module after parsing, verifying (testing), and processing the login request sent by the front-end module. The login response message informs the front-end module whether the user login is successful. Login response messages include login success messages and login failure messages.
[0072] The first communication channel refers to a dedicated communication link established between the middleware module and the front-end module for data transmission and interaction. It can support real-time data interaction and ensure the efficiency and security of data transmission. The first communication channel includes but is not limited to the Websocket communication channel.
[0073] Among them, Websocket is a communication protocol used to create real-time, two-way communication channels in web applications.
[0074] In some embodiments, the middle platform module obtains user information, that is, the middle platform module extracts the user information in the login request and verifies the user information; if the verification is successful, a login success message is generated, and the login success message is sent to the front-end module, so that the front-end module can feedback the login success to the user; if the verification fails, a login failure message is generated, and the login failure message is sent to the front-end module, so that the front-end module can feedback the login failure to the user.
[0075] In some embodiments, the middle platform module obtains the user information and login password contained in the login request, and verifies the user information and login password; if the user information and login password are both verified successfully, a login success message is generated, and the login success message is sent to the front-end module, so that the front-end module can feedback the login success to the user; if the user information and / or login password verification fails, a login failure message is generated, and the login failure message is sent to the front-end module, so that the front-end module can feedback the login failure to the user.
[0076] In some embodiments, after the middle platform module generates a successful login message after successful verification, the middle platform module establishes a first communication channel corresponding to the user information based on the user information; that is, the middle platform module establishes a first communication channel exclusive to the user based on the user information, and then the middle platform module can establish different first communication channels according to different user information of different users; after the first communication channel is successfully established, the middle platform module generates a first feedback message and sends the first feedback message to the front-end module.
[0077] Among them, the first feedback message refers to the feedback information generated and sent to the front-end module after the middle platform module successfully establishes the first communication channel with the front-end module for the user, which is used to inform the front-end module of the establishment status of the first communication channel.
[0078] Step S150: The middle platform module obtains the establishment instruction through the front-end module, and establishes a second communication channel with the container module based on the establishment instruction and user information.
[0079] After the front-end module obtains the first feedback message, it sends the establishment instruction to the middle-stage module through the first communication channel; at this time, the middle-stage module obtains the establishment instruction through the front-end; wherein the establishment instruction includes user information; the middle-stage module establishes a second communication channel with the container module based on the establishment instruction and user information.
[0080] The "establishment" instruction requests the middleware module to create a second communication channel between the user and the container module. This second communication channel is a dedicated communication link established between the middleware module and the container module based on the establishment instruction and user information. This channel is used for data exchange between the user and the simulation robot container, ensuring that the user can perform simulation tasks within the container in real time and stably.
[0081] In some embodiments, the middle platform module first establishes a container module corresponding to the user information based on the user information; that is, it automatically creates an exclusive simulation robot container according to the user information, and then the middle platform module can create different container modules according to the different user information of different users; the middle platform module then sends the establishment instruction to the container module, so that the container module establishes a second communication channel with the middle platform module based on the establishment instruction; then the container module generates a second feedback message, and sends the second feedback message to the middle platform module through the second communication channel; finally, the middle platform module sends the second feedback message to the front-end module.
[0082] Among them, the second feedback message refers to the feedback information generated and sent to the middle platform module and the front-end module after the container module successfully establishes the second communication channel with the middle platform module, which is used to inform the middle platform module and the front-end module of the establishment status of the second communication channel.
[0083] In some embodiments, the creation and management of container modules are implemented through the Docker API, and the middle platform module communicates with the container module daemon through the Docker Java library to dynamically create and destroy container modules.
[0084] Through the above-mentioned container management method, after the user logs in to the container management system, the front-end module establishes a first communication channel with the middle platform module, and the middle platform module establishes a second communication channel with the container module. The middle platform module can realize unified management of multiple users and container modules.
[0085] For example, Figure 1 As shown, three users, namely user No. 1, user No. 2 and user No. 3, log in through the front-end module; three channels are established between the front-end module and the middle-end module corresponding to the three users, namely the first communication channel No. 1, the first communication channel No. 2 and the first communication channel No. 3; the container modules corresponding to the three users are container module No. 1, container module No. 2 and container module No. 3; the middle-end module establishes second communication channels with container module No. 1, container module No. 2 and container module No. 3, namely the second communication channel No. 1, the second communication channel No. 2 and the second communication channel No. 3.
[0086] See also Figure 3 As shown, Figure 3 This is a flow chart of another embodiment of a container management method provided by this application, Figure 2 The difference is that the container management method of this embodiment also includes:
[0087] Step S110: The middle platform module obtains the registration request through the front-end module.
[0088] A registration request is a request to create a new user account. It includes user-related information and a login password. The relevant information includes, but is not limited to, a username or phone number. The login password is user-defined.
[0089] The user first registers through the front-end module, that is, submits a registration request through the front-end interface of the front-end module, and the front-end module sends the registration request to the middle-end module; at this time, the middle-end module obtains the registration request through the front-end module.
[0090] Step S120: The middle platform module generates a registration response message containing user information based on the registration request, and sends the registration response message to the front-end module.
[0091] The registration response message is the feedback information generated by the middle platform module after parsing and processing the registration request sent by the front-end module. The registration response message is used to inform the front-end module whether the user registration is successful.
[0092] The middle platform module generates and distributes user information based on the registration request, and stores the user information in the database so that users can be managed based on the user information; at the same time, the middle platform module generates a response registration message, which includes user information, and sends the response registration message to the front-end module. The front-end module provides feedback to the user so that the user can log in based on the user information.
[0093] In some embodiments, when users register and log in, the Spring Boot framework is used to build the backend service, the MySQL database stores user information, and Redis caches user session information; the front end uses the Vue.js framework, and HTTP requests are sent through Axios to implement user registration and login; the WebSocket channel is implemented through Spring WebSocket to ensure real-time communication.
[0094] See also Figure 4 As shown, Figure 4 This is a flow chart of another embodiment of a container management method provided by this application, Figure 2 The difference is that the container management method of this embodiment also includes:
[0095] Step S160: The middle platform module obtains operation instructions from the front-end module through the first channel.
[0096] Among them, operation instructions refer to instructions sent by users to the middle-end module through the front-end module, which are used to perform various operations on the container module.
[0097] In some embodiments, after the front-end module obtains the second feedback message, it jumps to the operation interface, that is, it provides feedback to the user through the front-end interface; at this time, the user inputs the operation instruction to the front-end module, and the front-end module sends the operation instruction to the middle-end module through the first communication channel, so that the middle-end module obtains the operation instruction through the front-end module.
[0098] Step S170: The middle platform module transmits the operation instruction to the container module through the second communication channel, so that the container module generates an operation result after performing the operation based on the operation instruction, and transmits the operation result to the middle platform module through the second communication channel.
[0099] Wherein, the operation instruction includes user information. In some embodiments, the middle platform module sends the operation instruction to the container module corresponding to the user information via the second communication channel based on the user information, so that the container module generates an operation result after performing the operation according to the operation instruction, and transmits the operation result to the middle platform module via the second communication channel.
[0100] Step S180: The middle platform module transmits the operation result to the front-end module through the first communication channel.
[0101] After the middle platform module obtains the operation result through the second communication channel, it transmits the operation result to the front-end module through the first communication channel, so that the front-end module displays the operation result to the user through the front-end interface.
[0102] In some embodiments, operation instructions and operation results are WebSocket messages, and their processing is implemented through Spring WebSocket and Simple Text Oriented Messaging Protocol (STOMP protocol) to ensure the real-time and reliability of messages; message queues (such as RabbitMQ) are used to transmit operation instructions and operation results between the middle platform module and the container module to ensure the order and consistency of messages.
[0103] The middle platform module of this embodiment establishes a first communication channel with the front-end module, and the middle platform module establishes a second communication channel with the container module. By establishing real-time communication channels between the front-end module and the middle platform module, and between the middle platform module and the container module, real-time transmission of operation instructions and operation results is achieved; the user's operation instructions in the front-end module can be quickly transmitted to the corresponding container module, and the operation results can be fed back in real time, which improves the user's operation experience and the system's response speed, so that the user can obtain a smooth and timely interactive experience in the simulation environment.
[0104] See also Figure 5 As shown, Figure 5 This is a flow chart of another embodiment of a container management method provided by this application, Figure 4The difference is that the container management method of this embodiment also includes:
[0105] Step S190: The middle platform module obtains the user's exit request through the front-end module.
[0106] The logout request refers to a request for actively ending the current user session and logging out of the system.
[0107] The user submits an exit request through the front-end module, and the front-end module transmits the exit request to the middle-end module through the first communication channel.
[0108] Step S200: The middle platform module saves the user data based on the exit request, generates a response exit message, and transmits the response exit message to the front-end module through the first communication channel.
[0109] After the middle platform module obtains the user's exit request, it responds to the exit request, saves the user data, and generates a response exit request message, and transmits the response exit message to the front-end module through the first communication channel so that the front-end module can feedback to the user.
[0110] User data refers to all user-related information and operation records in the container management system. These data need to be saved when the user exits the system to ensure that the user's work progress and settings are not lost.
[0111] Step S210: The middle platform module generates a destruction instruction based on the exit request, and transmits the destruction instruction to the container module through the second communication channel, so that the container module performs a destruction operation based on the destruction instruction.
[0112] Among them, the destruction instruction refers to the instruction generated and sent to the container module by the middle platform module after receiving the user's exit request, which is used to instruct the container module to perform the destruction operation and release the user-exclusive container module and its related resources.
[0113] Among them, the destruction instruction includes user information, and the middle platform module transmits the destruction instruction containing user information to the corresponding container module through the second communication channel, so that the corresponding container module performs the destruction operation according to the destruction instruction.
[0114] This embodiment achieves efficient resource utilization by automatically creating and destroying user-specific container modules; the middle platform module creates the container module in real time after the user logs in, and automatically destroys the container module after the user logs out, avoiding waste of resources; at the same time, user data is automatically saved and backed up when exiting to ensure data security and integrity; this not only improves the system's resource management efficiency, but also enhances the security and reliability of user data.
[0115] See Figure 6-Figure 7 As shown, Figure 6This is a flowchart of another embodiment of a container management method provided by the present application; Figure 7 This is a timing diagram of an embodiment of a container management method provided by this application. The container management method of this embodiment is applied to a container management system, which includes a front-end module, a middle-end module, and a container module. The method includes:
[0116] Step S100: The front-end module obtains a registration request and sends the registration request to the middle-end module.
[0117] See the above step S110, which will not be described in detail here. Figure 7 As shown, the user accesses the front-end interface of the front-end module, initiates registration, and the front-end module initiates a registration request.
[0118] Step S200: The middle platform module generates a registration response message containing user information based on the registration request, and sends the registration response message to the front-end module.
[0119] See step S120 above, which will not be described in detail here. Figure 7 As shown, the middle platform module stores user information in the database and feeds back the registration results to the front-end module; the front-end module feeds back the registration results to the user.
[0120] Step S300: The front-end module obtains a login request and sends the login request to the middle-end module.
[0121] See the above step S130, which will not be described in detail here. Figure 7 As shown, the user accesses the front-end interface of the front-end module and logs into the system (container management system), and the front-end module carries a login message.
[0122] Step S400: The middle platform module generates a response login message based on the login request, sends the response login message to the front-end module, and establishes a first communication channel with the front-end module based on the login request.
[0123] See the above step S140, which will not be described in detail here. Figure 7 As shown, the middle platform module verifies the user information. If the verification is successful, it returns the login result to the front-end module. The front-end jumps to the resource loading page, and the middle platform module establishes a WebSocket channel in the front-end direction. If the establishment is successful, the middle platform module provides feedback to the front-end module.
[0124] Step S500: The middle platform module obtains the establishment instruction sent by the front-end module, and establishes a second communication channel with the container module based on the establishment instruction and user information.
[0125] See the above step S150, which will not be described in detail here. Figure 7As shown, the front-end module notifies the middle platform to establish a WebSocket channel in the container direction, the middle platform module establishes the WebSocket channel in the container direction, the container module receives the connection and establishes the WebSocket channel; if the establishment is successful, the container module provides feedback to the middle platform module, and the middle platform module provides feedback to the front-end module; the front-end jumps to the operation interface, and the user starts the operation.
[0126] Figure 8 This is a schematic diagram of the structure of an embodiment of an electronic device provided by this application. Figure 8 As shown, the electronic device includes a processor 21 and a memory 22 coupled to the processor 21 .
[0127] The memory 22 stores program instructions for implementing the method of any of the above embodiments; the processor 21 is used to execute the program instructions stored in the memory 22 to implement the steps of the above method embodiments. The processor 21 can also be called a CPU (Central Processing Unit). The processor 21 may be an integrated circuit chip with signal processing capabilities. The processor 21 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0128] Figure 9 This is a schematic diagram of the structure of an embodiment of a computer-readable storage medium provided by this application. Figure 9 As shown, the computer-readable storage medium 30 of the embodiment of the present application stores program instructions 31, and when the program instructions 31 are executed, the method provided in the above embodiment of the present application is implemented. Among them, the program instructions 31 can form a program file and be stored in the above-mentioned computer-readable storage medium 30 in the form of a software product, so that a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) executes all or part of the steps of the various embodiments of the present application. The aforementioned computer-readable storage medium 30 includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or terminal devices such as a computer, a server, a mobile phone, and a tablet.
[0129] In the several embodiments provided in this application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For example, the division of modules is only a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or module, which can be electrical, mechanical or other forms.
[0130] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.
[0131] The above description is only an implementation method of the present application and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the description and drawings of this application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A container management method, characterized in that: Applied to a container management system, the system includes a front-end module, a middle-end module, and a container module, and the method includes: The middle platform module obtains a login request through the front-end module, and the login request includes user information; The middle platform module generates a response login message based on the login request, sends the response login message to the front-end module, and establishes a first communication channel with the front-end module based on the login request; The middle platform module obtains the establishment instruction through the front-end module, and establishes a second communication channel with the container module based on the establishment instruction and the user information.
2. The method according to claim 1, characterized in that The method further comprises: The middle platform module obtains the registration request through the front-end module; The middle platform module generates a registration response message containing the user information based on the registration request, and sends the registration response message to the front-end module.
3. The method according to claim 2, characterized in that The method further comprises: The middle platform module obtains operation instructions from the front-end module through the first communication channel; The middle platform module transmits the operation instruction to the container module through the second communication channel, so that the container module generates an operation result after performing the operation based on the operation instruction, and transmits the operation result to the middle platform module through the second communication channel; The middle platform module transmits the operation result to the front-end module through the first communication channel.
4. The method according to claim 3, characterized in that The method further comprises: The middle platform module obtains the user's exit request through the front-end module; The middle platform module saves the user data based on the exit request, generates a response exit message, and transmits the response exit message to the front-end module through the first communication channel; The middle platform module generates a destruction instruction based on the exit request, and transmits the destruction instruction to the container module through the second communication channel, so that the container module performs a destruction operation based on the destruction instruction.
5. The method according to claim 1, wherein The response login message includes a login success message and a login failure message, and the step of the middle platform module generating a response login message based on the login request includes: The middle platform module obtains the user information and verifies the user information; If the verification is successful, the login success message is generated; If the verification fails, the login failure message is generated.
6. The method according to claim 5, characterized in that The step of establishing a first communication channel with the front-end module based on the login request includes: The middle platform module establishes the first communication channel corresponding to the user information based on the user information; The middle platform module generates a first feedback message and sends the first feedback message to the front-end module.
7. The method according to claim 6, characterized in that The step of establishing a second communication channel with the container module based on the establishment instruction and the user information includes: The middle platform module establishes the container module corresponding to the user information based on the user information; The middle platform module sends the establishment instruction to the container module, so that the container module establishes the second communication channel with the middle platform module based on the establishment instruction, generates a second feedback message, and sends the second feedback message to the middle platform module; The middle platform module sends the second feedback message to the front-end module.
8. A container management method, characterized in that: Applied to a container management system, the system includes a front-end module, a middle-end module, and a container module, and the method includes: The front-end module obtains the registration request and sends the registration request to the middle-end module; The middle platform module generates a registration response message containing user information based on the registration request, and sends the registration response message to the front-end module; The front-end module obtains the login request and sends the login request to the middle-end module; The middle platform module generates a response login message based on the login request, sends the response login message to the front-end module, and establishes a first communication channel with the front-end module based on the login request; The middle platform module obtains the establishment instruction sent by the front-end module, and establishes a second communication channel with the container module based on the establishment instruction and the user information.
9. An electronic device, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the method according to any one of claims 1 to 7 is implemented.