CN115550160A - Configuration information sending method, configuration information updating method and service request processing method - Google Patents

Configuration information sending method, configuration information updating method and service request processing method Download PDF

Info

Publication number
CN115550160A
CN115550160A CN202211114040.XA CN202211114040A CN115550160A CN 115550160 A CN115550160 A CN 115550160A CN 202211114040 A CN202211114040 A CN 202211114040A CN 115550160 A CN115550160 A CN 115550160A
Authority
CN
China
Prior art keywords
configuration information
version number
target
client
information version
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211114040.XA
Other languages
Chinese (zh)
Inventor
侯伟浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202211114040.XA priority Critical patent/CN115550160A/en
Publication of CN115550160A publication Critical patent/CN115550160A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the disclosure discloses a method for sending configuration information, a method for updating the configuration information and a method for processing a service request. One embodiment of the method comprises: analyzing a configuration information version number carried in a configuration information updating request in response to the received configuration information updating request sent by a client; responding to the situation that the configuration information version number is smaller than the target configuration information version number, and generating incremental configuration information according to the configuration information corresponding to the configuration information version number and the target configuration information corresponding to the target configuration information version number; and combining the incremental configuration information and the target configuration information version number into updated configuration information. The embodiment is related to big data, and the efficiency of data transmission is improved.

Description

Configuration information sending method, configuration information updating method and service request processing method
Technical Field
The embodiment of the disclosure relates to the field of computers, in particular to a configuration information sending method, a configuration information updating method and a service request processing method.
Background
At present, the way of updating the configuration data of the client is generally: the method comprises the steps that a request is made to a server side when a client side is switched between a front stage and a back stage or the client side is started for the first time, and the server sends updated configuration data to the client side in a full data issuing mode to update the configuration data of the client side; or the server side actively pushes the latest configuration data to the client side in a long link mode.
However, the following technical problems generally exist in the above manner:
firstly, the full data is issued, which usually occupies more bandwidth and has lower data transmission efficiency;
secondly, with the long link method, the client usually needs to send heartbeat data to the server at regular time, which is likely to cause unnecessary consumption of communication resources.
The above information disclosed in this background section is only for enhancement of understanding of the background of the inventive concept and, therefore, it may contain information that does not form the prior art that is already known to a person of ordinary skill in the art in this country.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose a configuration information sending method, a configuration information updating method, a service request processing method, apparatuses, an electronic device, a computer-readable medium, and a program product to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a method for sending configuration information, where the method includes: responding to a received configuration information updating request sent by a client, and analyzing a configuration information version number carried in the configuration information updating request; responding to the situation that the configuration information version number is smaller than a target configuration information version number, and generating incremental configuration information according to the configuration information corresponding to the configuration information version number and the target configuration information corresponding to the target configuration information version number; and combining the incremental configuration information and the target configuration information version number into updated configuration information.
Optionally, the method further includes: and sending the updated configuration information to the client so that the client updates the configuration information.
Optionally, the method further includes: and in response to the fact that the configuration information version number is larger than or equal to the target configuration information version number, sending the target configuration information version number to the client side so that the client side can update the configuration information version number.
Optionally, before analyzing, in response to receiving a configuration information update request sent by a client, a configuration information version number carried in the configuration information update request, the method further includes: in response to receiving the modification configuration information input by the target user, determining whether the modification configuration information is consistent with the target historical configuration information; in response to determining that the modified configuration information is inconsistent with the target historical configuration information, updating a configuration information version number corresponding to the target historical configuration information to generate a configuration information update version number as a target configuration information version number; and sending the target configuration information version number to an associated server.
In a second aspect, some embodiments of the present disclosure provide a configuration information updating method, including: responding to service processing information which is sent by a server and corresponds to a service request, and determining whether the service processing information contains a target configuration information version number; in response to the fact that the service processing information contains a target configuration information version number, determining whether the target configuration information version number is consistent with a current local configuration information version number; in response to determining that the target configuration information version number is inconsistent with the configuration information version number, generating a configuration information updating request, and sending the configuration information updating request to a configuration terminal, wherein the configuration information updating request carries the configuration information version number; and in response to receiving the updated configuration information which is sent by the configuration terminal and corresponds to the configuration information updating request, updating the configuration information corresponding to the configuration information version number according to the updated configuration information.
Optionally, before the receiving, in response to the service processing information corresponding to the service request sent by the server, whether the service processing information includes the target configuration information version number is determined, the method further includes: and sending a service request to the server.
In a third aspect, some embodiments of the present disclosure provide a service request processing method, where the method includes: responding to a received service request sent by a client, and generating processing information corresponding to the service request; combining the locally stored target configuration information version number and the processing information into service processing information; and sending the service processing information to the client.
Optionally, before the generating, in response to receiving a service request sent by a client, processing information corresponding to the service request, the method further includes: and storing the target configuration information version number into a local database in response to receiving the target configuration information version number sent by the configuration terminal.
In a fourth aspect, some embodiments of the present disclosure provide a configuration information transmitting apparatus, including: the device comprises an analyzing unit, a configuration information updating unit and a configuration information updating unit, wherein the analyzing unit is configured to respond to a received configuration information updating request sent by a client and analyze a configuration information version number carried in the configuration information updating request; the generating unit is configured to respond to the fact that the configuration information version number is smaller than a target configuration information version number, and generate incremental configuration information according to the configuration information corresponding to the configuration information version number and the target configuration information corresponding to the target configuration information version number; and the combining unit is configured to combine the incremental configuration information and the target configuration information version number into the updating configuration information.
Optionally, the apparatus further comprises: a first sending unit, configured to send the update configuration information to the client, so that the client updates the configuration information.
Optionally, the apparatus further comprises: a second sending unit configured to send the target configuration information version number to the client in response to determining that the configuration information version number is greater than or equal to the target configuration information version number, so that the client updates the configuration information version number.
Optionally, before the parsing unit, the apparatus further includes: a determining unit configured to determine whether the modified configuration information is consistent with the target historical configuration information in response to receiving the modified configuration information input by the target user; the updating unit is configured to respond to the fact that the modification configuration information is inconsistent with the target historical configuration information, and update the configuration information version number corresponding to the target historical configuration information to generate a configuration information update version number as a target configuration information version number; and a third sending unit configured to send the target configuration information version number to an associated server.
In a fifth aspect, some embodiments of the present disclosure provide a configuration information updating apparatus, including: the first determining unit is configured to respond to service processing information which is sent by a server and corresponds to a service request, and determine whether the service processing information contains a target configuration information version number; a second determining unit, configured to determine whether the target configuration information version number is consistent with a current local configuration information version number in response to determining that the service processing information includes the target configuration information version number; the generating unit is configured to respond to the fact that the target configuration information version number is inconsistent with the configuration information version number, generate a configuration information updating request and send the configuration information updating request to a configuration terminal, wherein the configuration information updating request carries the configuration information version number; and the updating unit is configured to respond to the received updated configuration information which is sent by the configuration terminal and corresponds to the configuration information updating request, and update the configuration information corresponding to the configuration information version number according to the updated configuration information.
Optionally, before the first determining unit, the apparatus further includes: a sending unit configured to send a service request to the server.
In a sixth aspect, some embodiments of the present disclosure provide a service request processing apparatus, including: the generating unit is configured to respond to the received service request sent by the client and generate processing information corresponding to the service request; a combination unit configured to combine the locally stored target configuration information version number and the processing information into service processing information; a sending unit configured to send the service processing information to the client.
Optionally, before the generating unit, the apparatus further includes: and the storage unit is configured to respond to the received target configuration information version number sent by the configuration terminal and store the target configuration information version number into a local database.
In a seventh aspect, some embodiments of the present disclosure provide an electronic device, including: one or more processors; a storage device, on which one or more programs are stored, which when executed by one or more processors cause the one or more processors to implement the method described in any implementation of the first aspect, the second aspect, or the third aspect.
In an eighth aspect, some embodiments of the present disclosure provide a computer readable medium on which a computer program is stored, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first, second or third aspects above.
A ninth aspect, some embodiments of the present disclosure provide a computer program product comprising a computer program which, when executed by a processor, implements the method described in any implementation of the first, second or third aspect.
The above embodiments of the present disclosure have the following beneficial effects: by the configuration information sending method of some embodiments of the present disclosure, the efficiency of data transmission is improved. Specifically, the reasons for the low efficiency of data transmission are: the full data is issued, which usually occupies more bandwidth and has lower data transmission efficiency. Based on this, in the configuration information sending method according to some embodiments of the present disclosure, first, in response to receiving a configuration information update request sent by a client, a configuration information version number carried in the configuration information update request is analyzed. Therefore, the difference between the configuration information version number of the current client and the latest configuration information version number is convenient to compare. And then, in response to determining that the configuration information version number is smaller than the target configuration information version number, generating incremental configuration information according to the configuration information corresponding to the configuration information version number and the target configuration information corresponding to the target configuration information version number. Thus, incremental configuration information corresponding to different configuration information version numbers can be generated. Therefore, the configuration information is prevented from being fully transmitted, and the occupation of bandwidth is reduced. And finally, combining the incremental configuration information and the version number of the target configuration information into updated configuration information. Therefore, the version number of the target configuration information can be issued while the incremental configuration information is issued. Therefore, the client side can update the configuration information and update the version number of the configuration information conveniently. And only incremental configuration information is issued, so that the data transmission quantity is greatly reduced. Furthermore, the efficiency of data transmission is improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
Fig. 1 is a schematic diagram of information interaction between execution bodies of a configuration information sending method, a configuration information updating method, and a service request processing method according to some embodiments of the present disclosure;
fig. 2 is a flow diagram of some embodiments of a configuration information transmission method according to the present disclosure;
FIG. 3 is a flow diagram of some embodiments of a configuration information update method according to the present disclosure;
fig. 4 is a flow diagram of some embodiments of a service request processing method according to the present disclosure;
fig. 5 is a schematic block diagram of some embodiments of a configuration information transmitting apparatus according to the present disclosure;
FIG. 6 is a schematic block diagram of some embodiments of a configuration information updating apparatus according to the present disclosure;
fig. 7 is a schematic block diagram of some embodiments of a service request processing apparatus according to the present disclosure;
FIG. 8 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete. It should be understood that the drawings and the embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a" or "an" in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will appreciate that references to "one or more" are intended to be exemplary and not limiting unless the context clearly indicates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a schematic diagram of information interaction between execution bodies of a configuration information sending method, a configuration information updating method, and a service request processing method according to some embodiments of the present disclosure.
The information interaction diagram of fig. 1 includes: an execution subject of the configuration information transmission method (configuration terminal 101), an execution subject of the service request processing method (server 102), and an execution subject of the configuration information update method (client 103).
In practice, first, the configuration terminal 101 may receive the modified configuration information input by the technical developer. Secondly, the locally stored configuration information may be updated, and the locally stored configuration information version number may be updated to generate a configuration information update version number as a target configuration information version number 1. The target configuration information version number 1 may then be sent to the server 102 for storage.
The client 103 may then send a service request 2 to the server 102. Here, the service request 2 may be a request for acquiring specific service information. For example, the service request 2 may be a search request.
Then, the server 102, after receiving the service request 2, may generate the processing information corresponding to the service request 2, and combine the locally stored target configuration information version number 1 and the above processing information into the service processing information 3. After that, the server 102 may transmit the service processing information 3 to the client 103.
Then, after receiving the service processing information 3, the client 103 may determine whether the target configuration information version number 1 contained in the service processing information 3 is consistent with the local configuration information version number. The client 103 may generate a configuration information update request 4 in response to determining that the target configuration information version number 1 is not consistent with the local configuration information version number, and send the configuration information update request 4 to the configuration terminal 101. The configuration information update request 4 carries a local configuration information version number.
Finally, after receiving the configuration information update request 4 sent by the client 103, the configuration terminal 101 analyzes the configuration information version number carried in the configuration information update request 4. Then, in response to determining that the configuration information version number carried in the configuration information update request 4 is smaller than the target configuration information version number 1, the configuration terminal 101 may generate incremental configuration information according to the configuration information corresponding to the configuration information version number carried in the configuration information update request 4 and the target configuration information corresponding to the target configuration information version number 1. Next, the configuration terminal 101 may combine the incremental configuration information and the target configuration information version number 1 into the updated configuration information 5. Finally, the configuration terminal 101 may send the updated configuration information 5 to the client 103 for the client 103 to update the configuration information.
With continued reference to fig. 2, a flow 200 of some embodiments of a configuration information sending method according to the present disclosure is shown. The configuration information sending method comprises the following steps:
step 201, in response to receiving a configuration information update request sent by a client, parsing a configuration information version number carried in the configuration information update request.
In some embodiments, an execution subject of the configuration information sending method (for example, the configuration terminal 101 in fig. 1) may parse the configuration information version number carried in the configuration information update request in response to receiving the configuration information update request sent by the client. Here, the configuration information update request may refer to a request instruction sent by the client to update the configuration information of the client. The configuration information may refer to configuration data in the client. For example, configuration information may include, but is not limited to: page presentation style, font type, etc. The configuration information version number may refer to a current version number of the configuration information, and may identify a current version of the configuration information. In practice, in response to receiving a configuration information update request sent by a client, the execution main body may extract a configuration information version number carried in the configuration information update request.
Optionally, before step 201, the method further includes:
the first step, responding to the received modified configuration information input by the target user, and determining whether the modified configuration information is consistent with the target historical configuration information. Here, the target user may refer to a technical developer. The target historical configuration information may refer to the most recent configuration information prior to the modified configuration information input by the target user. The modified configuration information may refer to modified information input by the target user for the current configuration information. In practice, the execution subject may determine whether the modified configuration information is the same as the target historical configuration information.
And secondly, in response to the fact that the modified configuration information is inconsistent with the target historical configuration information, updating the configuration information version number corresponding to the target historical configuration information to generate a configuration information update version number serving as a target configuration information version number. In practice, in response to determining that the modified configuration information is inconsistent with the target historical configuration information, the execution subject may modify a configuration information version number corresponding to the target historical configuration information to a latest version number to generate a configuration information update version number as a target configuration information version number. For example, the configuration information version number may be increased by 1 on the basis of the configuration information version number corresponding to the target historical configuration information.
And thirdly, sending the target configuration information version number to a related server. Here, the associated servers may be in communication connection with the client in step 201, the execution agent described above, respectively.
Step 202, in response to determining that the configuration information version number is smaller than the target configuration information version number, generating incremental configuration information according to the configuration information corresponding to the configuration information version number and the target configuration information corresponding to the target configuration information version number.
In some embodiments, the execution agent may generate, in response to determining that the configuration information version number is smaller than a target configuration information version number, incremental configuration information according to the configuration information corresponding to the configuration information version number and the target configuration information corresponding to the target configuration information version number. Here, the configuration information corresponding to the configuration information version number may refer to configuration information pointed to by the configuration information version number. The target configuration information corresponding to the target configuration information version number may refer to configuration information pointed by the target configuration information version number.
In practice, the execution body may determine, as the incremental configuration information, difference information between the configuration information corresponding to the configuration information version number and the target configuration information.
Step 203, combining the incremental configuration information and the target configuration information version number into update configuration information.
In some embodiments, the execution body may combine the incremental configuration information and the target configuration information version number into the update configuration information. In practice, the execution body may splice the incremental configuration information and the target configuration information version number into the updated configuration information.
Optionally, the update configuration information is sent to the client, so that the client updates the configuration information.
In some embodiments, the execution body may send the update configuration information to the client, so that the client updates the configuration information.
Optionally, in response to determining that the configuration information version number is greater than or equal to the target configuration information version number, sending the target configuration information version number to the client, so that the client updates the configuration information version number.
In some embodiments, the execution agent may send the target configuration information version number to the client in response to determining that the configuration information version number is greater than or equal to the target configuration information version number, so that the client updates the configuration information version number.
The above embodiments of the present disclosure have the following advantages: by the configuration information sending method of some embodiments of the disclosure, the efficiency of data transmission is improved. Specifically, the reasons for the low efficiency of data transmission are: the full data transmission usually occupies more bandwidth, and the data transmission efficiency is low. Based on this, the configuration information sending method according to some embodiments of the present disclosure first, in response to receiving a configuration information update request sent by a client, analyzes a configuration information version number carried in the configuration information update request. Therefore, the difference between the configuration information version number of the current client and the latest configuration information version number is convenient to compare. And then, in response to the fact that the configuration information version number is smaller than the target configuration information version number, generating incremental configuration information according to the configuration information corresponding to the configuration information version number and the target configuration information corresponding to the target configuration information version number. Thus, incremental configuration information corresponding to different configuration information version numbers can be generated. Therefore, the configuration information is prevented from being fully issued, and the occupation of the bandwidth is reduced. And finally, combining the incremental configuration information and the target configuration information version number into updated configuration information. Therefore, the version number of the target configuration information can be issued while the incremental configuration information is issued. Therefore, the client side can update the configuration information and update the version number of the configuration information conveniently. And only the incremental configuration information is issued, so that the data transmission quantity is greatly reduced. Furthermore, the efficiency of data transmission is improved.
With further reference to fig. 3, some embodiments of a configuration information update method according to the present disclosure are illustrated. The configuration information updating method comprises the following steps:
step 301, in response to receiving service processing information corresponding to a service request sent by a server, determining whether the service processing information includes a target configuration information version number.
In some embodiments, an executing body (e.g., the client 103 in fig. 1) of the configuration information updating method may determine whether the service processing information sent by the server includes the target configuration information version number in response to receiving the service processing information corresponding to the service request. Here, the service request may be a request for acquiring specific service information, which is sent to the server by the execution subject. For example, the service request may be a search request. The service processing information may refer to feedback information corresponding to the service request sent by the server. The target configuration information version number may refer to a version number of the latest configuration information stored in the server.
Optionally, before step 301, the method further includes: and sending a service request to the server.
In some embodiments, the execution agent may send a service request to the server.
Step 302, in response to determining that the service processing information includes a target configuration information version number, determining whether the target configuration information version number is consistent with a current local configuration information version number.
In some embodiments, the execution main body may determine whether the target configuration information version number is consistent with a current local configuration information version number in response to determining that the service processing information includes the target configuration information version number. That is, it is determined whether the target configuration information version number is the same as the current locally stored configuration information version number.
Step 303, in response to determining that the target configuration information version number is inconsistent with the configuration information version number, generating a configuration information update request, and sending the configuration information update request to a configuration terminal.
In some embodiments, the executing agent may generate a configuration information update request in response to determining that the target configuration information version number is not consistent with the configuration information version number, and send the configuration information update request to a configuration terminal. Wherein, the configuration information updating request carries the configuration information version number. In practice, in response to determining that the target configuration information version number is not consistent with the configuration information version number, the execution subject may directly generate a configuration information update request including the configuration information version number. Here, the configuration information update request may refer to a request instruction for updating the configuration information of the client transmitted to the configuration terminal.
Step 304, in response to receiving the updated configuration information corresponding to the configuration information update request sent by the configuration terminal, performing update processing on the configuration information corresponding to the configuration information version number according to the updated configuration information.
In some embodiments, the executing body may update, in response to receiving updated configuration information corresponding to the configuration information update request sent by the configuration terminal, configuration information corresponding to the configuration information version number according to the updated configuration information. Here, the update configuration information may be configuration information to be updated by the current client sent by the configuration terminal, and may include incremental configuration information and a target configuration information version number. The incremental configuration information may refer to difference information between the latest configuration information in the configuration terminal and the current configuration information of the client. The target configuration information version number may refer to a version number of the latest configuration information. In practice, the execution subject may add or modify the local configuration information according to the incremental configuration information included in the updated configuration information. The local configuration information version number may then be exchanged for the target configuration information version number.
As can be seen from fig. 3, in some embodiments corresponding to fig. 3, the process 300 may determine the version number of the configuration information of the current client through the target configuration information version number carried in the service processing information fed back by the server. Therefore, when detecting that the version number of the current configuration information is inconsistent with the target configuration information version number, the configuration information updating request can be sent to the configuration terminal. In addition, the configuration terminal sends the incremental configuration information, so that the time for updating the configuration information by the client is shortened.
With further reference to fig. 4, still further embodiments of service request processing methods according to the present disclosure are shown. The service request processing method comprises the following steps:
step 401, in response to receiving a service request sent by a client, generating processing information corresponding to the service request.
In some embodiments, an execution subject (e.g., the server 102 in fig. 1) of the service request processing method may generate processing information corresponding to the service request in response to receiving the service request sent by the client. Here, the processing information may refer to feedback information of the execution main body with respect to the service request. The service request may be a request sent by the client to the server to obtain specific service information. For example, the service request may be a search request.
Optionally, before step 401, the method further includes: and storing the target configuration information version number into a local database in response to receiving the target configuration information version number sent by the configuration terminal.
In some embodiments, the executing agent may store the target configuration information version number in a local database in response to receiving the target configuration information version number sent by the configuration terminal.
Step 402, combining the locally stored target configuration information version number and the processing information into service processing information.
In some embodiments, the execution agent may combine the locally stored target configuration information version number and the processing information into service processing information. Here, the target configuration information version number may refer to a version number of the latest configuration information. Here, combining may refer to splicing.
Step 403, sending the service processing information to the client.
In some embodiments, the execution subject may send the service processing information to the client.
The above embodiments of the present disclosure have the following advantages: by the service request processing method of some embodiments of the present disclosure, unnecessary consumption of communication resources is reduced. Specifically, the reason why unnecessary consumption of communication resources is easily caused is that: with the long link method, the client generally needs to send heartbeat data to the server at regular time, which is likely to cause unnecessary consumption of communication resources. Based on this, the service request processing method according to some embodiments of the present disclosure first generates processing information corresponding to the service request in response to receiving the service request sent by the client. Then, the locally stored target configuration information version number and the processing information are combined into service processing information. Thus, the latest configuration information version number (target configuration information version number) can be fed back to the client every time a service request sent by the client is processed. Therefore, the version number of the current configuration information can be fed back to the client in real time when the client is in the running state. And finally, sending the service processing information to the client. Therefore, the client can be reminded to update the configuration information in time. And because the latest configuration information version number can be carried in the service processing information, the client is prevented from sending heartbeat data to the server regularly. Thereby, unnecessary consumption of communication resources is reduced.
With further reference to fig. 5, as an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a configuration information sending apparatus, which correspond to those shown in fig. 2, and which may be applied in various electronic devices in particular.
As shown in fig. 5, the configuration information transmitting apparatus 500 of some embodiments includes: analysis section 501, generation section 502, and combination section 503. The parsing unit 501 is configured to parse a configuration information version number carried in a configuration information update request in response to receiving the configuration information update request sent by a client; a generating unit 502 configured to generate incremental configuration information according to configuration information corresponding to the configuration information version number and target configuration information corresponding to the target configuration information version number in response to determining that the configuration information version number is smaller than the target configuration information version number; a combining unit 503 configured to combine the incremental configuration information and the target configuration information version number into the updated configuration information.
Optionally, the apparatus 500 further comprises: a first sending unit, configured to send the update configuration information to the client, so that the client updates the configuration information.
Optionally, the apparatus 500 further comprises: a second sending unit configured to send the target configuration information version number to the client in response to determining that the configuration information version number is greater than or equal to the target configuration information version number, so that the client updates the configuration information version number.
Optionally, before the parsing unit 501, the apparatus 500 further includes: a determining unit configured to determine whether the modified configuration information is consistent with the target historical configuration information in response to receiving the modified configuration information input by the target user; an updating unit configured to update a configuration information version number corresponding to the target historical configuration information in response to determining that the modified configuration information is inconsistent with the target historical configuration information, so as to generate a configuration information update version number as a target configuration information version number; and a third sending unit configured to send the target configuration information version number to an associated server.
It will be understood that the elements described in the apparatus 500 correspond to various steps in the method described with reference to fig. 2. Thus, the operations, features and advantages described above with respect to the method are also applicable to the apparatus 500 and the units included therein, and are not described herein again.
With further reference to fig. 6, as an implementation of the methods illustrated in the above figures, the present disclosure provides some embodiments of a configuration information updating apparatus, which correspond to those method embodiments illustrated in fig. 3, and which may be applied in various electronic devices in particular.
As shown in fig. 6, the configuration information updating apparatus 600 of some embodiments includes: a first determining unit 601, a second determining unit 602, a generating unit 603, and an updating unit 604. The first determining unit 601 is configured to determine, in response to receiving service processing information corresponding to a service request sent by a server, whether the service processing information includes a target configuration information version number; a second determining unit 602, configured to determine whether the target configuration information version number is consistent with a current local configuration information version number in response to determining that the service processing information includes the target configuration information version number; a generating unit 603, configured to generate a configuration information update request in response to determining that the target configuration information version number is inconsistent with the configuration information version number, and send the configuration information update request to a configuration terminal, where the configuration information update request carries the configuration information version number; an updating unit 604, configured to, in response to receiving the updated configuration information corresponding to the configuration information updating request sent by the configuration terminal, perform an updating process on the configuration information corresponding to the configuration information version number according to the updated configuration information.
Optionally, before the first determining unit 601, the apparatus 600 further includes: a sending unit configured to send a service request to the server.
It will be understood that the units described in the apparatus 600 correspond to the various steps in the method described with reference to fig. 3. Thus, the operations, features and advantages described above for the method are also applicable to the apparatus 600 and the units included therein, and are not described herein again.
With further reference to fig. 7, as an implementation of the methods shown in the above-mentioned figures, the present disclosure provides some embodiments of a service request processing apparatus, which correspond to those of the method embodiments shown in fig. 4, and which can be specifically applied in various electronic devices.
As shown in fig. 7, a service request processing apparatus 700 of some embodiments includes: a generating unit 701, a combining unit 702 and a transmitting unit 703. The generating unit 701 is configured to generate processing information corresponding to a service request sent by a client in response to receiving the service request; a combining unit 702 configured to combine the locally stored target configuration information version number and the processing information into service processing information; a sending unit 703 configured to send the service processing information to the client.
Optionally, before the generating unit 701, the apparatus 700 further includes: and the storage unit is configured to respond to the received target configuration information version number sent by the configuration terminal and store the target configuration information version number into a local database.
It will be understood that the units described in the apparatus 700 correspond to the various steps in the method described with reference to fig. 4. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 700 and the units included therein, and will not be described herein again.
Referring now to fig. 8, shown is a schematic diagram of an electronic device (e.g., the configuration terminal 101 or the server 102 or the client 103) 800 suitable for use in implementing some embodiments of the present disclosure. The electronic device in some embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle-mounted terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 8, electronic device 800 may include a processing means (e.g., central processing unit, graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM803, various programs and data necessary for the operation of the electronic apparatus 800 are also stored. The processing apparatus 801, the ROM802, and the RAM803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, or the like; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, or the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While fig. 8 illustrates an electronic device 800 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 8 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through communications device 809, or installed from storage device 808, or installed from ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: responding to a received configuration information updating request sent by a client, and analyzing a configuration information version number carried in the configuration information updating request; responding to the situation that the configuration information version number is smaller than the target configuration information version number, and generating incremental configuration information according to the configuration information corresponding to the configuration information version number and the target configuration information corresponding to the target configuration information version number; and combining the incremental configuration information and the target configuration information version number into updated configuration information.
Or cause the electronic device to: responding to received service processing information corresponding to a service request sent by a server, and determining whether the service processing information contains a target configuration information version number; in response to the fact that the service processing information contains a target configuration information version number, determining whether the target configuration information version number is consistent with a current local configuration information version number; in response to determining that the target configuration information version number is inconsistent with the configuration information version number, generating a configuration information updating request, and sending the configuration information updating request to a configuration terminal, wherein the configuration information updating request carries the configuration information version number; and in response to receiving the updated configuration information which is sent by the configuration terminal and corresponds to the configuration information updating request, updating the configuration information corresponding to the configuration information version number according to the updated configuration information.
Or cause the electronic device to: responding to a received service request sent by a client, and generating processing information corresponding to the service request; combining the locally stored target configuration information version number and the processing information into service processing information; and sending the service processing information to the client.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes a parsing unit, a generating unit, and a combining unit. The names of these units do not form a limitation on the unit itself in some cases, for example, the combination unit may also be described as a "unit that combines the incremental configuration information and the target configuration information version number into the updated configuration information".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
Some embodiments of the present disclosure also provide a computer program product, including a computer program, which when executed by a processor implements any one of the configuration information sending method or the configuration information updating method or the service request processing method described above.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) the features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (14)

1. A method for sending configuration information comprises the following steps:
analyzing a configuration information version number carried in a configuration information updating request in response to the received configuration information updating request sent by a client;
in response to determining that the configuration information version number is smaller than a target configuration information version number, generating incremental configuration information according to configuration information corresponding to the configuration information version number and target configuration information corresponding to the target configuration information version number;
and combining the incremental configuration information and the version number of the target configuration information into updated configuration information.
2. The method of claim 1, wherein the method further comprises:
and sending the updated configuration information to the client so that the client updates the configuration information.
3. The method of claim 1, wherein the method further comprises:
and in response to determining that the configuration information version number is greater than or equal to the target configuration information version number, sending the target configuration information version number to the client so that the client updates the configuration information version number.
4. The method of claim 1, wherein before the analyzing a configuration information version number carried in a configuration information update request in response to receiving the configuration information update request sent by a client, the method further comprises:
in response to receiving modified configuration information input by a target user, determining whether the modified configuration information is consistent with target historical configuration information;
in response to determining that the modified configuration information is inconsistent with the target historical configuration information, updating a configuration information version number corresponding to the target historical configuration information to generate a configuration information update version number as a target configuration information version number;
and sending the target configuration information version number to an associated server.
5. A method for updating configuration information comprises the following steps:
responding to received service processing information corresponding to a service request sent by a server, and determining whether the service processing information contains a target configuration information version number;
responding to the fact that the business processing information contains a target configuration information version number, and determining whether the target configuration information version number is consistent with a current local configuration information version number;
in response to determining that the target configuration information version number is inconsistent with the configuration information version number, generating a configuration information updating request, and sending the configuration information updating request to a configuration terminal, wherein the configuration information updating request carries the configuration information version number;
and in response to receiving the updated configuration information which is sent by the configuration terminal and corresponds to the configuration information updating request, updating the configuration information corresponding to the configuration information version number according to the updated configuration information.
6. The method of claim 5, wherein before the determining whether the service processing information includes the target configuration information version number in response to receiving the service processing information of the corresponding service request sent by the server, the method further comprises:
and sending a service request to the server.
7. A service request processing method comprises the following steps:
responding to a received service request sent by a client, and generating processing information corresponding to the service request;
combining the locally stored target configuration information version number and the processing information into service processing information;
and sending the service processing information to the client.
8. The method of claim 7, wherein before the generating processing information corresponding to the service request in response to receiving the service request sent by the client, the method further comprises:
and responding to the received target configuration information version number sent by the configuration terminal, and storing the target configuration information version number into a local database.
9. A configuration information transmitting apparatus comprising:
the analysis unit is configured to respond to a received configuration information updating request sent by a client and analyze a configuration information version number carried in the configuration information updating request;
the generating unit is configured to respond to the fact that the configuration information version number is smaller than a target configuration information version number, and generate incremental configuration information according to the configuration information corresponding to the configuration information version number and the target configuration information corresponding to the target configuration information version number;
a combining unit configured to combine the incremental configuration information and the target configuration information version number into updated configuration information.
10. A configuration information updating apparatus comprising:
the first determining unit is configured to respond to the received service processing information of the corresponding service request sent by the server and determine whether the service processing information contains a target configuration information version number;
the second determining unit is configured to determine whether a target configuration information version number is consistent with a current local configuration information version number in response to the fact that the business processing information contains the target configuration information version number;
the generating unit is configured to respond to the fact that the target configuration information version number is not consistent with the configuration information version number, generate a configuration information updating request and send the configuration information updating request to a configuration terminal, wherein the configuration information updating request carries the configuration information version number;
and the updating unit is configured to respond to the received updated configuration information which is sent by the configuration terminal and corresponds to the configuration information updating request, and update the configuration information corresponding to the configuration information version number according to the updated configuration information.
11. A service request processing apparatus, comprising:
the generating unit is configured to respond to the received service request sent by the client and generate processing information corresponding to the service request;
a combining unit configured to combine the locally stored target configuration information version number and the processing information into service processing information;
a sending unit configured to send the service processing information to the client.
12. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method recited in any of claims 1-4 or 5-6 or 7-8.
13. A computer-readable medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1-4 or 5-6 or 7-8.
14. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-4 or 5-6 or 7-8.
CN202211114040.XA 2022-09-14 2022-09-14 Configuration information sending method, configuration information updating method and service request processing method Pending CN115550160A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211114040.XA CN115550160A (en) 2022-09-14 2022-09-14 Configuration information sending method, configuration information updating method and service request processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211114040.XA CN115550160A (en) 2022-09-14 2022-09-14 Configuration information sending method, configuration information updating method and service request processing method

Publications (1)

Publication Number Publication Date
CN115550160A true CN115550160A (en) 2022-12-30

Family

ID=84727886

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211114040.XA Pending CN115550160A (en) 2022-09-14 2022-09-14 Configuration information sending method, configuration information updating method and service request processing method

Country Status (1)

Country Link
CN (1) CN115550160A (en)

Similar Documents

Publication Publication Date Title
CN112311656B (en) Message aggregation and display method and device, electronic equipment and computer readable medium
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN111309747A (en) Data synchronization method, system and device
CN111432001B (en) Method, apparatus, electronic device and computer readable medium for jumping scenes
CN111596991A (en) Interactive operation execution method and device and electronic equipment
CN112965673A (en) Content printing method, device, equipment and storage medium
CN110837534A (en) Data list display method, device, equipment and storage medium
CN112367241A (en) Message generation and message transmission method, device, equipment and computer readable medium
CN110618768B (en) Information presentation method and device
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN111355784B (en) Method, device, medium and electronic equipment for processing request information
CN110347380B (en) Front-end and back-end development method and device
CN111752644A (en) Interface simulation method, device, equipment and storage medium
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN115550160A (en) Configuration information sending method, configuration information updating method and service request processing method
CN112230986A (en) Project file generation method and device, electronic equipment and computer readable medium
CN113064704A (en) Task processing method and device, electronic equipment and computer readable medium
CN112100205A (en) Data processing method, device, equipment and computer readable medium
CN112115154A (en) Data processing and data query method, device, equipment and computer readable medium
CN111538552A (en) Gift panel configuration method and device, readable medium and electronic equipment
CN111580890A (en) Method, apparatus, electronic device, and computer-readable medium for processing features
CN110855767B (en) Method, device, equipment and storage medium for responding operation request
CN113157365B (en) Program running method, program running device, electronic equipment and computer readable medium
CN111324512B (en) Method, apparatus, electronic device, and computer-readable medium for generating text
CN115687824A (en) Page request processing method and device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination