Message processing method and device of cloud platform, equipment, medium and product
By adopting unicast forwarding message processing between cloud platforms under the conditions of hybrid cloud deployment, the problem that unmanned vehicles may be connected to the wrong cloud platform is solved, and the reliability and stability of unmanned vehicle operations are improved.
Patent Information
- Application Number
- CN202411745394.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-02-28
AI Technical Summary
Under the conditions of hybrid cloud deployment, the cloud platform's message processing reliability is low, resulting in the unmanned vehicle being connected to the wrong cloud platform and unable to achieve operational management.
Through the unicast forwarding message processing between cloud platforms, ensure the consistency of unmanned vehicle routing. The specific steps include receiving service messages, determining cache hit results, obtaining routing information, matching the cloud platform, and unicasting the message to the target cloud platform if it does not match.
Improve the reliability and stability of unmanned vehicle operations, ensuring the reliability of message processing and routing consistency.
Smart Images

Figure CN119544659A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a message processing method, device, equipment, medium and product for a cloud platform. Background Art
[0002] In order to improve the stability of unmanned vehicle operation, the backend services of unmanned vehicles are usually deployed in hybrid cloud, that is, the backend services are composed of multiple cloud platforms. When a cloud platform fails, switching to other cloud platforms can ensure the normal operation of the backend services, thereby ensuring the reliability of unmanned vehicle operation.
[0003] At present, when multiple cloud platforms are in normal service, the unmanned vehicle is connected to a cloud platform through domain name resolution. However, due to the unreliability of domain names, the unmanned vehicle that should be connected to cloud platform A may be connected to cloud platform B, resulting in the application layer being unable to perceive the unmanned vehicle, and thus unable to achieve the operation and management of the unmanned vehicle. Therefore, a cloud platform message processing method is needed to achieve reliable message processing under the condition that the unmanned vehicle backend service is deployed as a hybrid cloud, so as to ensure the reliability and stability of the unmanned vehicle operation. Summary of the invention
[0004] The present invention provides a cloud platform message processing method, device, equipment, medium and product to solve the problem of low reliability of cloud platform message processing under hybrid cloud deployment conditions. Through the message processing method of unicast forwarding between cloud platforms, the consistency of unmanned vehicle routing is ensured, which is conducive to improving the reliability and stability of unmanned vehicle operation.
[0005] According to one aspect of the present invention, a message processing method for a cloud platform is provided, the method being executed by a first cloud platform, the first cloud platform being any cloud platform in a backend service, the backend service including at least two cloud platforms, the method comprising:
[0006] If a first service message is received, determining a cache hit result of the first service message; wherein the first service message is a service message sent by the unmanned vehicle;
[0007] If it is determined according to the cache hit result that the first service message has been cached, then obtaining routing information in the first service message; the routing information includes a cloud platform identifier;
[0008] Determining, according to the cloud platform identifier, a matching result between the first service message and the first cloud platform;
[0009] If it is determined according to the matching result that the first service message does not match the first cloud platform, the first service message is unicast forwarded to the target cloud platform according to the cloud platform identifier.
[0010] According to another aspect of the present invention, a message processing device for a cloud platform is provided, wherein the device is configured on a first cloud platform, wherein the first cloud platform is any cloud platform in a backend service, wherein the backend service includes at least two cloud platforms, and the device includes:
[0011] A first cache result determination module, configured to determine a cache hit result of a first service message if the first service message is received; wherein the first service message is a service message sent by an unmanned vehicle;
[0012] A first routing information acquisition module, configured to acquire routing information in the first service message if it is determined according to the cache hit result that the first service message has been cached; the routing information includes a cloud platform identifier;
[0013] A first matching result determination module, configured to determine a matching result between the first service message and the first cloud platform according to the cloud platform identifier;
[0014] The business message forwarding module is used to unicast forward the first business message to a target cloud platform according to the cloud platform identifier if it is determined according to the matching result that the first business message does not match the first cloud platform.
[0015] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:
[0016] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the message processing method of the cloud platform described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the message processing method of the cloud platform described in any embodiment of the present invention when executed.
[0018] According to another aspect of the present invention, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the computer program implements the message processing method of the cloud platform described in any embodiment of the present invention.
[0019] The technical solution of the embodiment of the present invention is to determine the cache hit result of the first business message when the first cloud platform receives the first business message, and the first business message is a business message sent by the unmanned vehicle; if it is determined that the first business message has been cached according to the cache hit result, then obtain the routing information in the first business message; the routing information includes a cloud platform identifier; according to the cloud platform identifier, determine the matching result between the first business message and the first cloud platform; if it is determined that the first business message does not match the first cloud platform according to the matching result, then unicast forward the first business message to the target cloud platform according to the cloud platform identifier. This technical solution solves the problem of low reliability of message processing of cloud platforms under hybrid cloud deployment conditions, and ensures the consistency of unmanned vehicle routing through the message processing method of unicast forwarding between cloud platforms, which is conducive to improving the reliability and stability of unmanned vehicle operations.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 This is a flowchart of a message processing method of a cloud platform provided according to Embodiment 1 of the present invention;
[0023] Figure 2 This is a flowchart of a message processing method of a cloud platform provided according to Embodiment 2 of the present invention;
[0024] Figure 3 This is a flowchart of a message processing method of a cloud platform provided according to Embodiment 3 of the present invention;
[0025] Figure 4 This is a schematic diagram of the structure of a message processing device for a cloud platform provided according to a fourth embodiment of the present invention;
[0026] Figure 5 It is a structural schematic diagram of an electronic device for implementing the message processing method of the cloud platform according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. The acquisition, storage, use, processing, etc. of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0029] Embodiment 1
[0030] Figure 1 A flowchart of a cloud platform message processing method is provided for the first embodiment of the present invention. This embodiment can be applied to unmanned vehicle operation scenarios, especially the processing of unmanned vehicle service messages by the cloud platform under hybrid cloud deployment conditions. The method can be executed by a cloud platform message processing device, which can be implemented in the form of hardware and / or software, and can be configured in an electronic device. Figure 1 As shown, the method includes:
[0031] S110. If a first service message is received, determine a cache hit result of the first service message; wherein the first service message is a service message sent by an unmanned vehicle.
[0032] This solution can be executed by the first cloud platform, specifically by the proxy service in the first cloud platform. The first cloud platform is one of multiple cloud platforms for backend services, and the backend service can be an unmanned vehicle operation and management service deployed in a hybrid cloud. If the first cloud platform receives a first business message, it can detect whether the first business message has been cached in the cache space to obtain a cache hit result for the first business message. Among them, the first business message is a business message sent by an unmanned vehicle, such as a connection request between the unmanned vehicle and the cloud platform, the response information of the unmanned vehicle to a control instruction, etc.
[0033] S120. If it is determined according to the cache hit result that the first service message has been cached, then obtain routing information in the first service message; the routing information includes a cloud platform identifier.
[0034] If the first cloud platform detects the first business message in the cache space, it determines that the first business message has been cached. It is understandable that the first business message includes the routing information of the business message, and the routing message may include the identifier of the destination cloud platform to which the first business message is to be transmitted, and may also include information such as the unmanned vehicle identifier, the name of the unmanned vehicle, the destination service copy identifier, and the destination service copy network address. The first cloud platform can parse the first business message, extract the routing information in the first business message, and then extract the cloud platform identifier from the routing information.
[0035] S130. Determine a matching result between the first service message and the first cloud platform according to the cloud platform identifier.
[0036] The first cloud platform can determine whether the first cloud platform is the destination cloud platform of the first business message based on the cloud platform identifier in the first business message. Specifically, the first cloud platform can compare whether the cloud platform identifier in the first business message is consistent with the first cloud platform identifier. If so, it is determined that the first business message matches the first cloud platform; if not, it is determined that the first business message does not match the first cloud platform.
[0037] S140: If it is determined according to the matching result that the first service message does not match the first cloud platform, unicast forwarding the first service message to a target cloud platform according to the cloud platform identifier.
[0038] If the first business message does not match the first cloud platform, the first cloud platform can determine the target cloud platform in the pre-stored backend service routing information table, and forward the first business message to the target cloud platform in a unicast manner to ensure routing consistency when the unmanned vehicle domain name resolution error occurs. The backend service routing information table may include information such as the identifier of each cloud platform, the service copy identifier in each cloud platform, the service copy name in each cloud platform, the service copy network address in each cloud platform, and the unmanned vehicle identifier within the backend service management scope. After receiving the first business message, the target cloud platform can process the first business message.
[0039] The technical solution of the embodiment of the present invention is to determine the cache hit result of the first business message when the first cloud platform receives the first business message, and the first business message is a business message sent by the unmanned vehicle; if it is determined that the first business message has been cached according to the cache hit result, then obtain the routing information in the first business message; the routing information includes a cloud platform identifier; according to the cloud platform identifier, determine the matching result between the first business message and the first cloud platform; if it is determined that the first business message does not match the first cloud platform according to the matching result, then unicast forward the first business message to the target cloud platform according to the cloud platform identifier. This technical solution solves the problem of low reliability of message processing of cloud platforms under hybrid cloud deployment conditions, and ensures the consistency of unmanned vehicle routing through the message processing method of unicast forwarding between cloud platforms, which is conducive to improving the reliability and stability of unmanned vehicle operations.
[0040] Embodiment 2
[0041] Figure 2 This is a flow chart of a message processing method for a cloud platform provided in Embodiment 2 of the present invention. This embodiment is refined based on the above embodiment. Figure 2 As shown, the method includes:
[0042] S210. If a first service message is received, determine a cache hit result of the first service message; wherein the first service message is a service message sent by an unmanned vehicle.
[0043] S220: Determine whether the first service message has been cached according to the cache hit result.
[0044] If the first service message has been cached, it means that the unmanned vehicle is online, so S230 can continue to be executed. If the first service message is not cached, it means that the unmanned vehicle is not online. The first cloud platform can execute S280 and directly discard the first service message.
[0045] S230. Obtain routing information in the first service message; the routing information includes a cloud platform identifier.
[0046] S240. Determine a matching result between the first service message and the first cloud platform according to the cloud platform identifier.
[0047] S250. Determine whether the first business message matches the first cloud platform according to the matching result.
[0048] If the first business message does not match the first cloud platform, execute S260; if the first business message matches the first cloud platform, execute S270.
[0049] S260. Unicast forwarding the first service message to a target cloud platform according to the cloud platform identifier.
[0050] S270. According to the service replica identifier, unicast forward the first business message to the target service replica in the first cloud platform.
[0051] It is easy to understand that each cloud platform may include multiple service replicas, and the routing information in the first business message also includes a service replica identifier. If the first business message matches the first cloud platform, the first cloud platform can determine the destination service replica of the first business message based on the service replica identifier in the routing information. The first cloud platform can match the service replica identifier in the routing information with each service replica in the first cloud platform, and use the service replica in the first cloud platform that is consistent with the service replica identifier as the target service replica.
[0052] S280: discard the first service message.
[0053] The technical solution of the embodiment of the present invention is to determine the cache hit result of the first business message when the first cloud platform receives the first business message, and the first business message is a business message sent by the unmanned vehicle; if it is determined that the first business message has been cached according to the cache hit result, then obtain the routing information in the first business message; the routing information includes a cloud platform identifier; according to the cloud platform identifier, determine the matching result between the first business message and the first cloud platform; if it is determined that the first business message does not match the first cloud platform according to the matching result, then unicast forward the first business message to the target cloud platform according to the cloud platform identifier. This technical solution solves the problem of low reliability of message processing of cloud platforms under hybrid cloud deployment conditions, and ensures the consistency of unmanned vehicle routing through the message processing method of unicast forwarding between cloud platforms, which is conducive to improving the reliability and stability of unmanned vehicle operations.
[0054] Embodiment 3
[0055] Figure 3 This is a flow chart of a message processing method for a cloud platform provided in Embodiment 3 of the present invention. This embodiment is refined based on the above embodiment. Figure 3 As shown, the method includes:
[0056] S310. If a second business message is received, determine the cache hit result of the second business message; wherein the second business message is a business message forwarded by a second cloud platform, and the second cloud platform is a cloud platform other than the first cloud platform in the backend service.
[0057] If the first cloud platform receives the second service message, it can detect whether the second service message has been cached in the cache space to obtain a cache hit result of the second service message. The second service message is a service message sent by the second cloud platform, which is a cloud platform other than the first cloud platform in the backend service.
[0058] In other words, the second service message is sent by the unmanned vehicle to the second cloud platform, but is not matched with the second cloud platform. Since the second service message is not matched with the second cloud platform, the second cloud platform forwards the second service message to the first cloud platform to determine whether the second service message is matched with the first cloud platform.
[0059] S320: Determine whether the second service message has been cached according to the cache hit result.
[0060] If the first cloud platform detects the second service message in the cache space, it determines that the second service message has been cached, and continues to execute S330. If the first cloud platform does not detect the second service message in the cache space, it determines that the second service message has not been cached, and executes S380.
[0061] S330. Obtain routing information in the second service message; the routing information includes a cloud platform identifier.
[0062] It can be understood that, like the first business message, the second business message also includes the routing information of the business message, and the routing message may include the identifier of the destination cloud platform to which the second business message is to be transmitted, and may also include the unmanned vehicle identifier, the name of the unmanned vehicle, the destination service replica identifier, and the destination service replica network address, etc. The first cloud platform may parse the second business message, extract the routing information in the second business message, and then extract the cloud platform identifier from the routing information.
[0063] S340. Determine a matching result between the second service message and the first cloud platform according to the cloud platform identifier.
[0064] The first cloud platform can determine whether the first cloud platform is the destination cloud platform of the second business message based on the cloud platform identifier in the second business message. Specifically, the first cloud platform can compare whether the cloud platform identifier in the second business message is consistent with the first cloud platform identifier. If so, it is determined that the second business message matches the first cloud platform; if not, it is determined that the second business message does not match the first cloud platform.
[0065] S350. Determine whether the second business message matches the first cloud platform according to the matching result.
[0066] If the second service message matches the first cloud platform, it means that the first cloud platform is the destination cloud platform of the second service message, and then S360 is executed. If the second service message does not match the first cloud platform, it means that the first cloud platform is not the destination cloud platform of the second service message, and then the second service message is discarded and S370 is executed.
[0067] S360. Forward the second business message to the target service replica in the first cloud platform according to the service replica identifier.
[0068] It is easy to understand that each cloud platform may include multiple service replicas, and the routing information in the second business message also includes a service replica identifier. If the second business message matches the first cloud platform, the first cloud platform can determine the destination service replica of the second business message based on the service replica identifier in the routing information. The first cloud platform can match the service replica identifier in the routing information with each service replica in the first cloud platform, and use the service replica in the first cloud platform that is consistent with the service replica identifier as the target service replica.
[0069] S370: discard the second service message.
[0070] S380: Determine whether the second service message is an unmanned vehicle online message.
[0071] If the first cloud platform does not detect the second business message in the cache space, it is determined that the second business message is not cached, and the first cloud platform can further determine whether the second business message is an unmanned vehicle online message.
[0072] S390: Cache the second business message, and broadcast the unmanned vehicle online message in the service copy in the first cloud platform.
[0073] If the second business message is a message that the unmanned vehicle is online, the second business message is cached and the message that the unmanned vehicle is online is broadcast in the service copy in the first cloud platform. If the second business message is not a message that the unmanned vehicle is online, it means that the unmanned vehicle is not online, and the first cloud platform can discard the second business message.
[0074] The technical solution of the embodiment of the present invention is to determine the cache hit result of the second business message when the first cloud platform receives the second business message; if it is determined that the second business message has been cached according to the cache hit result, then obtain the routing information in the second business message; the routing information includes a cloud platform identifier; according to the cloud platform identifier, determine the matching result between the second business message and the first cloud platform; if it is determined that the second business message matches the first cloud platform according to the matching result, then forward the second business message to the target service copy in the first cloud platform according to the service copy identifier. This technical solution solves the problem of low reliability of cloud platform message processing under hybrid cloud deployment conditions, and ensures the consistency of unmanned vehicle routing through unicast forwarding message processing between cloud platforms, which is conducive to improving the reliability and stability of unmanned vehicle operations.
[0075] Embodiment 4
[0076] Figure 4This is a schematic diagram of the structure of a message processing device for a cloud platform provided in Embodiment 4 of the present invention. The device is configured on a first cloud platform, which is any cloud platform in a backend service, and the backend service includes at least two cloud platforms. Figure 4 As shown, the device comprises:
[0077] A first cache result determination module 410 is configured to determine a cache hit result of a first service message if the first service message is received; wherein the first service message is a service message sent by an unmanned vehicle;
[0078] A first routing information acquisition module 420 is configured to acquire routing information in the first service message if it is determined that the first service message has been cached according to the cache hit result; the routing information includes a cloud platform identifier;
[0079] A first matching result determination module 430, configured to determine a matching result between the first service message and the first cloud platform according to the cloud platform identifier;
[0080] The business message forwarding module 440 is used to unicast forward the first business message to a target cloud platform according to the cloud platform identifier if it is determined according to the matching result that the first business message does not match the first cloud platform.
[0081] In this solution, the routing information also includes a service replica identifier;
[0082] The first matching result determination module 430 is further configured to:
[0083] After determining the matching result between the first business message and the first cloud platform, if it is determined according to the matching result that the first business message matches the first cloud platform, the first business message is unicast forwarded to the target service copy in the first cloud platform according to the service copy identifier.
[0084] In a feasible solution, the first cache result determination module 410 is further used to:
[0085] After determining a cache hit result of the first service message, if it is determined according to the cache hit result that the first service message is not cached, the first service message is discarded.
[0086] In this embodiment, the device further includes:
[0087] A second cache result determination module, configured to determine a cache hit result of a second business message if a second business message is received; wherein the second business message is a business message forwarded by a second cloud platform, and the second cloud platform is a cloud platform other than the first cloud platform in the backend service;
[0088] A second routing information acquisition module, configured to acquire routing information in the second service message if it is determined according to the cache hit result that the second service message has been cached; the routing information includes a cloud platform identifier;
[0089] A second matching result determination module, configured to determine a matching result between the second service message and the first cloud platform according to the cloud platform identifier;
[0090] The business information discarding module is used to discard the second business message if it is determined according to the matching result that the second business message does not match the first cloud platform.
[0091] Based on the above solution, the second cache result determination module is further used to:
[0092] After determining the cache hit result of the second service message, if it is determined according to the cache hit result that the second service message is not cached, determining whether the second service message is an unmanned vehicle online message;
[0093] If the second business message is an unmanned vehicle online message, the second business message is cached and the unmanned vehicle online message is broadcast in the service copy in the first cloud platform.
[0094] Optionally, the routing information also includes a service replica identifier;
[0095] The second matching result determination module is further used for:
[0096] After determining the matching result between the second business message and the first cloud platform, if it is determined according to the matching result that the second business message matches the first cloud platform, the second business message is forwarded to the target service copy in the first cloud platform according to the service copy identifier.
[0097] The message processing device of the cloud platform provided in the embodiment of the present invention can execute the message processing method of the cloud platform provided in any embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method.
[0098] Embodiment 5
[0099] Figure 5A schematic diagram of an electronic device 510 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0100] like Figure 5 As shown, the electronic device 510 includes at least one processor 511, and a memory connected to the at least one processor 511 in communication, such as a read-only memory (ROM) 512, a random access memory (RAM) 513, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 511 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 512 or the computer program loaded from the storage unit 518 to the random access memory (RAM) 513. In the RAM 513, various programs and data required for the operation of the electronic device 510 can also be stored. The processor 511, the ROM 512, and the RAM 513 are connected to each other via a bus 514. An input / output (I / O) interface 515 is also connected to the bus 514.
[0101] A number of components in the electronic device 510 are connected to the I / O interface 515, including: an input unit 516, such as a keyboard, a mouse, etc.; an output unit 517, such as various types of displays, speakers, etc.; a storage unit 518, such as a disk, an optical disk, etc.; and a communication unit 519, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 519 allows the electronic device 510 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0102] The processor 511 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 511 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 511 executes the various methods and processes described above, such as the message processing method of the cloud platform.
[0103] In some embodiments, the message processing method of the cloud platform may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 518. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 510 via the ROM 512 and / or the communication unit 519. When the computer program is loaded into the RAM 513 and executed by the processor 511, one or more steps of the message processing method of the cloud platform described above may be performed. Alternatively, in other embodiments, the processor 511 may be configured to execute the message processing method of the cloud platform in any other appropriate manner (e.g., by means of firmware).
[0104] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0105] The computer program for implementing the method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a message processing device of a general-purpose computer, a special-purpose computer, or other programmable cloud platform, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0106] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0107] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0108] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0109] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0110] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0111] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A message processing method for a cloud platform, characterized in that: The method is performed by a first cloud platform, the first cloud platform is any cloud platform in a backend service, the backend service includes at least two cloud platforms, and the method includes: If a first service message is received, determining a cache hit result of the first service message; wherein the first service message is a service message sent by the unmanned vehicle; If it is determined according to the cache hit result that the first service message has been cached, then obtaining routing information in the first service message; the routing information includes a cloud platform identifier; Determining, according to the cloud platform identifier, a matching result between the first service message and the first cloud platform; If it is determined according to the matching result that the first service message does not match the first cloud platform, the first service message is unicast forwarded to the target cloud platform according to the cloud platform identifier.
2. The method according to claim 1, characterized in that The routing information also includes a service replica identifier; After determining a matching result between the first service message and the first cloud platform, the method further includes: If it is determined according to the matching result that the first service message matches the first cloud platform, the first service message is unicast forwarded to the target service replica in the first cloud platform according to the service replica identifier.
3. The method according to claim 1, characterized in that After determining the cache hit result of the first service message, the method further includes: If it is determined according to the cache hit result that the first service message is not cached, the first service message is discarded.
4. The method according to claim 1, characterized in that: The method further comprises: If a second service message is received, determining a cache hit result of the second service message; wherein the second service message is a service message forwarded by a second cloud platform, and the second cloud platform is a cloud platform other than the first cloud platform in the backend service; If it is determined according to the cache hit result that the second service message has been cached, then obtaining routing information in the second service message; the routing information includes a cloud platform identifier; Determining, according to the cloud platform identifier, a matching result between the second service message and the first cloud platform; If it is determined according to the matching result that the second business message does not match the first cloud platform, the second business message is discarded.
5. The method according to claim 4, characterized in that After determining the cache hit result of the second service message, the method further includes: If it is determined according to the cache hit result that the second service message is not cached, determining whether the second service message is an unmanned vehicle online message; If the second business message is an unmanned vehicle online message, the second business message is cached and the unmanned vehicle online message is broadcast in the service copy in the first cloud platform.
6. The method according to claim 4, characterized in that The routing information also includes a service replica identifier; After determining a matching result between the second service message and the first cloud platform, the method further includes: If it is determined according to the matching result that the second business message matches the first cloud platform, the second business message is forwarded to the target service copy in the first cloud platform according to the service copy identifier.
7. A message processing device for a cloud platform, characterized in that: The device is configured on a first cloud platform, the first cloud platform is any cloud platform in a backend service, the backend service includes at least two cloud platforms, and the device includes: A first cache result determination module, configured to determine a cache hit result of a first service message if the first service message is received; wherein the first service message is a service message sent by an unmanned vehicle; A first routing information acquisition module, configured to acquire routing information in the first service message if it is determined according to the cache hit result that the first service message has been cached; the routing information includes a cloud platform identifier; A first matching result determination module, configured to determine a matching result between the first service message and the first cloud platform according to the cloud platform identifier; The business message forwarding module is used to unicast forward the first business message to a target cloud platform according to the cloud platform identifier if it is determined according to the matching result that the first business message does not match the first cloud platform.
8. An electronic device, characterized in that: The electronic device comprises: At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the message processing method of the cloud platform described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the message processing method of the cloud platform according to any one of claims 1 to 6 when executed.
10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the message processing method of the cloud platform according to any one of claims 1 to 6.