Configuration method of message center, electronic equipment, storage medium and program product
By introducing a configuration management interface and a hot update processing mechanism in the message center, the delay and loss caused by manual configuration updates in the prior art are solved, and the user experience is improved.
Patent Information
- Application Number
- CN202411602738.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-03-04
AI Technical Summary
In the prior art, when updating the message center through manual configuration, it is necessary to restart the message center, resulting in upstream and downstream transaction delays, message accumulation and message loss, reducing user experience.
Provides a configuration method of message center, obtains and stores configuration update parameters through the configuration management interface, and performs hot update processing based on these parameters to avoid restarting.
Through hot update processing, transaction delays, message accumulation and message loss are avoided, and the user experience of the message center is improved.
Smart Images

Figure CN119557007A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a configuration method, electronic device, storage medium and program product of a message center. Background Art
[0002] The message center, as a typical message proxy component, is a commonly used message middleware in enterprise-level application systems. Among them, the message conversion service of the message center refers to the service that converts messages from one format to another during the message transmission process.
[0003] In the prior art, when the configuration of the message center is updated manually, the message center needs to be restarted.
[0004] However, the existing methods may cause delays in upstream and downstream transactions and a large number of message accumulation at best, or even serious message loss at worst, thereby causing a problem of reducing the user experience of the message center. Summary of the invention
[0005] The embodiments of the present application provide a configuration method, an electronic device, a storage medium, and a program product for a message center, so as to achieve the effect of improving the user experience of the message center.
[0006] In a first aspect, an embodiment of the present application provides a method for configuring a message center, including:
[0007] Responding to the user's operation on the configuration management interface, acquiring and storing the configuration update parameters of the message center;
[0008] Extract the configuration update parameters of the message center, and perform hot update processing on the message center according to the configuration update parameters of the message center.
[0009] In one possible implementation, extracting the configuration update parameters of the message center includes: acquiring hot update configuration parameters; wherein the hot update configuration parameters include a hot update time range and a hot update time cycle; within the hot update time range included in the hot update configuration parameters, and with the hot update time cycle included in the hot update configuration parameters, extracting the configuration update parameters of the message center.
[0010] In a possible implementation, the message center provides at least one message service; wherein the configuration update parameters of the message center include configuration update parameters of at least one message service; the configuration update parameters of the message service include a timestamp of the message service; wherein the timestamp of the message service represents the time when the configuration update parameters of the message service are acquired and stored.
[0011] In one possible implementation, hot update processing is performed on the message center according to the configuration update parameters of the message center, including: determining the configuration update parameters of the message service to be updated according to the timestamp of the message service of the configuration update parameters of at least one message service included in the configuration update parameters of the message center; and hot update processing is performed on the message center according to the configuration update parameters of the message service to be updated.
[0012] In a possible implementation, the configuration management interface includes an on / off selection box for a message service; the configuration update parameters of the message center include at least one configuration update parameter for a message service; the configuration update parameters of the message service include: on / off parameters for the message service; in response to user operations in the configuration management interface, obtaining and storing the configuration update parameters of the message center, including: in response to a user selection operation in the on / off selection box for the message service in the configuration management interface, obtaining and storing the on / off parameters for the message service.
[0013] In a possible implementation, the configuration management interface also includes a deployment group input box for the message service; the configuration update parameters of the message service also include: deployment group parameters of the message service; in response to the user's operation in the configuration management interface, obtaining and storing the configuration update parameters of the message center, and also including: in response to the user's input operation in the deployment group input box of the message service in the configuration management interface, determining whether the remaining traffic of the deployment group pointed to by the input operation meets the traffic demand of the message service pointed to by the input operation; if it is determined that the remaining traffic of the deployment group pointed to by the input operation meets the traffic demand of the message service pointed to by the input operation, obtaining and storing the deployment group parameters of the message service; otherwise, generating and presenting update prompt information of the deployment group configuration.
[0014] In a possible implementation, the method further includes: in response to a subscription request sent by a client, calling a deployment group of a message service corresponding to the subscription request, obtaining and sending result data corresponding to the subscription request to the client; wherein the subscription request is used to request the corresponding message service.
[0015] In a second aspect, an embodiment of the present application provides a configuration device of a message center, including:
[0016] An acquisition module, used to acquire and store configuration update parameters of the message center in response to user operations on the configuration management interface;
[0017] The configuration module is used to extract the configuration update parameters of the message center and perform hot update processing on the message center according to the configuration update parameters of the message center.
[0018] In a possible implementation, the configuration module is specifically used to obtain hot update configuration parameters; wherein the hot update configuration parameters include a hot update time range and a hot update time period; within the hot update time range included in the hot update configuration parameters, the configuration update parameters of the message center are extracted with the hot update time period included in the hot update configuration parameters.
[0019] In a possible implementation, the message center provides at least one message service; wherein the configuration update parameters of the message center include configuration update parameters of at least one message service; the configuration update parameters of the message service include a timestamp of the message service; wherein the timestamp of the message service represents the time when the configuration update parameters of the message service are acquired and stored.
[0020] In a possible implementation, the configuration module is further specifically used to determine the configuration update parameters of the message service to be updated based on the timestamp of the message service of the configuration update parameters of at least one message service included in the configuration update parameters of the message center; and perform hot update processing on the message center based on the configuration update parameters of the message service to be updated.
[0021] In a possible implementation, the configuration management interface includes an on / off selection box for a message service; the configuration update parameters of the message center include at least one configuration update parameter for a message service; the configuration update parameters for the message service include: on / off parameters for the message service; the acquisition module is specifically used to acquire and store the on / off parameters for the message service in response to a user's selection operation of the on / off selection box for the message service in the configuration management interface.
[0022] In a possible implementation, the configuration management interface also includes a deployment group input box for the message service; the configuration update parameters of the message service also include: deployment group parameters of the message service; the acquisition module is further specifically used to respond to the user's input operation on the deployment group input box of the message service in the configuration management interface, and determine whether the remaining traffic of the deployment group pointed to by the input operation meets the traffic demand of the message service pointed to by the input operation; if it is determined that the remaining traffic of the deployment group pointed to by the input operation meets the traffic demand of the message service pointed to by the input operation, then the deployment group parameters of the message service are acquired and stored; otherwise, update prompt information of the deployment group configuration is generated and presented.
[0023] In a possible implementation, the configuration module is also used to respond to a subscription request sent by a client, call the deployment group of the message service corresponding to the subscription request, obtain and send result data corresponding to the subscription request to the client; wherein the subscription request is used to request the corresponding message service.
[0024] In a third aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor;
[0025] The memory stores computer-executable instructions;
[0026] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.
[0027] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.
[0028] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.
[0029] The configuration method, electronic device, storage medium and program product of the message center provided in the embodiments of the present application obtain and store the configuration update parameters of the message center in response to the user's operation on the configuration management interface, extract the configuration update parameters of the message center, and perform hot update processing on the message center according to the configuration update parameters of the message center. In the configuration process of the message center, the configuration management interface can be used to make the configuration process of the message center more intuitive, thereby improving the user experience of the configuration of the message center. In the configuration process of the message center, hot updates can be used to avoid problems such as transaction delays, message accumulation, and message loss, thereby improving the user experience of the message center. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0031] Figure 1 Schematic diagram of the configuration method of the message center provided in this application Figure 1 ;
[0032] Figure 2 Schematic diagram of the configuration method of the message center provided in this application Figure 2 ;
[0033] Figure 3 A schematic diagram of the structure of the configuration device of the message center provided by this application;
[0034] Figure 4 A schematic diagram of the structure of the electronic device provided in this application.
[0035] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0036] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0037] In the prior art, when the configuration of the message center is updated manually, the message center needs to be restarted. However, the method in the prior art may cause delays in upstream and downstream transactions, a large number of messages to pile up, or even serious message loss, thereby reducing the user experience of the message center.
[0038] The configuration method of the message center provided in the present application obtains and stores the configuration update parameters of the message center in response to the user's operation in the configuration management interface, extracts the configuration update parameters of the message center, and performs hot update processing on the message center according to the configuration update parameters of the message center. In the configuration process of the message center, the configuration management interface can be used to make the configuration process of the message center more intuitive, thereby improving the user experience of the configuration of the message center. In the configuration process of the message center, hot updates can be used to avoid problems such as transaction delays, message accumulation, and message loss, thereby improving the user experience of the message center.
[0039] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0040] Figure 1 Schematic diagram of the configuration method of the message center provided in this application Figure 1 ,like Figure 1 As shown, the method includes:
[0041] Step S101: In response to the user's operation on the configuration management interface, the configuration update parameters of the message center are acquired and stored.
[0042] Specifically, in response to the user's operation on the configuration management interface, the configuration update parameters of the message center can be acquired and stored.
[0043] The configuration management interface is a pre-built interface for managing the configuration of the message center. The present application does not limit the configuration management interface, and optionally, any pre-built interface for managing the configuration of the message center can be used as the configuration management interface provided by the present application.
[0044] Optionally, the configuration management interface may include a message service configuration interface, wherein the present application does not limit the message service configuration interface, and optionally, the message service configuration interface may include but is not limited to: the message service type, the message service name, and at least one of the configuration parameters of the message service. The present application does not limit the configuration parameters of the message service, and optionally, the configuration parameters of the message service include but are not limited to: the basic configuration parameters of the message service, the message queue configuration parameters of the message service, and the network management configuration parameters of the message service. Optionally, the basic configuration parameters of the message service include but are not limited to: at least one of the transaction name, topic name, message transparent transmission type, message conversion type, subscription name, binding deployment group name, message reply queue, and reply queue manager; Optionally, the message queue configuration parameters of the message service include but are not limited to: at least one of the service domain name, cluster name, namespace, and authentication token; the network management configuration parameters of the message service include but are not limited to: at least one of the host, character set, channel, queue manager name, send queue, and whether it is persistent.
[0045] Optionally, the configuration management interface may also include a message service list interface, wherein the present application does not limit the message service list interface, optionally, the message service list interface may include but is not limited to: a filter box, a filter result selection box and other areas; wherein the present application does not limit the filter parameters included in the filter box, optionally, the filter parameters include but are not limited to: at least one of a binding deployment group name, an effective identifier, a transaction name, and a conversion type; wherein the present application does not limit the filter result selection box, optionally, the filter result selection box can be used to set the effective identifier of the message service, optionally, the effective identifier of the message service can be set individually or in batches.
[0046] Specifically, in response to the user's operation on the configuration management interface, the configuration update parameters of the message center are obtained and stored in the database.
[0047] Step S102 extracts configuration update parameters of the message center, and performs hot update processing on the message center according to the configuration update parameters of the message center.
[0048] Specifically, the configuration update parameters of the message center may be extracted from the database described above, and the message center may be hot-updated according to the configuration update parameters of the message center.
[0049] The present application does not limit the process of extracting the configuration update parameters of the message center and performing hot update processing on the message center according to the configuration update parameters of the message center. Optionally, the hot update configuration parameters can be obtained; wherein the hot update configuration parameters include a hot update time range and a hot update time period; within the hot update time range included in the hot update configuration parameters, the configuration update parameters of the message center are extracted with the hot update time period included in the hot update configuration parameters. The configuration update parameters of the message service to be updated are determined according to the timestamp of the configuration update parameters of at least one message service included in the configuration update parameters of the message center; the message center is hot updated according to the configuration update parameters of the message service to be updated.
[0050] The configuration method of the message center provided in the embodiment of the present application obtains and stores the configuration update parameters of the message center in response to the user's operation in the configuration management interface, extracts the configuration update parameters of the message center, and performs hot update processing on the message center according to the configuration update parameters of the message center. In the configuration process of the message center, the configuration management interface can be used to make the configuration process of the message center more intuitive, thereby improving the user experience of the configuration of the message center. In the configuration process of the message center, hot updates can be used to avoid problems such as transaction delays, message accumulation, and message loss, thereby improving the user experience of the message center.
[0051] Figure 2 Schematic diagram of the configuration method of the message center provided in this application Figure 2 ,like Figure 2 As shown, in this embodiment Figure 1 Based on the embodiment, a process of extracting configuration update parameters of a message center and performing hot update processing on the message center according to the configuration update parameters of the message center is described in detail. The method includes:
[0052] Step S201: Obtain hot update configuration parameters.
[0053] Specifically, hot update configuration parameters may be obtained.
[0054] Among them, the hot update configuration parameters are configuration parameters for hot update processing. Among them, the present application does not limit the hot update configuration parameters, and any configuration parameters can be used as the hot update configuration parameters provided by the present application. Optionally, the hot update configuration parameters include a hot update time range and a hot update time period. Among them, the present application does not limit the hot update time range, and any time range can be used as the hot update time range provided by the present application, for example, 00:00:00-06:00:00. Among them, the present application does not limit the hot update time period, and any time period can be used as the hot update time period provided by the present application, for example, once every 10 minutes.
[0055] Optionally, the hot update configuration parameters also include a hot update on / off parameter, wherein the hot update on / off parameter indicates whether the hot update process is turned on. If the hot update on / off parameter indicates that the hot update process is turned on, the contents in step S202 to step S204 are executed; if the hot update on / off parameter indicates that the hot update process is turned off, the process of hot updating the message center is not executed.
[0056] Optionally, the hot update configuration parameters also include a hot update service loading address, wherein the hot update service loading address indicates a storage address of the configuration parameters of the message service of the message center.
[0057] Among them, the present application does not limit the process of obtaining hot update configuration parameters, and any process that can obtain hot update configuration parameters can be used as the process of obtaining hot update configuration parameters provided by the present application. Optionally, the hot update configuration parameters can be obtained by loading the YML file of the message center. Optionally, the hot update configuration parameters can be obtained from the value of the enabled parameter of the YML file. Optionally, if the value of the enabled parameter is true, the hot update on / off parameters obtained represent that the hot update process is turned on. If the value of the enabled parameter is false, the hot update on / off parameters obtained represent that the hot update process is not turned on. Optionally, the hot update time range and hot update time period can be obtained from the value of the cron expression in the YML file.
[0058] The following is an example of a YML file:
[0059] HotUpdateScheduleConfig:
[0060] Enabled:true
[0061] HotUpdateCorn:'0 10 / 1 09-20***'
[0062] loadGroupIDs:
[0063] -T-AAA
[0064] -T-BBB
[0065] -T-CCC
[0066] Step S202: extracting configuration update parameters of the message center within the hot update time range included in the hot update configuration parameters and with the hot update time period included in the hot update configuration parameters.
[0067] Specifically, within the hot update time range included in the hot update configuration parameters obtained in step S201, the configuration update parameters of the message center are extracted with the hot update time period included in the hot update configuration parameters. The description of the configuration update parameters of the message center in this application can refer to the description in the embodiment shown above, and will not be repeated here.
[0068] For example, if the hot update time range is 00:00:00-06:00:00 and the hot update time period is once every 10 minutes, the configuration update parameters of the message center can be extracted from the hot update service loading address at a hot update time interval of once every 10 minutes between 00:00:00-06:00:00.
[0069] Optionally, the message center provides at least one message service, wherein the message service refers to the service provided by the message center, wherein the present application does not limit the message service provided by the message center, and optionally, it may include a message conversion service.
[0070] Optionally, the configuration update parameters of the message center include at least one configuration update parameter of a message service. The configuration update parameters of the message service include a timestamp of the message service. The timestamp of the message service represents the time when the configuration update parameters of the message service are acquired and stored.
[0071] The process of obtaining and storing the configuration update parameters of the message service may refer to the description of the process of obtaining and storing the configuration update parameters of the message center in step S101, which will not be repeated here.
[0072] Step S203: Determine the configuration update parameters of the message service to be updated according to the timestamp of the message service of the configuration update parameters of at least one message service included in the configuration update parameters of the message center.
[0073] Specifically, the configuration update parameters of the message service to be updated may be determined according to the timestamp of the message service of the configuration update parameters of at least one message service included in the configuration update parameters of the message center extracted in step S202.
[0074] Among them, the present application does not limit the process of determining the configuration update parameters of the message service to be updated based on the timestamp of the configuration update parameters of at least one message service included in the configuration update parameters of the message center. Optionally, the configuration update parameters of the message service whose timestamp is between the time when the message center was last hot updated and the current time among the configuration update parameters of at least one message service included in the configuration update parameters of the message center can be determined as the configuration update parameters of the message service to be updated.
[0075] For example, if the hot update time range is 00:00:00-06:00:00, the hot update time period is once every 10 minutes, and the current time is 00:10:00, then the configuration update parameters of at least one message service included in the configuration update parameters of the message center, the configuration update parameters of the message service whose timestamp is between the time when the message center was last hot updated and the current time 00:10:00, are determined as the configuration update parameters of the message service to be updated. The time when the message center was last hot updated is earlier than or equal to the termination time of the last hot update time range,
[0076] Step S204: Perform hot update processing on the message center according to the configuration update parameters of the message service to be updated.
[0077] Specifically, the message center may be hot-updated according to configuration update parameters of the message service to be updated.
[0078] Among them, the present application does not limit the process of hot updating the message center according to the configuration update parameters of the message service to be updated. Optionally, the message service provided by the message center can be hot updated according to the configuration update parameters of the message service to be updated.
[0079] The embodiment of the present application provides a process of extracting configuration update parameters of a message center and performing hot update processing on the message center according to the configuration update parameters of the message center. The hot update configuration parameters are obtained, and within the hot update time range included in the hot update configuration parameters, the configuration update parameters of the message center are extracted with the hot update time period included in the hot update configuration parameters. The configuration update parameters of the message service to be updated are determined according to the timestamp of the message service of the configuration update parameters of at least one message service included in the configuration update parameters of the message center. The message center is hot updated according to the configuration update parameters of the message service to be updated. The flexibility of the hot update configuration can be improved by setting the configuration parameters of the hot update processing through the hot update configuration parameters, and the flexibility of the configuration of the message center can be further improved. The efficiency of the hot update processing can be improved by determining the configuration update parameters of the message service to be updated through the timestamp of the message service, so as to perform hot update processing on the message center, thereby improving the efficiency of the configuration of the message center. Based on the above description, the user experience of the message center can be improved.
[0080] In a possible embodiment, the process of obtaining and storing configuration update parameters of the message center in response to user operations in the configuration management interface may include: obtaining and storing the on and off parameters of the message service in response to the user's selection operation in the on and off selection box of the message service in the configuration management interface.
[0081] Optionally, the configuration management interface includes a message service on / off selection box. The configuration update parameters of the message center include at least one message service configuration update parameter. The message service configuration update parameters include: message service on / off parameters.
[0082] The on / off parameters of the message service are parameters in the configuration update parameters of the message service obtained in response to the user's selection operation of the on / off selection box of the message service included in the configuration management interface. The on / off parameters of the message service represent whether the setting of the message service is effective or invalid.
[0083] In a possible embodiment, in response to the user's operation in the configuration management interface, the process of obtaining and storing the configuration update parameters of the message center also includes: in response to the user's input operation in the deployment group input box of the message service in the configuration management interface, determining whether the remaining traffic of the deployment group pointed to by the input operation meets the traffic demand of the message service pointed to by the input operation. If it is determined that the remaining traffic of the deployment group pointed to by the input operation meets the traffic demand of the message service pointed to by the input operation, the deployment group parameters of the message service are obtained and stored. Otherwise, update prompt information of the deployment group configuration is generated and presented.
[0084] Optionally, the configuration management interface also includes a deployment group input box for the message service. The configuration update parameters of the message service also include: deployment group parameters of the message service.
[0085] The deployment group is used to perform batch deployment and management of the message service. The deployment group parameter of the message service is a parameter in the configuration update parameter of the message service obtained in response to the input operation of the user in the deployment group input box of the message service included in the configuration management interface. The deployment group parameter of the message service indicates the deployment group used to execute the message service.
[0086] The input operation of the user in the deployment group input box of the message service in the configuration management interface is to input the number of the deployment group to be bound in the deployment group input box of the message service in the configuration management interface.
[0087] Among them, the update prompt information of the deployment group configuration is used to indicate that the remaining traffic of the deployment group indicated by the user's input operation in the deployment group input box of the message service included in the configuration management interface does not meet the traffic demand of the message service pointed to by the input operation.
[0088] Specifically, the update prompt information of the deployment group configuration generated and presented can enable the user to input the number of the new deployment group in the deployment group input box of the message service in the configuration management interface according to the update prompt information of the deployment group configuration presented.
[0089] In a possible embodiment, the configuration method of the message center further includes: in response to a subscription request sent by a client, calling a deployment group of a message service corresponding to the subscription request, and acquiring and sending result data corresponding to the subscription request to the client.
[0090] The subscription request is used to request the corresponding message service.
[0091] Among them, the present application does not limit the process of responding to a subscription request sent by a client, calling the deployment group of the message service corresponding to the subscription request, and obtaining and sending the result data corresponding to the subscription request to the client. Optionally, you can first respond to the subscription request sent by the client, determine the message service corresponding to the subscription request, and determine the deployment group corresponding to the message service; then call the deployment group of the message service corresponding to the subscription request to obtain and send the result data corresponding to the subscription request to the client.
[0092] Optionally, the configuration method of the message center also includes: in response to a publishing request sent by the message end, publishing a message service corresponding to the publishing request.
[0093] Figure 3 A structural diagram of the configuration device of the message center provided by this application, such as Figure 3As shown, the configuration device 30 of the message center provided in this embodiment includes:
[0094] The acquisition module 301 is used to acquire and store the configuration update parameters of the message center in response to the user's operation on the configuration management interface;
[0095] The configuration module 302 is used to extract the configuration update parameters of the message center and perform hot update processing on the message center according to the configuration update parameters of the message center.
[0096] In a possible embodiment, the configuration module 302 is specifically used to obtain hot update configuration parameters; wherein the hot update configuration parameters include a hot update time range and a hot update time period; within the hot update time range included in the hot update configuration parameters, with the hot update time period included in the hot update configuration parameters, the configuration update parameters of the message center are extracted.
[0097] In a possible embodiment, a message center provides at least one message service; wherein, the configuration update parameters of the message center include the configuration update parameters of at least one message service; the configuration update parameters of the message service include the timestamp of the message service; wherein, the timestamp of the message service represents the time for obtaining and storing the configuration update parameters of the message service.
[0098] In a possible embodiment, the configuration module 302 is further specifically used to determine the configuration update parameters of the message service to be updated based on the timestamp of the configuration update parameters of at least one message service included in the configuration update parameters of the message center; and perform hot update processing on the message center based on the configuration update parameters of the message service to be updated.
[0099] In a possible embodiment, the configuration management interface includes an on / off selection box for a message service; the configuration update parameters of the message center include at least one configuration update parameter for a message service; the configuration update parameters of the message service include: on / off parameters for the message service; the acquisition module 301 is specifically used to acquire and store the on / off parameters for the message service in response to a user's selection operation in the on / off selection box for the message service in the configuration management interface.
[0100] In a possible embodiment, the configuration management interface also includes a deployment group input box for the message service; the configuration update parameters of the message service also include: deployment group parameters of the message service; the acquisition module 301 is also specifically used to respond to the user's input operation in the deployment group input box of the message service in the configuration management interface, and determine whether the remaining traffic of the deployment group pointed to by the input operation meets the traffic demand of the message service pointed to by the input operation; if it is determined that the remaining traffic of the deployment group pointed to by the input operation meets the traffic demand of the message service pointed to by the input operation, then the deployment group parameters of the message service are acquired and stored; otherwise, update prompt information of the deployment group configuration is generated and presented.
[0101] In a possible embodiment, the configuration module 302 is also used to respond to a subscription request sent by the client, call the deployment group of the message service corresponding to the subscription request, obtain and send the result data corresponding to the subscription request to the client; wherein the subscription request is used to request the corresponding message service.
[0102] The configuration device of the message center provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be described in detail here.
[0103] Figure 4 This is a schematic diagram of the structure of the electronic device provided in this application. Figure 4 As shown, the electronic device 40 provided in this embodiment includes: at least one processor 401 and a memory 402. Optionally, the device 40 also includes a communication component 403. The processor 401, the memory 402 and the communication component 403 are connected via a bus 404.
[0104] In a specific implementation process, at least one processor 401 executes the computer-executable instructions stored in the memory 402, so that at least one processor 401 executes the above method.
[0105] The specific implementation process of the processor 401 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0106] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0107] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.
[0108] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0109] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.
[0110] 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 above method is implemented.
[0111] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0112] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.
[0113] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units 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 unit, which can be electrical, mechanical or other forms.
[0114] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0115] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0116] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0117] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0118] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A method for configuring a message center, characterized in that: include: Responding to the user's operation on the configuration management interface, acquiring and storing the configuration update parameters of the message center; Extract the configuration update parameters of the message center, and perform hot update processing on the message center according to the configuration update parameters of the message center.
2. The method according to claim 1, characterized in that Extracting configuration update parameters of the message center includes: Acquire hot update configuration parameters; wherein the hot update configuration parameters include a hot update time range and a hot update time period; Within the hot update time range included in the hot update configuration parameters, the configuration update parameters of the message center are extracted with the hot update time period included in the hot update configuration parameters.
3. The method according to claim 1, characterized in that The message center provides at least one message service; wherein the configuration update parameters of the message center include the configuration update parameters of at least one message service; the configuration update parameters of the message service include the timestamp of the message service; wherein the timestamp of the message service represents the time for obtaining and storing the configuration update parameters of the message service.
4. The method according to claim 3, characterized in that Performing hot update processing on the message center according to the configuration update parameters of the message center includes: Determining the configuration update parameters of the message service to be updated according to the timestamp of the message service of the configuration update parameters of the at least one message service included in the configuration update parameters of the message center; The message center is subjected to a hot update process according to the configuration update parameters of the message service to be updated.
5. The method according to any one of claims 1 to 4, characterized in that: The configuration management interface includes a message service on / off selection box; the configuration update parameters of the message center include at least one message service configuration update parameter; the message service configuration update parameters include: message service on / off parameters; In response to the user's operation on the configuration management interface, the configuration update parameters of the message center are obtained and stored, including: In response to a user's selection operation of the on / off selection box of the message service in the configuration management interface, the on / off parameters of the message service are acquired and stored.
6. The method according to claim 5, characterized in that The configuration management interface also includes a deployment group input box for the message service; the configuration update parameters of the message service also include: deployment group parameters of the message service; In response to the user's operation on the configuration management interface, obtaining and storing the configuration update parameters of the message center, further comprising: In response to an input operation of a user in an input box of a deployment group of the message service in the configuration management interface, determining whether the remaining traffic of the deployment group pointed to by the input operation meets the traffic demand of the message service pointed to by the input operation; If it is determined that the remaining traffic of the deployment group pointed to by the input operation meets the traffic demand of the message service pointed to by the input operation, then obtaining and storing the deployment group parameters of the message service; Otherwise, generate and present update prompt information for the deployment group configuration.
7. The method according to claim 6, characterized in that The method further comprises: In response to a subscription request sent by a client, calling a deployment group of a message service corresponding to the subscription request, obtaining and sending result data corresponding to the subscription request to the client; The subscription request is used to request the corresponding message service.
8. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.
10. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 7 when being executed by a processor.
Citation Information
Patent Citations
Multi-system user incremental synchronization method based on timestamps and mapping strategies
CN106682140A
Configuration updating method and related product
CN109857427A
Upgrading method and device based on over-the-air technology OTA
CN112913190A
Calling parameter processing method, system and device, storage medium and product
CN114610509A
Configuration data management method, device and system, equipment and storage medium
CN115118590A