CN115134397A - Method, device and equipment for realizing self-adaptive transaction baffle platform - Google Patents
Method, device and equipment for realizing self-adaptive transaction baffle platform Download PDFInfo
- Publication number
- CN115134397A CN115134397A CN202210743286.7A CN202210743286A CN115134397A CN 115134397 A CN115134397 A CN 115134397A CN 202210743286 A CN202210743286 A CN 202210743286A CN 115134397 A CN115134397 A CN 115134397A
- Authority
- CN
- China
- Prior art keywords
- baffle
- platform
- interface
- mapping
- client
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000013507 mapping Methods 0.000 claims abstract description 92
- 238000004573 interface analysis Methods 0.000 claims abstract description 10
- 230000004888 barrier function Effects 0.000 claims description 32
- 230000003044 adaptive effect Effects 0.000 claims description 24
- 238000006243 chemical reaction Methods 0.000 claims description 2
- 238000011161 development Methods 0.000 abstract description 15
- 238000012360 testing method Methods 0.000 abstract description 13
- 238000004458 analytical method Methods 0.000 description 11
- 238000007726 management method Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 230000009471 action Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000001419 dependent effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5083—Techniques for rebalancing the load in a distributed system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- Finance (AREA)
- General Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- General Engineering & Computer Science (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- General Business, Economics & Management (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The application discloses a method, a device and equipment for realizing a self-adaptive transaction baffle platform, which can be applied to the distributed field and the financial field and can solve the problem that development and test progress is influenced due to mutual dependence of interface calls between application modules or systems. The method comprises the following steps: firstly, intercepting remote calling requests of different protocols through a client plug-in, calling interface related information after judging that a baffle platform is started to access by a client, and acquiring configuration information of the baffle platform; and when judging that the baffle platform has a configuration interface and the interface has an opening baffle, transmitting the remote call request to the baffle platform, receiving transaction messages sent on various channels corresponding to the remote call request through the baffle platform, converting the messages into internal key-value objects after loading preset interface analysis rules, performing matching mapping according to the preset baffle rules and the internal key-value objects, and returning the obtained matching mapping result to the client.
Description
Technical Field
The present application relates to the field of distributed technologies, and in particular, to a method, an apparatus, and a device for implementing an adaptive trading barrier platform.
Background
As the scale of computer systems becomes larger and larger, the architecture that collectively deploys all service units on one or several mainframes has become unable to meet the rapid development of current computer systems, especially large internet systems, and at this time, the distributed processing mode is more and more favored by the industry.
However, at present, when the problem of interdependence of interface calls between services is solved, two problems are usually faced: one is that in the development phase, it is often relied upon to develop a self mock to simulate the return of an external interface. When the mock data is required to be returned, the code is required to be adjusted continuously. Secondly, in the testing stage, a transaction baffle needs to be built by itself to simulate the return of an external system, but the built baffle is rough, different baffles may need to be built for the calling of different protocols, for the transaction of the same module, the baffle cannot be switched to the bottom or is in real connection according to the transaction level, the baffle can only be switched integrally or in real connection, and the flexibility is not high. Therefore, how to solve the problem that development and test progress is affected by mutual dependence of interface calls between application modules or systems, and improving the flexibility of the transaction baffle platform is a problem to be solved urgently at present.
Disclosure of Invention
The main purpose of the embodiments of the present application is to provide a method, an apparatus, and a device for implementing a self-adaptive transaction baffle platform, which can solve the problem that interface calls between application modules or systems are interdependent, thereby affecting development and test progress, and improve flexibility of the transaction baffle platform.
In a first aspect, an embodiment of the present application provides a method for implementing an adaptive trading barrier platform, where the method includes:
intercepting remote call requests of different protocols through a client plug-in;
after judging that the client starts the access of the baffle platform, calling interface related information and acquiring configuration information of the interface from the baffle platform; when the fact that the baffle plate platform is provided with the interface and the interface is provided with the opening baffle plate is judged, the remote calling request is forwarded to the corresponding baffle plate platform;
receiving transaction messages sent from various channels corresponding to the remote calling request through the baffle platform;
after each preset interface analysis rule is loaded, converting the message into an internal key value pair key-value object;
matching and mapping the key-value object according to a preset baffle rule and the internal key value to obtain a matching and mapping result;
and returning the matching mapping result to the client.
Optionally, the method further includes:
and when judging that the client does not start the baffle platform to access, directly calling and executing real service and returning an obtained result to the client.
Optionally, the method further includes:
and directly calling and executing real service when judging that the baffle platform is not configured with the interface and/or the interface does not open the baffle, and returning an obtained result to the client.
Optionally, the performing matching mapping on the key-value object according to the preset baffle rule and the internal key value to obtain a matching mapping result includes:
when the preset baffle rule is the fixed message mapping, directly returning the message configured in advance by the baffle platform as a matching mapping result;
or when the preset baffle rule is the template message mapping, filling the internal key-value object into a placeholder corresponding to the template message;
or when the preset baffle rule is rule message mapping, priority matching request messages are needed, and after the specific rule is met, template message mapping or fixed message mapping is selected for matching mapping to obtain a matching mapping result.
In a second aspect, an embodiment of the present application further provides an apparatus for implementing an adaptive trading barrier platform, where the apparatus includes:
the intercepting unit is used for intercepting remote calling requests of different protocols through the client plug-in;
the forwarding unit is used for calling the relevant information of the interface after judging that the client starts the access of the baffle platform, and acquiring the configuration information of the interface from the baffle platform; when the baffle platform is judged to be provided with the interface and the opening baffle is judged to be provided with the opening baffle, the remote calling request is forwarded to the corresponding baffle platform;
the receiving unit is used for receiving the transaction messages sent on various channels corresponding to the remote calling request through the baffle platform;
the conversion unit is used for converting the message into an internal key value pair key-value object after each preset interface analysis rule is loaded;
the matching unit is used for performing matching mapping on the key-value object according to a preset baffle rule and the internal key value to obtain a matching mapping result;
and the return unit is used for returning the matching mapping result to the client.
Optionally, the apparatus further comprises:
and the first calling unit is used for directly calling and executing real service when judging that the baffle platform is not started to be accessed by the client, and returning an obtained result to the client.
Optionally, the apparatus further comprises:
and the second calling unit is used for directly calling and executing real service when judging that the baffle platform is not configured with the interface and/or the interface does not open the baffle, and returning an obtained result to the client.
Optionally, the matching unit is specifically configured to:
when the preset baffle rule is the fixed message mapping, directly returning the message configured in advance by the baffle platform as a matching mapping result;
or when the preset baffle rule is the template message mapping, filling the internal key-value object into a placeholder corresponding to the template message;
or when the preset baffle rule is rule message mapping, priority matching request messages are required, and after the specific rule is met, template message mapping or fixed message mapping is selected for matching mapping to obtain a matching mapping result.
The embodiment of the present application further provides an implementation device for a self-adaptive transaction baffle platform, including: a processor, a memory, a system bus;
the processor and the memory are connected through the system bus;
the memory is configured to store one or more programs, the one or more programs including instructions, which when executed by the processor, cause the processor to perform any one of the implementations of the adaptive trading barrier platform implementation method described above.
An embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a terminal device, the terminal device is enabled to execute any implementation manner of the implementation method of the adaptive transaction baffle platform.
According to the method, the device and the equipment for realizing the self-adaptive transaction baffle platform, firstly, remote calling requests of different protocols are intercepted through a client plug-in, then, after the baffle platform access is started by a client, interface related information is called, and configuration information of the interface is obtained from the baffle platform; and when judging that the baffle platform has a configuration interface and the interface has an opening baffle, forwarding the remote calling request to the corresponding baffle platform, then receiving transaction messages sent on various channels corresponding to the remote calling request through the baffle platform, converting the messages into an internal key value pair key-value object after loading each preconfigured interface analysis rule, further carrying out matching mapping according to the preset baffle rule and the internal key-value object to obtain a matching mapping result, and returning the matching mapping result to the client. Therefore, the problem that development and test progress is influenced due to mutual dependence of interface calling between application modules or systems is solved, and the flexibility of the transaction baffle platform is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of an implementation method of an adaptive trading barrier platform according to an embodiment of the present application;
FIG. 2 is an overall flow diagram of an implementation of an adaptive trading barrier platform provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of the overall modular relationship of an adaptive trading barrier platform provided in an embodiment of the present application;
fig. 4 is a schematic composition diagram of an implementation apparatus of an adaptive trading barrier platform according to an embodiment of the present application.
Detailed Description
The current scheme adopted for the problem of interdependence of interface calls between services mainly has two categories according to different stages: self mock and independent baffle modules were developed. However, both of these methods have disadvantages:
1) self mock was developed. The purpose of logic coverage testing is achieved by writing mock codes during testing of the development self-propelled unit in the development stage, development workload is increased, and a mock mode is heavy and inflexible when different mock returns are needed in different scenes.
2) Self-grinding the baffle. The switching device is usually developed independently aiming at a certain protocol, lacks of unified overall planning, is not flexible enough, cannot perform independent baffle switching aiming at a certain transaction of a certain module or system, and only can perform integral switching. The lack of a uniform baffle return rule configuration supports limited protocols.
In order to solve the above-mentioned defects, an embodiment of the present application provides a method for implementing a self-adaptive transaction barrier platform, which includes intercepting a remote call request of different protocols through a client plug-in, then, after it is determined that a barrier platform access is enabled by a client, calling interface related information, and obtaining configuration information of the interface from the barrier platform; and when judging that the baffle platform has a configuration interface and the interface has an opening baffle, forwarding the remote calling request to the corresponding baffle platform, then receiving transaction messages sent on various channels corresponding to the remote calling request through the baffle platform, converting the messages into an internal key value pair key-value object after loading each preconfigured interface analysis rule, further carrying out matching mapping according to the preset baffle rule and the internal key-value object to obtain a matching mapping result, and returning the matching mapping result to the client. Therefore, the problem that development and test progress is influenced due to mutual dependence of interface calling between application modules or systems is solved, and the flexibility of the transaction baffle platform is improved.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
First embodiment
Referring to fig. 1, a flow chart of a method for implementing an adaptive trading barrier platform provided in this embodiment is schematically illustrated, where the method includes the following steps:
s101: and intercepting remote call requests of different protocols through the client plug-in.
In the embodiment, in order to solve the problem that the development and test progress is influenced by the mutual dependence of the interface call between the application modules or the systems and improve the flexibility of the trading baffle platform, the application strives to carry out unified configuration through the baffle platform when the dependence of the interface between the application modules or the systems is reduced. No matter http, socket, dubbo or mq messages exist, the trading baffle platform provided by the application can be seamlessly accessed, and the business code is not invaded only through simple configuration. Meanwhile, whether the single transaction passes through the baffle platform or not can be controlled in real time, and the baffle return rule can be flexibly configured on the platform.
Specifically, as shown in fig. 2, the remote invocation request of different protocols is intercepted first by the client plug-in, that is, the remote invocation request of different protocols (such as http/socket/dubbo/mq) can be intercepted by the client plug-in.
S102: after judging that the client starts the access of the baffle platform, calling the relevant information of the interface, and acquiring the configuration information of the interface from the baffle platform; and when judging that the baffle platform has the configuration interface and the interface has the opening baffle, forwarding the remote calling request to the corresponding baffle platform.
In this embodiment, after intercepting remote invocation requests of different protocols in step S101, it can be further determined whether the client itself has access to a baffle platform, and if not, the real service is directly invoked and executed, and the obtained result is returned to the client, as shown in fig. 2, the last step is directly skipped to invoke the real service and return to the client; otherwise, after the client is judged to start the access of the baffle platform, the relevant information of the interface can be called, and the configuration information of the interface is obtained from the baffle platform; and when judging that the baffle platform has the configuration interface and the interface has the opening baffle, forwarding the remote calling request to the corresponding baffle platform.
Specifically, the java reflection mechanism may be used to obtain the information related to the invocation interface, and obtain the configuration information of the interface from the barrier platform. And judging whether the baffle platform is configured with the interface or not or whether the interface is provided with an opening baffle or not, if the baffle platform is not configured with the interface and/or the interface is not provided with the opening baffle, directly calling and executing the real service, and returning the obtained result to the client, namely directly jumping to the last step to call the real service and return to the client as shown in figure 2, otherwise, forwarding the transaction to the baffle platform.
S103: and receiving transaction messages sent from various channels corresponding to the remote calling request through the baffle platform.
In this embodiment, after the remote invocation request is forwarded to the corresponding baffle platform in step S102, further transaction messages sent from various channels corresponding to the remote invocation request may be received through the baffle platform, and basic permission control type verification is performed, and then the message is analyzed to perform the subsequent step S104.
S104: and after loading the preset interface analysis rules, converting the message into an internal key value pair key-value object.
In this embodiment, after the transaction messages sent from various channels corresponding to the remote invocation request are received through the barrier platform in step S103, the messages may be further converted into an internal key-value pair key-value object after being loaded with the preset interface parsing rules, so as to execute the subsequent step S105.
S105: and carrying out matching mapping on the key-value object according to a preset baffle rule and an internal key value to obtain a matching mapping result.
In this embodiment, after the message is converted into the key-value pair key-value object through step S104, matching mapping may be further performed according to the preset baffle rule and the internal key-value pair key-value object, so as to obtain a matching mapping result, so as to execute subsequent step S106.
Specifically, an optional implementation manner is that when the preset baffle rule is a fixed message mapping, a message configured in advance by the baffle platform is directly returned as a matching mapping result; or when the preset baffle rule is the template message mapping, filling the internal key-value object into the placeholder corresponding to the template message (the platform provides a built-in default key-value); or when the preset baffle rule is rule message mapping, priority matching request messages are needed, and after the specific rule is met, template message mapping or fixed message mapping is selected for matching mapping to obtain a matching mapping result. Wherein, a plurality of matching rules and matching priorities can be supported and configured.
S106: and returning the matching mapping result to the client.
In this embodiment, after the matching mapping result is obtained in step S105, the matching mapping result may be further returned to the client.
Thus, when the steps S101 to S106 are executed, dynamic access to the application module can be realized through simple configuration, access to http, socket, dubbo, and mq requests can be flexibly supported, messages (fixed length, xml, json, and the like) in any format can also be supported, and baffle message return of different rules can be realized only through flexible configuration of the platform end, so that the cost of development, joint debugging, and testing is greatly reduced, and the development and testing efficiency is prompted.
It should be noted that, in order to facilitate understanding of the adaptive trading barrier platform provided in the embodiments of the present application, the present application also provides a schematic diagram of the overall module relationship of the adaptive trading barrier platform as shown in fig. 3. As shown in fig. 3, the trading barrier platform may specifically include: the system comprises a client plug-in module, an access management module, an access message analysis module and a baffle rule management module.
The client plug-in module is used as a core module of the baffle platform and is embedded into the access party for application in a jar-dependent mode, the access party only needs to be simply configured, and the client plug-in cannot invade an access party service code. And after intercepting different remote call requests (http/dubbo/socket/mq), the client plug-in transmits the transaction to the baffle platform according to the rule configured by the baffle platform.
The platform access module is responsible for request access of different protocols, including http requests, dubbo requests, socket requests and mq requests, wherein the mq message requests can be expanded, and whether rabbitmq, rocktmq or kafka, seamless access can be supported, and specific mq access rules can be configured in a platform portal management end.
The access message analysis module is internally provided with a plurality of message analyzers including a fixed-length message analyzer, an XML message analyzer, a JSON message analyzer and the like. The analyzer loads the analysis rule of each interface from the memory to realize differential analysis. If a newly-added interface or an interface is modified, the new interface or the interface is maintained at the portal end in real time, and the latest analysis rule can refresh the memory in real time. The core of the access message analysis module is to realize dynamic analysis of messages with different formats by loading analysis rules in real time, and the access message analysis module is not influenced by interface change and does not stop, and does not relate to program version updating.
The baffle rule mapping module needs to return baffle messages according to a preset baffle rule for each transaction, the platform mainly provides three rules of fixed message mapping, template message mapping and matching message mapping, the fixed message mapper is used for returning the fixed messages, the template message mapper is used for returning preset template messages (providing placeholders to obtain original message filling), the matching message mapper is the most flexible, the template message mapper can be regarded as a combined mode of the first two mappers, and different baffle messages can be dynamically returned by matching specific rules according to the content of a request message.
The Portal management terminal is a management terminal module and provides visual access management configuration, message analysis rule configuration, baffle rule configuration and the like.
Thus, a client end component provided by the transaction baffle platform shown in fig. 3 is embedded into an application of an access party in a jar-dependent manner, the client end intercepts remote calls of different protocols, a call platform interface queries whether the transaction is configured for opening a baffle after interception, if the transaction is opened, the transaction is forwarded to the baffle platform, and the baffle platform returns a preset response message according to an analysis message and a preset baffle return rule according to a preset baffle return rule. If the blind platform is not configured or not opened, the transaction is forwarded to the real service provider. Meanwhile, the platform management end can provide parameterized configurations including access party configuration, baffle return rule configuration and the like so as to achieve the purpose of flexible configuration.
In summary, in the implementation method of the adaptive trading barrier platform provided in this embodiment, the client plug-in is first used to intercept remote invocation requests of different protocols, and then, after it is determined that the client initiates access to the barrier platform, the relevant information of the interface is invoked, and the configuration information of the interface is obtained from the barrier platform; and when judging that the baffle platform has a configuration interface and the interface has an opening baffle, forwarding the remote calling request to the corresponding baffle platform, then receiving transaction messages sent on various channels corresponding to the remote calling request through the baffle platform, converting the messages into an internal key value pair key-value object after loading each preconfigured interface analysis rule, further carrying out matching mapping according to the preset baffle rule and the internal key-value object to obtain a matching mapping result, and returning the matching mapping result to the client. Therefore, the problem that development and test progress is influenced due to mutual dependence of interface calling between application modules or systems is solved, and the flexibility of the transaction baffle platform is improved.
Second embodiment
In this embodiment, a device for implementing an adaptive transaction baffle platform will be described, and for related contents, please refer to the above method embodiment.
Referring to fig. 4, a schematic composition diagram of an implementation apparatus for an adaptive trading barrier platform provided in this embodiment specifically includes:
an interception unit 401, configured to intercept remote invocation requests of different protocols through a client plug-in;
a forwarding unit 402, configured to call interface related information after determining that the client enables the barrier platform access, and obtain configuration information of the interface from the barrier platform; when the fact that the baffle plate platform is provided with the interface and the interface is provided with the opening baffle plate is judged, the remote calling request is forwarded to the corresponding baffle plate platform;
a receiving unit 403, configured to receive, through the baffle platform, transaction messages sent on various channels corresponding to the remote invocation request;
a converting unit 404, configured to convert the message into an internal key-value pair key-value object after loading each preconfigured interface parsing rule;
the matching unit 405 is configured to perform matching mapping on the key-value object according to a preset baffle rule and the internal key value to obtain a matching mapping result;
a returning unit 406, configured to return the matching mapping result to the client.
In an implementation manner of this embodiment, the apparatus further includes:
and the first calling unit is used for directly calling and executing real service when judging that the baffle platform is not started to be accessed by the client, and returning an obtained result to the client.
In an implementation manner of this embodiment, the apparatus further includes:
and the second calling unit is used for directly calling and executing real service when judging that the baffle platform is not configured with the interface and/or the baffle is not opened by the interface, and returning an obtained result to the client.
In an implementation manner of this embodiment, the matching unit 405 is specifically configured to:
when the preset baffle rule is the fixed message mapping, directly returning the message configured in advance by the baffle platform as a matching mapping result;
or when the preset baffle rule is the template message mapping, filling the internal key-value object into a placeholder corresponding to the template message;
or when the preset baffle rule is rule message mapping, priority matching request messages are required, and after the specific rule is met, template message mapping or fixed message mapping is selected for matching mapping to obtain a matching mapping result.
In summary, according to the device for implementing the adaptive trading barrier platform provided by this embodiment, first, a remote call request of different protocols is intercepted by a client plug-in, then, after it is determined that the client initiates barrier platform access, interface related information is called, and configuration information of the interface is obtained from the barrier platform; and when judging that the baffle platform has a configuration interface and the interface has an opening baffle, forwarding the remote calling request to the corresponding baffle platform, then receiving transaction messages sent on various channels corresponding to the remote calling request through the baffle platform, converting the messages into an internal key value pair key-value object after loading each preconfigured interface analysis rule, further carrying out matching mapping according to the preset baffle rule and the internal key-value object to obtain a matching mapping result, and returning the matching mapping result to the client. Therefore, the problem that development and test progress is influenced due to mutual dependence of interface calling between application modules or systems is solved, and the flexibility of the transaction baffle platform is improved.
Further, an embodiment of the present application further provides an implementation apparatus for an adaptive trading barrier platform, including: a processor, a memory, a system bus;
the processor and the memory are connected through the system bus;
the memory is for storing one or more programs, the one or more programs including instructions, which when executed by the processor, cause the processor to perform any of the implementations of the adaptive trading barrier platform described above.
Further, an embodiment of the present application also provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a terminal device, the instructions cause the terminal device to execute any one of the implementation methods of the adaptive transaction baffle platform.
As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that all or part of the steps in the above embodiment methods can be implemented by software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network communication device such as a media gateway, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.
It should be noted that, in the present specification, each embodiment is described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
In addition, it should be noted that the implementation method, device and equipment of the adaptive transaction baffle platform provided by the invention can be used in the distributed field and the financial field. The above description is only an example, and does not limit the application fields of the method, the apparatus, and the device for implementing the adaptive trading barrier platform provided by the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A method of implementing an adaptive trading barrier platform, the method comprising:
intercepting remote call requests of different protocols through a client plug-in;
after judging that the client starts the access of the baffle platform, calling the relevant information of the interface, and acquiring the configuration information of the interface from the baffle platform; when the fact that the baffle plate platform is provided with the interface and the interface is provided with the opening baffle plate is judged, the remote calling request is forwarded to the corresponding baffle plate platform;
receiving transaction messages sent from various channels corresponding to the remote calling request through the baffle platform;
after each preset interface analysis rule is loaded, converting the message into an internal key value pair key-value object;
matching and mapping the key-value object according to a preset baffle rule and the internal key value to obtain a matching and mapping result;
and returning the matching mapping result to the client.
2. The method of claim 1, further comprising:
and when the client is judged not to start the baffle platform for access, directly calling and executing real service, and returning the obtained result to the client.
3. The method of claim 1, further comprising:
and directly calling and executing real service when judging that the baffle platform is not configured with the interface and/or the interface does not open the baffle, and returning an obtained result to the client.
4. The method according to any one of claims 1 to 3, wherein the performing matching mapping on the key-value object according to the preset baffle rule and the internal key value to obtain a matching mapping result comprises:
when the preset baffle rule is the fixed message mapping, directly returning the message configured in advance by the baffle platform as a matching mapping result;
or when the preset baffle rule is the template message mapping, filling the internal key-value object into a placeholder corresponding to the template message;
or when the preset baffle rule is rule message mapping, priority matching request messages are needed, and after the specific rule is met, template message mapping or fixed message mapping is selected for matching mapping to obtain a matching mapping result.
5. An apparatus for implementing an adaptive trading barrier platform, the apparatus comprising:
the intercepting unit is used for intercepting remote calling requests of different protocols through the client plug-in;
the forwarding unit is used for calling the relevant information of the interface after judging that the client starts the baffle platform access, and acquiring the configuration information of the interface from the baffle platform; when the baffle platform is judged to be provided with the interface and the opening baffle is judged to be provided with the opening baffle, the remote calling request is forwarded to the corresponding baffle platform;
the receiving unit is used for receiving the transaction messages sent on various channels corresponding to the remote calling request through the baffle platform;
the conversion unit is used for converting the message into an internal key value pair key-value object after each preset interface analysis rule is loaded;
the matching unit is used for performing matching mapping on the key-value object according to a preset baffle rule and the internal key value to obtain a matching mapping result;
and the return unit is used for returning the matching mapping result to the client.
6. The apparatus of claim 5, further comprising:
and the first calling unit is used for directly calling and executing real service when judging that the baffle platform is not started to be accessed by the client, and returning an obtained result to the client.
7. The apparatus of claim 5, further comprising:
and the second calling unit is used for directly calling and executing real service when judging that the baffle platform is not configured with the interface and/or the interface does not open the baffle, and returning an obtained result to the client.
8. The apparatus according to any one of claims 5 to 7, wherein the matching unit is specifically configured to:
when the preset baffle rule is the fixed message mapping, directly returning the message configured in advance by the baffle platform as a matching mapping result;
or when the preset baffle rule is the template message mapping, filling the internal key-value object into a placeholder corresponding to the template message;
or when the preset baffle rule is rule message mapping, priority matching request messages are required, and after the specific rule is met, template message mapping or fixed message mapping is selected for matching mapping to obtain a matching mapping result.
9. An apparatus for implementing an adaptive trading barrier platform, comprising: a processor, a memory, a system bus;
the processor and the memory are connected through the system bus;
the memory is to store one or more programs, the one or more programs comprising instructions, which when executed by the processor, cause the processor to perform the method of any of claims 1-4.
10. A computer-readable storage medium having stored therein instructions that, when executed on a terminal device, cause the terminal device to perform the method of any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210743286.7A CN115134397A (en) | 2022-06-28 | 2022-06-28 | Method, device and equipment for realizing self-adaptive transaction baffle platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210743286.7A CN115134397A (en) | 2022-06-28 | 2022-06-28 | Method, device and equipment for realizing self-adaptive transaction baffle platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115134397A true CN115134397A (en) | 2022-09-30 |
Family
ID=83379427
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210743286.7A Pending CN115134397A (en) | 2022-06-28 | 2022-06-28 | Method, device and equipment for realizing self-adaptive transaction baffle platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115134397A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110362472A (en) * | 2019-05-31 | 2019-10-22 | 口碑(上海)信息技术有限公司 | MOCK test method, device and equipment |
CN111695328A (en) * | 2020-06-16 | 2020-09-22 | 深圳前海微众银行股份有限公司 | Method, device, equipment and storage medium for generating simulation test message |
CN111737140A (en) * | 2020-06-28 | 2020-10-02 | 深圳前海微众银行股份有限公司 | Interface automation test method, device, equipment and computer readable storage medium |
CN113238886A (en) * | 2021-05-12 | 2021-08-10 | 深圳前海微众银行股份有限公司 | Method and system for testing functional service and terminal equipment |
-
2022
- 2022-06-28 CN CN202210743286.7A patent/CN115134397A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110362472A (en) * | 2019-05-31 | 2019-10-22 | 口碑(上海)信息技术有限公司 | MOCK test method, device and equipment |
CN111695328A (en) * | 2020-06-16 | 2020-09-22 | 深圳前海微众银行股份有限公司 | Method, device, equipment and storage medium for generating simulation test message |
CN111737140A (en) * | 2020-06-28 | 2020-10-02 | 深圳前海微众银行股份有限公司 | Interface automation test method, device, equipment and computer readable storage medium |
CN113238886A (en) * | 2021-05-12 | 2021-08-10 | 深圳前海微众银行股份有限公司 | Method and system for testing functional service and terminal equipment |
Non-Patent Citations (1)
Title |
---|
刘雄文;: "多区块链交易分发和事件处理的***方案", 计算机科学, no. 2, 15 November 2018 (2018-11-15) * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8219970B2 (en) | XML push and remote execution of a wireless applications | |
US8103713B2 (en) | System and method for managing service interactions | |
US7571208B2 (en) | Creating proxies from service description metadata at runtime | |
CN112311786B (en) | Service request processing method and device, storage medium and computing equipment | |
CN107135188B (en) | Method, device and system for realizing services of financial information exchange (FIX) protocol | |
US11561997B2 (en) | Methods, systems, and computer readable media for data translation using a representational state transfer (REST) application programming interface (API) | |
CN112288577B (en) | Transaction processing method, device, electronic equipment and medium for distributed service | |
US8627201B2 (en) | Method for generating simple object access protocol messages and process engine | |
US11294740B2 (en) | Event to serverless function workflow instance mapping mechanism | |
US11665247B2 (en) | Resource discovery agent computing device, software application, and method | |
CN114285793A (en) | Distribution method, distribution device, distribution equipment and storage medium | |
US20090037807A1 (en) | Coordinated xml data parsing and processing from within separate computing processes | |
US9176719B2 (en) | Resolving prerequisites for a client device in an open service gateway initiative (OSGI) framework | |
US7289989B2 (en) | Pattern based web services | |
CN113468272A (en) | Message forwarding method and device | |
CN113179269A (en) | Internet of things-based protocol data analysis method, system, medium, and program product | |
CN113127335B (en) | System testing method and device | |
JP4617309B2 (en) | Web service contract selection system | |
US9323509B2 (en) | Method and system for automated process distribution | |
CN115134397A (en) | Method, device and equipment for realizing self-adaptive transaction baffle platform | |
CN114675821A (en) | Service standardization system and method based on low codes | |
CN108228359B (en) | Method and system for integrating web program and R program to process data | |
CN114866628A (en) | Message processing method, device, equipment and storage medium | |
CN112905273A (en) | Service calling method and device | |
CN113505036B (en) | Application monitoring method, client and server |
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 |