CN116594818A - Method, device and equipment for detecting configuration consistency of application system - Google Patents

Method, device and equipment for detecting configuration consistency of application system Download PDF

Info

Publication number
CN116594818A
CN116594818A CN202310536830.5A CN202310536830A CN116594818A CN 116594818 A CN116594818 A CN 116594818A CN 202310536830 A CN202310536830 A CN 202310536830A CN 116594818 A CN116594818 A CN 116594818A
Authority
CN
China
Prior art keywords
application system
target service
preset
request
message
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
CN202310536830.5A
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.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou 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 Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202310536830.5A priority Critical patent/CN116594818A/en
Publication of CN116594818A publication Critical patent/CN116594818A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2289Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the specification discloses a method, a device and equipment for detecting the consistency of application system configuration. The scheme may include: and acquiring information for indicating consistency detection for configuration information related to the target service at each preset application system, wherein the preset application systems comprise a first application system and a second application system with data isolation. The message is generated after determining that a target service invocation request of the service requester for a target service at the first application system satisfies a preset detection trigger condition. And determining a request processing result of each preset application system for the target service call request contained in the message. And comparing the processing results of the requests to obtain consistency detection results aiming at configuration information related to the target service at each preset application system.

Description

Method, device and equipment for detecting configuration consistency of application system
Technical Field
The present application relates to the field of consistency verification technologies, and in particular, to a method, an apparatus, and a device for detecting consistency of application system configuration.
Background
With the development and growth of business, part of enterprises gradually develop the requirement of expanding and reforming the existing application systems. The codes of the existing application system are deployed to another newly-added application system in a peer-to-peer mode, and relevant configuration information is migrated and transformed, so that the newly-added application system can have service capability consistent with that of the existing application system. At present, in the process of expanding and reforming application systems, configuration information to be migrated is complex and numerous, and partial configuration information among different application systems may also have differences, so different script files are generally required to be customized to perform consistency detection on different types of configuration information at each application system, and final configuration information consistency detection results are generated in a manual checking and analyzing mode, otherwise, the same principle is generally adopted to perform service consistency detection and data consistency detection on different application systems, so that consistency and integrity among different application systems are ensured.
Based on the above, how to improve the convenience and accuracy of consistency detection for each application system becomes a technical problem to be solved urgently.
Disclosure of Invention
According to the method, the device and the equipment for detecting the consistency of the configuration of the application system, the convenience and the accuracy of consistency detection of the configuration information of each application system can be improved, and collaborative detection can be performed on the consistency conditions of services, data and the like of each application system, so that the efficiency of overall consistency detection of each application system is improved.
In order to solve the above technical problems, the embodiments of the present specification are implemented as follows:
the method for detecting the consistency of the configuration of the application system provided by the embodiment of the specification comprises the following steps:
acquiring information for indicating consistency detection for configuration information related to a target service at each preset application system; the preset application system comprises a first application system and a second application system with data isolation; the message is generated after determining that a target service invocation request by a service requester for the target service at the first application system satisfies a preset detection trigger condition.
And responding to the message, and determining a request processing result of each preset application system for the target service call request.
And comparing the request processing results to obtain consistency detection results aiming at the configuration information related to the target service at each preset application system.
An application system configuration consistency detection device provided in an embodiment of the present disclosure includes:
the first acquisition module is used for acquiring messages for indicating consistency detection for configuration information related to the target service at each preset application system; the preset application system comprises a first application system and a second application system with data isolation; the message is generated after determining that a target service invocation request by a service requester for the target service at the first application system satisfies a preset detection trigger condition.
And the determining module is used for responding to the message and determining a request processing result of each preset application system for the target service call request.
And the comparison module is used for obtaining consistency detection results of configuration information related to the target service at each preset application system by comparing each request processing result.
An application system configuration consistency detection device provided in an embodiment of the present disclosure includes:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
acquiring information for indicating consistency detection for configuration information related to a target service at each preset application system; the preset application system comprises a first application system and a second application system with data isolation; the message is generated after determining that a target service invocation request by a service requester for the target service at the first application system satisfies a preset detection trigger condition.
And responding to the message, and determining a request processing result of each preset application system for the target service call request.
And comparing the request processing results to obtain consistency detection results aiming at the configuration information related to the target service at each preset application system.
At least one embodiment provided in this specification enables the following benefits:
because the configuration difference of each application system can influence the consistency of the service provided by each application system to the outside, namely the consistency of the configuration information among the application systems, the consistency of the service provided by the application system can be finally expressed, when the consistency detection of the configuration information related to the target service at each preset application system is required, each request processing result generated by each preset application system for processing the target service call request by using the target service provided by each preset application system can be determined, and the consistency detection result of the target service provided by each preset application system is compared by comparing each request processing result to serve as the consistency detection result of the configuration information related to the target service at each preset application system.
In addition, the consistency detection result generated by the embodiment of the specification not only can reflect the consistency condition of the configuration information at different application systems, but also can reflect the consistency condition of the service provided by different application systems and the consistency condition of the service data of different application systems, so that the consistency condition of the service, the configuration, the data and the like at each application system can be cooperatively detected, and convenience, accuracy and high efficiency in comprehensive consistency detection for different application systems are further improved.
Drawings
In order to more clearly illustrate the embodiments of the present description or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments described in the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is an application scenario schematic diagram of an application system configuration consistency detection method provided in an embodiment of the present disclosure;
Fig. 2 is a schematic flow chart of a method for detecting consistency of configuration of an application system according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a lane flow corresponding to the method for detecting consistency of configuration of the application system in FIG. 2 according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an application system configuration consistency detection device corresponding to fig. 2 according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an application system configuration consistency detection device corresponding to fig. 2 according to an embodiment of the present disclosure.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of one or more embodiments of the present specification more clear, the technical solutions of one or more embodiments of the present specification will be clearly and completely described below in connection with specific embodiments of the present specification and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present specification. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without undue burden, are intended to be within the scope of one or more embodiments herein.
The following describes in detail the technical solutions provided by the embodiments of the present specification with reference to the accompanying drawings.
In the prior art, in order to perform consistency detection on different types of configuration information at each application system, it is generally required to customize different script files for different configuration information, or generate a final configuration information consistency detection result by means of manual inspection and analysis. The implementation process of the existing mode is complicated, subjective factors of the manual inspection and analysis mode act greatly, and accuracy is low.
In order to solve the drawbacks of the prior art, the present solution provides the following embodiments:
fig. 1 is an application scenario schematic diagram of an application system configuration consistency detection method provided in an embodiment of the present disclosure.
As shown in fig. 1, after detecting that the service requester 101 generates a target service call request for a target service at the first application system 102, if the target service call request meets a preset detection trigger condition, the consistency comparison system 104 may obtain a request processing result generated by the target service at the first application system 102 for the target service call request, and obtain a request processing result generated by the target service at the second application system 103 for the target service call request. Therefore, the consistency comparison system 104 can compare the request processing results to detect whether the system configuration information of the first application system 102 and the second application system 103 related to the target service is consistent according to the comparison results, and can detect whether the target service provided by the first application system and the second application system is consistent and whether the data stored or cached by the first application system and the second application system are consistent according to the comparison results, so that the system is convenient and quick.
In practical applications, the consistency comparison system 104 may be deployed in the first application system 102 and/or the second application system 103, or the consistency comparison system 104 may be deployed outside the first application system 102 and the second application system 103, which is not limited in particular.
Next, a specific description will be given of an application system configuration consistency detection method provided for an embodiment of the specification with reference to the accompanying drawings:
fig. 2 is a flowchart of an application system configuration consistency detection method according to an embodiment of the present disclosure. From the program perspective, the execution subject of the flow may be a consistency comparison system, or an application program installed at the consistency comparison system. As shown in fig. 2, the process may include the steps of:
step 202: acquiring information for indicating consistency detection for configuration information related to a target service at each preset application system; the preset application system comprises a first application system and a second application system with data isolation; the message is generated after determining that a target service invocation request by a service requester for the target service at the first application system satisfies a preset detection trigger condition.
In the embodiment of the present disclosure, each preset application system may be a system that needs to perform configuration consistency detection, and each preset application system should be capable of providing a target service to which configuration information that needs to perform consistency detection belongs. The first application system and the second application system included in the preset application system may be application systems deployed at different sites respectively. The first application system and the second application system are separated by data, and the two application systems can realize the mutual access of data in a permission verification mode. In practical applications, the preset application system may include an application system that provides various financial services to the user, an application system that provides various life services to the user, or another type of application system. And the preset application system may include an application system that is already in online use, or may include an application system that is not already in online use in the testing stage, which is not particularly limited.
In the embodiment of the present disclosure, the target service may also be various, for example, may include a service such as query, modification, deletion, and addition of various information provided to the user, a data computing service, and a registration service of an account, which are not limited specifically. The configuration information may include configuration parameter information preset in the application system by the service provider for providing the user with the target service. And the consistency detection may refer to a detection performed in order to verify whether configuration information set for the same target service in different application systems is consistent.
In this embodiment of the present disclosure, after detecting a target service invocation request of a service requester for a target service at a first application system, whether a configuration consistency detection is required may be identified according to a preset detection triggering condition. Wherein the service requester may include a user or an application system that needs to invoke a target service. Such as: the target service may be a query for the credit score of the user on the platform, and if the user himself wants to know the credit status of the user on the platform, the requester (i.e. the service requester) that sends the query for the credit score of the user may be the user himself; if the user needs to transact the service associated with the credit score on the platform, the platform generally needs to comprehensively evaluate the user according to the credit status of the user, and then the requestor (i.e. the service requestor) who sends the query for the credit score of the user can be an application in the platform.
In this embodiment of the present disclosure, the preset detection triggering condition may be set according to an actual requirement, for example, the time interval between the current time and the last consistency detection time may meet a preset time threshold, the number of times of the accumulated requests of the service call request may meet a preset threshold, or other types of conditions. When the target service call request aiming at the target service at the first application system is determined to meet the preset detection trigger condition, the message for carrying out consistency detection on the configuration information related to the target service is regenerated, and when the preset detection trigger condition is not met, the message is not generated, so that the frequency of consistency detection can be effectively controlled, and excessive equipment resources are avoided being consumed.
Specifically, the message may carry any one or more of a name of the target service, request data of a call request of the target service, call interface information of an application system, an identifier of a service requester, a service result of the target service, and an identifier of a service result of the target service. So that the executing body of the scheme in fig. 2 can clearly determine the configuration information required to perform the consistency detection and the service type required to be used after obtaining the message, and further execute the subsequent steps.
Step 204: and responding to the message, and determining a request processing result of each preset application system for the target service call request.
In the embodiment of the present disclosure, after the execution body of the solution in fig. 2 consumes the message, a request processing result of each preset application system for the target service call request may be determined according to the data information carried in the message. In practical application, the request processing result of the first application system for the target service call request can be directly obtained from the data information carried by the message, or can be indirectly obtained according to the data information carried by the message, or can also generate a new target service call request according to the data information carried by the message, so that the corresponding request processing result is obtained by re-calling the target service at the first application system. And the second application system can generate a new target service call request according to the data information carried by the message according to the request processing result of the target service call request, so that the target service at the second application system is called to obtain the target service. The embodiment of step 204 will be explained in detail later, and will not be described in detail here.
Step 206: and comparing the request processing results to obtain consistency detection results aiming at the configuration information related to the target service at each preset application system.
In this embodiment of the present disclosure, each request processing result may include one or more fields, for example, if the target service call request is used to query the credit score of the user, the obtained request processing result may include an information score field, a user identification field, a task identification field, a service identification field, and the like of the user, which is not limited specifically.
In the embodiment of the present disclosure, comparing each request processing result may obtain, according to the comparison result of each field, a consistency detection result for configuration information related to the target service at each preset application system by respectively comparing each field of the request processing result. In practical application, if the comparison results of the fields are consistent, the comparison results not only can indicate that the configuration information of each preset application system related to the target service is consistent, but also can indicate that the target service provided by each preset application system is consistent, and the service data used when each preset application system provides the target service is also consistent; similarly, if the comparison result of each field is inconsistent, not only can the configuration information related to the target service be inconsistent, but also the target service provided by each preset application system is inconsistent, and/or the service data used when each preset application system provides the target service is inconsistent.
In the method in fig. 2, the consistency detection result of the target service provided by each preset application system is used as the consistency detection result of the configuration information related to the target service for each preset application system, and since the script for consistency detection for each type of configuration information does not need to be developed in advance, and the configuration consistency detection result does not need to be generated by relying on manual experience, the convenience and the accuracy in consistency detection for the configuration information for each application system are improved.
In addition, the consistency detection result generated by the embodiment of the specification not only can reflect the consistency condition of the configuration information at different application systems, but also can reflect the consistency condition of the service provided by different application systems and the consistency condition of the service data of different application systems, so that the consistency collaborative detection can be performed for the service, the configuration, the data and the like at each application system, and convenience, accuracy and high efficiency in the consistency detection for different application systems are further improved.
Based on the method in fig. 2, the examples of the present specification also provide some specific embodiments of the method, as described below.
In the embodiment of the present specification, for ease of understanding, the manner of generating the message for indicating that the consistency detection is performed in step 202 is also given.
Specifically, before the obtaining the message for indicating the consistency detection for the configuration information related to the target service at each preset application system, the method may further include:
after the first application system is identified to receive the target service call request, judging whether a time interval for consistency detection of configuration information related to the target service is greater than or equal to a preset duration, and obtaining a judging result.
And if the judging result shows that the time interval for consistency detection of the configuration information related to the target service is greater than or equal to the preset duration, generating the message.
If the judging result indicates that the time interval for consistency detection of the configuration information related to the target service is smaller than the preset duration, the generation of the message can be forbidden.
In the embodiment of the present disclosure, the target service invocation request meeting the preset detection triggering condition may refer to that a time interval for performing consistency detection on relevant configuration information of the target service is greater than or equal to a preset duration. The target service invocation request may be any one of the service invocation requests received by the first application system. The time interval may be a time interval between a current time and a time of last coincidence detection with respect to configuration information related to the target service. The message is generated after the time interval is greater than or equal to the preset duration, so that the scheme in fig. 2 is executed, and the frequency of consistency detection for the configuration information related to the target service can be effectively controlled.
In practical applications, the number of times different services are invoked may vary greatly, for example, some services may be invoked tens of millions of times within the same preset time period, while some services may be invoked only thousands of times. In the prior art, different services are generally sampled according to the same proportion to perform configuration consistency detection, for example, if the services are sampled according to the proportion of 1%, some services will be sampled and detected hundreds of thousands of times, and for some services, the sampling and detection will be performed tens of times, so that the number of times of configuration consistency detection on configuration information related to different services is relatively large, and the uniformity is poor. In the embodiment of the present disclosure, the same preset duration may be set for different services, so that after the same preset duration passes, one-time consistency detection may be performed on the configuration information related to each service, so as to promote the uniformity of consistency detection on the related configuration information of different services.
In this embodiment of the present disclosure, each time consistency detection is performed on configuration information, a piece of history data for recording the detection event may be generated, so that it is convenient to determine whether the preset detection trigger condition is satisfied based on the history data later.
Based on this, the time interval may be a time interval between the current time and a recording time of the last coincidence detection of the relevant configuration information of the target service stored in the system. Correspondingly, before determining whether the time interval for performing consistency detection on the configuration information related to the target service is greater than or equal to the preset duration, the method may further include:
inquiring historical record data for consistency detection of configuration information related to the target service to obtain a data inquiry result; the history record data carries service identification information of the target service and the history time for consistency detection of configuration information related to the target service.
And if the data query result indicates that the historical record data is queried, calculating the difference between the latest historical moment and the current moment in the historical record data to obtain a time interval for consistency detection of the configuration information related to the target service.
In this embodiment of the present disclosure, the history data may include service identification information of the target service and a history time of performing consistency detection on relevant configuration information of the target service, so that when a target service call request for the target service is identified, the history data of performing consistency detection on relevant configuration information of the target service may be queried, and if the history data of performing consistency detection on relevant configuration information of the target service is queried, a latest history time carried by the history data is a time of performing consistency detection on relevant configuration information of the target service last (i.e., last) time, so that a difference between the latest history time and a current time may be calculated, and an obtained calculation result may be used as a time interval of performing consistency detection on relevant configuration information of the target service. The current time may be the time when the history data for consistency detection is queried for the relevant configuration information of the target service, or the time when the target service call request is identified, which is not particularly limited.
In practical application, when consistency detection is performed on configuration information of a target service, a new piece of history data for recording the detection event can be generated on the basis of keeping other history data related to the target service, so that the data integrity is guaranteed. Or, the existing history data related to the target service may be modified and updated, so that only one piece of history data related to the target service is reserved, which is favorable for saving storage space, and is not limited in particular.
When querying the history data of the consistency detection performed on the relevant configuration information of the target service, if the system does not store the history data of the consistency detection, the corresponding history data will not be queried. Based on this, the querying historical record data for consistency detection of the configuration information related to the target service, after obtaining the data query result, may further include:
if the data query result indicates that the historical record data is not queried, generating first record data; the first record data carries service identification information of the target service and a first moment; the first time is a time which is a first time length later than the current time; the first duration is a random number between zero and the preset duration.
In this embodiment of the present disclosure, in an initial online stage of the first application system or after the first application system is restarted, it is generally impossible to query the history data for performing consistency detection on the relevant configuration information of the target service, and at this time, after identifying the target service call request for the target service, a message for performing consistency detection on the relevant configuration information of the target service may not be generated, so that consistency detection is not performed on the relevant configuration information of the target service. In addition, in order to ensure the normal operation of the subsequent consistency detection scheme, service identification information carrying the target service and first record data at the first moment can be generated according to the identified target service call request. So as to judge whether the preset detection triggering condition is met or not according to the first record data.
In practical application, since the first application system receives a large amount of various service call requests in a short time after the first application system is initially on-line or restarted, if the time when the target service call request is identified or the current time is taken as the first time to be recorded in the first record data, the first time carried in the first record data generated for each service call request is the same. When the service call requests are identified again next time after the same preset duration is passed, the time interval for carrying out consistency detection on the relevant configuration information of the service required to be called by each service call request is greater than or equal to the preset duration, so that the consistency detection can be carried out on the relevant configuration information of the service required to be called by each service call request at the same moment, and at the moment, a high peak value of the consistency detection is most likely to occur by the consistency detection server, and the load is large. Therefore, in order to avoid consistency detection of relevant configuration information of numerous services at the same time, the first time carried by the first record data may be a time later than the current time by a first time length, and the first time length may be a random value between zero and a preset duration.
In the embodiment of the present disclosure, the first time carried in the generated first record data is a time later than the current time by a first time length, and the first time length is a random number between zero and a preset time length. Therefore, the consistency detection of the relevant configuration information of a plurality of services at the same time can be avoided, and the probability of overlarge load and even breakdown of the server caused by the consistency detection of the relevant configuration information of a plurality of services at the same time is reduced.
Based on the same principle, after a message for carrying out consistency detection on the relevant configuration information of the target service is generated and the configuration consistency detection is required, a record for recording the current configuration consistency detection event can also be generated. Based on this, after the generating the message, the method may further include:
generating second record data; the second record data carries service identification information of the target service and a second moment; the second time is a time which is later than the current time by a second time length; the second duration is a random number between zero and the preset duration.
In the embodiment of the present disclosure, the second record data is generated by the message for performing consistency detection according to the relevant configuration information for the target service acquired in step 202, so that after the service call request for the target service is identified next time, when the corresponding time interval for configuration consistency detection is calculated, the time of the last configuration consistency detection can be queried, which is favorable for ensuring that the follow-up accurate judgment of whether the preset detection triggering condition is satisfied.
The second record data may carry service identification information of the target service and the second moment. In order to avoid consistency detection of relevant configuration information of a plurality of services at the same time, a second time carried by the second record data may be a time later than the current time by a second time length, and the second time length may be a random value from zero to a preset time length, so that the second time length has randomness.
In the embodiment of the present disclosure, when the target service invocation request meets the preset detection triggering condition, the message may be published by using the message publishing application, so that the execution body of the method in fig. 2 may obtain the message from the message middleware. Based on this, the generating the message may specifically include:
and publishing the message in a preset message theme by using a message publishing application.
The obtaining a message for indicating to perform consistency detection for the configuration information related to the target service at each preset application system specifically may include:
and consuming the information published in the preset information theme to obtain the information.
In the embodiment of the present disclosure, an adaptive equalization sampling application may be provided in the consistency comparison system, and after determining that a time interval for consistency detection with respect to configuration information related to a target service is greater than or equal to a preset duration, the adaptive equalization sampling application may issue the message in a preset message theme by using a message issue application. In practical application, the adaptive equalization sampling application can be an application program which is independently developed, and can be arranged in the same site as the first application system, so that the execution convenience and the safety of the configuration consistency comparison scheme can be improved. Of course, the adaptive equalization sampling application may not be located in the same site as the first application system, but may be located at another site, which is not limited in particular.
The message publishing application may be a message middleware, for example, may be any one of Kafka, rocketMQ, rabbitMQ and other kinds of message middleware, which is not specifically limited. In practical application, the message publishing application may be set in a site to which the first application system belongs, or may be set in another site other than the site to which the first application system belongs, which is not limited specifically. In addition, if the application providing the target service at the first application system has the function of publishing the message, the message publishing application can be not independently set, and the message can be published in the preset message theme by the application providing the target service at the first application system, so that the method is convenient and quick.
In this embodiment of the present disclosure, the execution body of the solution in fig. 2 (i.e., the consistency comparison system, or the consistency comparison application in the consistency comparison system) may subscribe to the preset message theme in advance, so that after the message is published on the preset message theme, the message may be obtained by consuming a message operation, and then the consistency comparison is performed. In practical applications, the consistency ratio application may be deployed in a site to which the first application system belongs, or may be deployed at a site other than the site to which the first application system belongs, which is not limited specifically.
In practical applications, the message publishing application may not be used to publish the message, so as to transmit the message to the consistency comparison application. The method can utilize the interface calling mode, directly adopts the application to generate and send the message to the consistency comparison application by the self-adaptive equalization, and is convenient and quick.
In the embodiment of the specification, the target service call request can be intercepted from the first application system by setting an interceptor so as to identify the target service call request at the first application system. Based on this, the determining whether the time interval for performing the consistency detection on the configuration information related to the target service is greater than or equal to a preset duration may further include:
and acquiring request data of the target service call request intercepted by the interceptor at the first application system.
And acquiring the preset duration with the corresponding relation with the service identification information carried in the request data.
In the embodiment of the present specification, the interceptor may intercept the service call request for the service provided at the first application system. The request data may include identification information of the service, basic data of the service, input parameters when the service is called, and the like.
Based on the above, the adaptive equalization sampling application may obtain the request data of the target service call request from the interceptor, then obtain the preset duration with the corresponding relation according to the service identifier of the target service carried in the request data, further determine whether the time interval for performing the consistency detection on the relevant configuration information of the target service is greater than or equal to the obtained preset duration, if yes, may generate a message for performing the consistency detection on the relevant configuration information of the target service, which is convenient and fast.
In the embodiment of the present disclosure, when performing configuration consistency comparison, a request processing result of each preset application system for the same target service call request needs to be obtained. For easy understanding, an implementation manner of obtaining a request processing result of a second application system in the preset application systems for a target service call request is provided herein.
Specifically, the method in fig. 2 may further include the following steps:
if the message carries the request data of the target service call request, step 204: responding to the message, determining a request processing result of each preset application system for the target service call request specifically may include:
A first service invocation request for the target service at the second application system is generated in accordance with the request data.
And sending the first service call request to the second application system.
And receiving a first request processing result fed back by the second application system in response to the first service call request.
In the embodiment of the present disclosure, the message generated by performing consistency detection on the relevant configuration information of the target service may carry the request data of the target service call request. The consistency comparison application may regenerate a first service invocation request for the target service at the second application system based on the request data carried in the message. The first service invocation request and the target service invocation request may be the same service invocation request. The consistency comparison application sends the generated first service call request to the second application system, the second application system calls corresponding target service according to the received first service call request, generates a first request processing result aiming at the first service call request by utilizing the target service, and finally the second application system can send the generated first request processing result to the consistency comparison application so that the consistency comparison application can generate a configuration consistency detection result based on the first request processing result.
Meanwhile, an implementation mode for obtaining a request processing result of a first application system in the preset application systems aiming at a target service call request is provided.
Specifically, step 204: in response to the message, determining a request processing result of each preset application system for the target service call request, and may further include:
acquiring a second request processing result generated by the first application system in response to the target service call request; or,
generating a second service call request for the target service at the first application system according to the request data.
And sending the second service calling request to the first application system.
And receiving a third request processing result fed back by the first application system in response to the second service call request.
In this embodiment of the present disclosure, the request data of the target service call request is acquired by the interceptor from the first application system, after the interceptor intercepts the request data, the request data may be sent to the adaptive equalization sampling application first, the adaptive equalization sampling application determines whether to perform consistency detection on relevant configuration information of the target service corresponding to the intercepted request data, and after the adaptive equalization sampling application determines that the adaptive equalization sampling application is finished, the first application system may perform subsequent processing on the target service call request to generate a second request processing result that needs to be fed back to the service requester. When consistency comparison is carried out, the consistency comparison application can directly acquire the second request processing result without calling the target service at the first application system again to generate the request processing result aiming at the target service calling request again, thereby being beneficial to saving equipment resources.
In an actual application, the obtaining a second request processing result generated by the first application system in response to the target service call request may specifically include:
acquiring the second request processing result carried in the message; or,
and acquiring the second request processing result from the first application system according to the query identification information for the second request processing result carried in the message.
In the embodiment of the present disclosure, when the adaptive equalization sampling application determines that the consistency detection needs to be performed on the relevant configuration information of the target service corresponding to the intercepted target service call request, after the first application system generates the second request processing result for the target service call request, a message for performing the consistency detection on the relevant configuration information of the target service may be generated, and at this time, the generated message may directly carry the second request processing result. After the consistency comparison application consumes the subscribed information, the second request processing result can be directly obtained from the information. Or, the generated message may also carry query identification information of the second request processing result, after the subscribed message is consumed by the consistency comparison application, the query identification information of the second request processing result may be obtained from the message, and then the second request processing result is queried from the first application system according to the query identification information.
In the embodiment of the specification, the consistency comparison application can directly acquire the second request processing result from the subscribed message, or can query the second request processing result from the first application system according to the query identification information of the second request processing result carried in the message, without calling the first application system again to generate the request processing result of the target service call request once, thereby being beneficial to reducing the calculation amount of the first application system and saving the calculation resources of the first application system.
In the embodiment of the present disclosure, the consistency comparison application may also regenerate, according to the request data carried in the message, a second service call request for the target service at the first application system. The second service invocation request and the target service invocation request may be the same service invocation request. The consistency comparison application can send the generated second service call request to the first application system, the first application system calls corresponding target service according to the received second service call request, generates a third request processing result aiming at the second service call request by utilizing the target service, and finally sends the generated third request processing result to the consistency comparison application, so that the consistency comparison application generates a configuration consistency detection result based on the third request processing result, and the consistency comparison application is convenient and quick.
In the embodiment of the present disclosure, in order to facilitate management of a plurality of services including a target service, an interface for managing the plurality of services may be provided in each preset application system. Based on this, the second application system may have a first preset interface for managing a plurality of services including the target service; the first application system may have a second preset interface for managing a plurality of services including the target service.
Correspondingly, generating a first service call request for the target service at the second application system according to the request data may specifically include:
generating a first interface call request aiming at the first preset interface according to the request data; the first preset interface is used for responding to the first interface calling request, calling the target service at the second application system and generating the first request processing result.
Correspondingly, generating a second service call request for the target service at the first application system according to the request data may specifically include:
generating a second interface call request for the second preset interface according to the request data; the second preset interface is used for responding to the second interface calling request, calling the target service at the first application system and generating the third request processing result.
In this embodiment of the present disclosure, a first preset interface configured to manage a plurality of services may be provided at the second application system, and invoking the plurality of services at the second application system may be implemented through the first preset interface. The consistency comparison application may be a first interface call request generated for a first preset interface according to a first service call request generated by the application according to request data carried in the consumed message. After receiving a first interface call request sent by the consistency comparison application, the second application system can use a first preset interface to respond to the first interface call request, call a corresponding target service at the second application system, generate a first request processing result aiming at the first interface call request by using the target service, and send the generated first request processing result to the consistency comparison application.
In the embodiment of the specification, the calling authority of the plurality of services in the second application system can be obtained by obtaining the calling authority of the first preset interface without independently applying for the calling authority for each service in the second application system, so that convenience in calling each service in the second application system can be improved, and convenience in configuring the consistency detection scheme is further improved.
In this embodiment of the present disclosure, a second preset interface configured to manage a plurality of services may be provided at the first application system, and invoking the plurality of services at the first application system may be implemented through the second preset interface. The consistency comparison application may be a second interface call request generated for a second preset interface according to a second service call request generated by the request data carried in the consumed message. After receiving a second interface call request sent by the consistency comparison application, the first application system can use a second preset interface to respond to the second interface call request, call a corresponding target service at the first application system, generate a third request processing result aiming at the second interface call request by using the target service, and send the generated third request processing result to the consistency comparison application.
In the embodiment of the specification, the calling authority of the plurality of services in the first application system can be obtained by obtaining the calling authority of the second preset interface without independently applying for the calling authority for each service in the first application system, so that convenience in calling each service in the first application system can be improved, and convenience in configuring the consistency detection scheme is further improved.
In practical application, the first interface call request and the second interface call request are generated based on the request data of the target service call request, so that the first interface call request, the second interface call request and the target service call request all have consistency, the comparability among the first request processing result, the second request processing result and the third request processing result can be ensured, and the consistency comparison result aiming at the configuration information related to the target service can be generated by comparing the request processing results.
In the embodiment of the present disclosure, a first application for providing the target service may be provided at the second application system, and the first preset interface may be an interface of the first application for managing a plurality of services including the target service provided by the first application; the first application system may be provided with a second application for providing the target service, and the second preset interface may be an interface of the second application for managing a plurality of services including the target service provided by the second application.
Based on this, before generating the first interface call request for the first preset interface according to the request data, the method may further include:
And acquiring the calling authority aiming at the first preset interface.
Before generating the second interface call request for the second preset interface according to the request data, the method further includes:
and acquiring the calling authority aiming at the second preset interface.
In the embodiment of the present specification, the second application system may be provided with a gateway that manages the call authority for the service provided by itself. The first preset interface at the second application system can be used for managing various services including the target service provided by the first application, so that the consistency comparison application can acquire the calling authority of the first preset interface from the gateway of the second application system in advance. And the plurality of services can be called through the obtained calling authority aiming at the first preset interface, so that the consistency detection of the related configuration information aiming at the plurality of services is facilitated.
In the embodiment of the present specification, the first application system may be provided with a gateway that manages the call authority for the service provided by itself. The second preset interface at the first application system can be used for managing various services including the target service provided by the second application, so that the consistency comparison application can acquire the calling authority of the second preset interface from the gateway of the first application system in advance. And the plurality of services can be called through the obtained calling authority aiming at the second preset interface, so that the consistency detection of the related configuration information aiming at the plurality of services is facilitated.
In the embodiment of the specification, the calling authority of any one of the plurality of services managed by the first/second preset interfaces can be obtained by obtaining the calling authority of the first/second preset interfaces, and the calling authority of each service does not need to be independently applied for obtaining, so that the convenience of obtaining the calling authority of the service can be improved, and the convenience of configuring the consistency detection scheme is further improved.
Fig. 3 is a schematic flow chart of a lane corresponding to the method for detecting consistency of configuration of an application system in fig. 2 according to an embodiment of the present disclosure. As shown in fig. 3, the application system configuration consistency detection procedure may involve an execution subject of a service requester, a first application system, a second application system, a consistency comparison system, and the like. The consistency comparison system can comprise an adaptive equalization sampling application, a message publishing application and a consistency comparison application.
In the service invocation phase, the service requester may send a target service invocation request for the target service to the first application system, and the target service invocation request for the target service received by the first application system may be intercepted by the interceptor, so that the adaptive balanced sampling application at the consistency comparison system can identify the target service invocation request.
In the consistency comparison stage, the consistency comparison system can utilize the self-adaptive balanced sampling application to judge whether the time interval for carrying out consistency detection on the configuration information related to the target service is more than or equal to the preset duration, and if the judgment result shows that the time interval is less than the preset duration, the consistency detection is not carried out; if the judging result shows that the time interval is greater than or equal to the preset duration, a message publishing application can be utilized to publish a message for consistency detection of the configuration information related to the target service in a preset message theme, and second record data is generated. In addition, the first application system may generate a second request processing result in response to the target service invocation request.
Subsequently, the consistency comparison application in the consistency comparison system can consume the message issued in the preset theme to acquire the content carried in the message. And the consistency comparison application can regenerate a first service call request aiming at the target service at the second application system according to the request data carried in the message, send the first service call request to the second application system, respond to the received first service call request, generate a first request processing result and send the first request processing result to the consistency comparison application.
In addition, if the message carries the second request processing result generated by the first application system or the query identification information of the second request processing result, the consistency comparison application may directly obtain the second request processing result from the message, or query the second request processing result from the first application system according to the query identification information of the second request processing result. If the message does not carry the second request processing result generated by the first application system or the query identification information of the second request processing result, the consistency ratio application can also regenerate a second service call request aiming at the target service at the first application system according to the request data carried in the message, send the second service call request to the first application system, and the first application system can generate a third request processing result in response to the received second service call request and send the third request processing result to the consistency ratio application. And finally, the consistency comparison application can compare and analyze the received second request processing result or third request processing result with the first request processing result to obtain a consistency detection result aiming at the configuration information related to the target service at the first application system and the second application system, and besides, the consistency detection result can also be used as a consistency detection result aiming at the target service provided by the first application system and the second application system and/or a consistency detection result aiming at the related service data stored or cached by the first application system and the second application system. Therefore, collaborative detection can be performed according to the consistency conditions of services, configuration, data and the like of each application system, and convenience, accuracy and high efficiency in comprehensive consistency detection according to different application systems are further improved.
Based on the same thought, the embodiment of the specification also provides a device corresponding to the method. Fig. 4 is a schematic structural diagram of an application system configuration consistency detection device corresponding to fig. 2 according to an embodiment of the present disclosure. As shown in fig. 4, the apparatus may include:
a first obtaining module, configured to obtain a message for indicating to perform consistency detection for configuration information related to a target service at each preset application system; the preset application system comprises a first application system and a second application system with data isolation; the message is generated after determining that a target service invocation request by a service requester for the target service at the first application system satisfies a preset detection trigger condition.
And 404, determining a request processing result of each preset application system for the target service call request according to the message.
And 406 a comparison module, configured to obtain a consistency detection result for the configuration information related to the target service at each preset application system by comparing each request processing result.
The present description example also provides some specific embodiments of the device based on the device of fig. 4, which is described below.
Optionally, the apparatus may further include:
and the judging module is used for judging whether the time interval for carrying out consistency detection on the configuration information related to the target service is greater than or equal to the preset duration after the first application system is identified to receive the target service call request, so as to obtain a judging result.
The first generation module is configured to generate the message if the determination result indicates that a time interval for performing consistency detection on the configuration information related to the target service is greater than or equal to a preset duration.
Optionally, the apparatus may further include:
the query module is used for querying historical record data for consistency detection of configuration information related to the target service to obtain a data query result; the history record data carries service identification information of the target service and the history time for consistency detection of configuration information related to the target service.
And the calculation module is used for calculating the difference between the latest historical moment and the current moment in the historical record data if the data query result indicates that the historical record data is queried, and obtaining the time interval for consistency detection of the configuration information related to the target service.
Optionally, the apparatus may further include:
the second generation module is used for generating first record data if the data query result indicates that the history record data is not queried; the first record data carries service identification information of the target service and a first moment; the first time is a time which is a first time length later than the current time; the first duration is a random number between zero and the preset duration.
Optionally, the apparatus may further include:
the third generation module is used for generating second record data; the second record data carries service identification information of the target service and a second moment; the second time is a time which is later than the current time by a second time length; the second duration is a random number between zero and the preset duration.
Optionally, the first generating module may specifically include:
and the issuing unit is used for issuing the message in a preset message theme by utilizing the message issuing application.
The first obtaining module may specifically include:
and the consumption unit is used for consuming the information released in the preset information theme to obtain the information.
Optionally, the apparatus may further include:
the second acquisition module is used for acquiring the request data of the target service call request intercepted by the interceptor at the first application system.
And a third obtaining module, configured to obtain the preset duration having a corresponding relationship with the service identifier information carried in the request data.
Optionally, the message carries request data of the target service call request.
The determining module may specifically include:
and the first generation unit is used for generating a first service calling request aiming at the target service at the second application system according to the request data.
And the first sending unit is used for sending the first service calling request to the second application system.
And the first receiving unit is used for receiving a first request processing result fed back by the second application system in response to the first service call request.
Optionally, the determining module may further include:
the acquisition unit is used for acquiring a second request processing result generated by the first application system in response to the target service call request; or,
and the second generation unit is used for generating a second service call request aiming at the target service at the first application system according to the request data.
And the second sending unit is used for sending the second service calling request to the first application system.
And the second receiving unit is used for receiving a third request processing result fed back by the first application system in response to the second service calling request.
Optionally, the second application system has a first preset interface for managing a plurality of services including the target service; the first application system has a second preset interface for managing a plurality of services including the target service.
The first generating unit may specifically include:
the first generation subunit is used for generating a first interface call request aiming at the first preset interface according to the request data; the first preset interface is used for responding to the first interface calling request, calling the target service at the second application system and generating the first request processing result.
The second generating unit may specifically include:
a second generating subunit, configured to generate a second interface call request for the second preset interface according to the request data; the second preset interface is used for responding to the second interface calling request, calling the target service at the first application system and generating the third request processing result.
Optionally, the second application system is provided with a first application for providing the target service, and the first preset interface is an interface of the first application for managing a plurality of services including the target service provided by the first application; the first application system is provided with a second application for providing the target service, and the second preset interface is an interface of the second application for managing a plurality of services including the target service, which are provided by the second application.
The first generating unit may further include:
the first acquisition subunit is used for acquiring the calling authority aiming at the first preset interface.
The second generating unit may further include:
and the second acquisition subunit is used for acquiring the calling authority aiming at the second preset interface.
Optionally, the acquiring unit may specifically include:
a third obtaining subunit, configured to obtain the second request processing result carried in the message; or,
and the fourth acquisition subunit is used for acquiring the second request processing result from the first application system according to the query identification information for the second request processing result carried in the message.
Based on the same thought, the embodiment of the specification also provides equipment corresponding to the method.
Fig. 5 is a schematic structural diagram of an application system configuration consistency detection device corresponding to fig. 2 according to an embodiment of the present disclosure. As shown in fig. 5, the apparatus 500 may include:
at least one processor 510; the method comprises the steps of,
a memory 530 communicatively coupled to the at least one processor; wherein,,
the memory 530 stores instructions 520 executable by the at least one processor 510, the instructions being executable by the at least one processor 510 to enable the at least one processor 510 to:
acquiring information for indicating consistency detection for configuration information related to a target service at each preset application system; the preset application system comprises a first application system and a second application system with data isolation; the message is generated after determining that a target service invocation request by a service requester for the target service at the first application system satisfies a preset detection trigger condition.
And responding to the message, and determining a request processing result of each preset application system for the target service call request.
And comparing the request processing results to obtain consistency detection results aiming at the configuration information related to the target service at each preset application system.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the apparatus shown in fig. 5, the description is relatively simple as it is substantially similar to the method embodiment, with reference to the partial description of the method embodiment being relevant.
In the 90 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (ProgrammableLogicDevice, PLD) (e.g., field programmable gate array (FieldProgrammableGate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by a user. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (HardwareDescriptionLanguage, HDL), and HDL is not only one but a plurality of kinds, such as ABEL (AdvancedBooleanExpressionLanguage), AHDL (AlteraHardwareDescription Language), confluence, CUPL (cornelluniversal programming language), HDCal, JHDL (javahard script language), lava, lola, myHDL, PALASM, RHDL (Ruby HardwareDescriptionLanguage), etc., VHDL (Very-High-SpeedIntegrated CircuitHardwareDescriptionLanguage) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits (ApplicationSpecificIntegratedCircuit, ASIC), programmable logic controllers, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmelAT91SAM, microchipPIC F26K20 and silicane labsc8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in the same piece or pieces of software and/or hardware when implementing the present application.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash memory (flashRAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transshipment) such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (25)

1. An application system configuration consistency detection method comprises the following steps:
acquiring information for indicating consistency detection for configuration information related to a target service at each preset application system; the preset application system comprises a first application system and a second application system with data isolation; the message is generated after determining that a target service call request of a service requester for the target service at the first application system meets a preset detection trigger condition;
responding to the message, and determining a request processing result of each preset application system for the target service call request;
and comparing the request processing results to obtain consistency detection results aiming at the configuration information related to the target service at each preset application system.
2. The method of claim 1, further comprising, prior to the obtaining the message indicating the consistency detection for the configuration information related to the target service at each of the preset application systems:
after the first application system is identified to receive the target service call request, judging whether a time interval for consistency detection of configuration information related to the target service is greater than or equal to a preset duration or not, and obtaining a judging result;
and if the judging result shows that the time interval for consistency detection of the configuration information related to the target service is greater than or equal to the preset duration, generating the message.
3. The method of claim 2, wherein the determining whether the time interval for consistency detection of the configuration information related to the target service is greater than or equal to a preset duration further comprises:
inquiring historical record data for consistency detection of configuration information related to the target service to obtain a data inquiry result; the history record data carries service identification information of the target service and a history moment for consistency detection of configuration information related to the target service;
And if the data query result indicates that the historical record data is queried, calculating the difference between the latest historical moment and the current moment in the historical record data to obtain a time interval for consistency detection of the configuration information related to the target service.
4. The method of claim 3, wherein the querying historical record data for consistency detection of configuration information related to the target service, after obtaining a data query result, further comprises:
if the data query result indicates that the historical record data is not queried, generating first record data; the first record data carries service identification information of the target service and a first moment; the first time is a time which is a first time length later than the current time; the first duration is a random number between zero and the preset duration.
5. The method of claim 3, after the generating the message, further comprising:
generating second record data; the second record data carries service identification information of the target service and a second moment; the second time is a time which is later than the current time by a second time length; the second duration is a random number between zero and the preset duration.
6. The method according to claim 2, wherein the generating the message specifically comprises:
publishing the message in a preset message theme by utilizing a message publishing application;
the obtaining a message for indicating to perform consistency detection on configuration information related to the target service at each preset application system specifically includes:
and consuming the information published in the preset information theme to obtain the information.
7. The method of claim 2, wherein the determining whether the time interval for consistency detection of the configuration information related to the target service is greater than or equal to a preset duration further comprises:
acquiring request data of the target service call request intercepted by the interceptor at the first application system;
and acquiring the preset duration with the corresponding relation with the service identification information carried in the request data.
8. The method of claim 1, wherein the message carries request data of the target service call request;
the response to the message determines a request processing result of each preset application system for the target service call request, which specifically includes:
generating a first service call request for the target service at the second application system according to the request data;
Sending the first service call request to the second application system;
and receiving a first request processing result fed back by the second application system in response to the first service call request.
9. The method of claim 8, wherein the determining, in response to the message, a request processing result of each of the preset application systems for the target service call request further comprises:
acquiring a second request processing result generated by the first application system in response to the target service call request; or,
generating a second service call request for the target service at the first application system according to the request data;
sending the second service call request to the first application system;
and receiving a third request processing result fed back by the first application system in response to the second service call request.
10. The method of claim 9, the second application system having a first preset interface at the second application system for managing a plurality of services including the target service; a second preset interface for managing a plurality of services including the target service is arranged at the first application system;
the generating a first service call request for the target service at the second application system according to the request data specifically includes:
Generating a first interface call request aiming at the first preset interface according to the request data; the first preset interface is used for responding to the first interface calling request, calling the target service at the second application system and generating the first request processing result;
the generating a second service call request for the target service at the first application system according to the request data specifically includes:
generating a second interface call request for the second preset interface according to the request data; the second preset interface is used for responding to the second interface calling request, calling the target service at the first application system and generating the third request processing result.
11. The method according to claim 10, wherein a first application for providing the target service is arranged at the second application system, and the first preset interface is an interface of the first application for managing a plurality of services including the target service provided by the first application; the first application system is provided with a second application for providing the target service, and the second preset interface is an interface of the second application for managing a plurality of services including the target service, provided by the second application;
Before generating the first interface call request for the first preset interface according to the request data, the method further comprises:
acquiring a calling authority aiming at the first preset interface;
before generating the second interface call request for the second preset interface according to the request data, the method further includes:
and acquiring the calling authority aiming at the second preset interface.
12. The method of claim 9, wherein the obtaining the second request processing result generated by the first application system in response to the target service call request specifically includes:
acquiring the second request processing result carried in the message; or,
and acquiring the second request processing result from the first application system according to the query identification information for the second request processing result carried in the message.
13. An application system configuration consistency detection apparatus, comprising:
the first acquisition module is used for acquiring messages for indicating consistency detection for configuration information related to the target service at each preset application system; the preset application system comprises a first application system and a second application system with data isolation; the message is generated after determining that a target service call request of a service requester for the target service at the first application system meets a preset detection trigger condition;
The determining module is used for responding to the message and determining a request processing result of each preset application system for the target service call request;
and the comparison module is used for obtaining consistency detection results of configuration information related to the target service at each preset application system by comparing each request processing result.
14. The apparatus of claim 13, further comprising:
the judging module is used for judging whether the time interval for consistency detection of the configuration information related to the target service is greater than or equal to a preset duration after the first application system is identified to receive the target service call request, so as to obtain a judging result;
the first generation module is configured to generate the message if the determination result indicates that a time interval for performing consistency detection on the configuration information related to the target service is greater than or equal to a preset duration.
15. The apparatus of claim 14, further comprising:
the query module is used for querying historical record data for consistency detection of configuration information related to the target service to obtain a data query result; the history record data carries service identification information of the target service and a history moment for consistency detection of configuration information related to the target service;
And the calculation module is used for calculating the difference between the latest historical moment and the current moment in the historical record data if the data query result indicates that the historical record data is queried, and obtaining the time interval for consistency detection of the configuration information related to the target service.
16. The apparatus of claim 15, further comprising:
the second generation module is used for generating first record data if the data query result indicates that the history record data is not queried; the first record data carries service identification information of the target service and a first moment; the first time is a time which is a first time length later than the current time; the first duration is a random number between zero and the preset duration.
17. The apparatus of claim 15, further comprising:
the third generation module is used for generating second record data; the second record data carries service identification information of the target service and a second moment; the second time is a time which is later than the current time by a second time length; the second duration is a random number between zero and the preset duration.
18. The apparatus of claim 14, the first generation module specifically comprising:
The publishing unit is used for publishing the message in a preset message theme by utilizing a message publishing application;
the first acquisition module specifically includes:
and the consumption unit is used for consuming the information released in the preset information theme to obtain the information.
19. The apparatus of claim 14, further comprising:
the second acquisition module is used for acquiring request data of the target service call request intercepted by the interceptor at the first application system;
and a third obtaining module, configured to obtain the preset duration having a corresponding relationship with the service identifier information carried in the request data.
20. The apparatus of claim 13, wherein the message carries request data of the target service invocation request;
the determining module specifically comprises:
a first generation unit configured to generate a first service invocation request for the target service at the second application system according to the request data;
the first sending unit is used for sending the first service calling request to the second application system;
and the first receiving unit is used for receiving a first request processing result fed back by the second application system in response to the first service call request.
21. The apparatus of claim 20, the determination module further comprising:
the acquisition unit is used for acquiring a second request processing result generated by the first application system in response to the target service call request; or,
a second generating unit, configured to generate a second service call request for the target service at the first application system according to the request data;
a second sending unit, configured to send the second service call request to the first application system;
and the second receiving unit is used for receiving a third request processing result fed back by the first application system in response to the second service calling request.
22. The apparatus of claim 21, the second application system having a first preset interface at the second application system for managing a plurality of services including the target service; a second preset interface for managing a plurality of services including the target service is arranged at the first application system;
the first generation unit specifically includes:
the first generation subunit is used for generating a first interface call request aiming at the first preset interface according to the request data; the first preset interface is used for responding to the first interface calling request, calling the target service at the second application system and generating the first request processing result;
The second generating unit specifically includes:
a second generating subunit, configured to generate a second interface call request for the second preset interface according to the request data; the second preset interface is used for responding to the second interface calling request, calling the target service at the first application system and generating the third request processing result.
23. The apparatus of claim 22, wherein a first application for providing the target service is provided at the second application system, and the first preset interface is an interface of the first application for managing a plurality of services including the target service provided by the first application; the first application system is provided with a second application for providing the target service, and the second preset interface is an interface of the second application for managing a plurality of services including the target service, provided by the second application;
the first generating unit further includes:
the first acquisition subunit is used for acquiring the calling authority aiming at the first preset interface;
the second generating unit further includes:
and the second acquisition subunit is used for acquiring the calling authority aiming at the second preset interface.
24. The apparatus of claim 21, the acquisition unit specifically comprises:
a third obtaining subunit, configured to obtain the second request processing result carried in the message; or,
and the fourth acquisition subunit is used for acquiring the second request processing result from the first application system according to the query identification information for the second request processing result carried in the message.
25. An application system configuration consistency detection device, comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
acquiring information for indicating consistency detection for configuration information related to a target service at each preset application system; the preset application system comprises a first application system and a second application system with data isolation; the message is generated after determining that a target service call request of a service requester for the target service at the first application system meets a preset detection trigger condition;
Responding to the message, and determining a request processing result of each preset application system for the target service call request;
and comparing the request processing results to obtain consistency detection results aiming at the configuration information related to the target service at each preset application system.
CN202310536830.5A 2023-05-10 2023-05-10 Method, device and equipment for detecting configuration consistency of application system Pending CN116594818A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310536830.5A CN116594818A (en) 2023-05-10 2023-05-10 Method, device and equipment for detecting configuration consistency of application system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310536830.5A CN116594818A (en) 2023-05-10 2023-05-10 Method, device and equipment for detecting configuration consistency of application system

Publications (1)

Publication Number Publication Date
CN116594818A true CN116594818A (en) 2023-08-15

Family

ID=87603915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310536830.5A Pending CN116594818A (en) 2023-05-10 2023-05-10 Method, device and equipment for detecting configuration consistency of application system

Country Status (1)

Country Link
CN (1) CN116594818A (en)

Similar Documents

Publication Publication Date Title
WO2021180025A1 (en) Message processing method and apparatus, electronic device and medium
CN110618869B (en) Resource management method, device and equipment
US10063644B1 (en) Managing operation of instances
CN109739627B (en) Task scheduling method, electronic device and medium
CN113704117B (en) Algorithm testing system, method and device
CN116305298B (en) Method and device for managing computing power resources, storage medium and electronic equipment
CN111324533A (en) A/B test method and device and electronic equipment
CN110515795A (en) A kind of monitoring method of big data component, device, electronic equipment
CN110380929B (en) Idempotent effectiveness detection method, device and equipment
CN116627333A (en) Log caching method and device, electronic equipment and computer readable storage medium
CN108647102B (en) Service request processing method and device of heterogeneous system and electronic equipment
CN112241362A (en) Test method, test device, server and storage medium
CN112559565A (en) Abnormity detection method, system and device
CN110245166B (en) Data checking method and device
CN109039695B (en) Service fault processing method, device and equipment
CN112491943A (en) Data request method, device, storage medium and electronic equipment
CN116594818A (en) Method, device and equipment for detecting configuration consistency of application system
CN106548331B (en) Method and device for determining release sequence
CN115114275A (en) Data acquisition method, device and medium
CN111967769B (en) Risk identification method, apparatus, device and medium
CN110908792B (en) Data processing method and device
CN112699129A (en) Data processing system, method and device
CN111796864A (en) Data verification method and device
CN111967767A (en) Business risk identification method, device, equipment and medium
CN113011165B (en) Method, device, equipment and medium for identifying blocked keywords

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