CN117640732A - Bank application communication method and device and electronic equipment - Google Patents

Bank application communication method and device and electronic equipment Download PDF

Info

Publication number
CN117640732A
CN117640732A CN202311640769.5A CN202311640769A CN117640732A CN 117640732 A CN117640732 A CN 117640732A CN 202311640769 A CN202311640769 A CN 202311640769A CN 117640732 A CN117640732 A CN 117640732A
Authority
CN
China
Prior art keywords
bank
application
bank application
preset
connection
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
CN202311640769.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.)
Tianyi Electronic Commerce Co Ltd
Original Assignee
Tianyi Electronic Commerce 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 Tianyi Electronic Commerce Co Ltd filed Critical Tianyi Electronic Commerce Co Ltd
Priority to CN202311640769.5A priority Critical patent/CN117640732A/en
Publication of CN117640732A publication Critical patent/CN117640732A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses a bank application communication method, a bank application communication device and electronic equipment. Wherein the method comprises the following steps: receiving a bank application communication request; in response to a bank application communication request, determining bank application channel coding information corresponding to a preset bank application identifier; determining a target connection channel for establishing connection with a preset bank application according to the bank application channel coding information, wherein the preset bank application is a bank application marked by a preset bank application identifier; determining a target port number and a target IP address corresponding to a predetermined service identifier in a target connection channel; based on the target connection channel, the target port number and the target IP address, a connection with a predetermined banking application is established to communicate with the predetermined banking application through the connection, and a predetermined service corresponding to the predetermined service identification is invoked. The invention solves the technical problem of low communication efficiency when communicating with the bank application in the related technology.

Description

Bank application communication method and device and electronic equipment
Technical Field
The present invention relates to the field of data processing, and in particular, to a bank application communication method, a device and an electronic device.
Background
With the development of internet service, in the financial service system of a traditional bank or an operator, different banking channels are required to be continuously accessed as channel capability providers to provide capability for corresponding product layers.
The traditional bank gateway is accessed, different bank channels can be accessed in the bank gateway module, the bank gateway module and the bank channels are all operated on the same machine, and faults of the bank channels can be mutually influenced. Along with continuous access of the banking channels, if the traditional policy mode is adopted, codes become more and more bulky, one interface may correspond to more than ten banking channels in the same project, and the resource allocation is also very problematic, so that the problem of low communication efficiency exists when the communication is performed with the banking application.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a bank application communication method, a bank application communication device and electronic equipment, which are used for at least solving the technical problem of low communication efficiency when communicating with a bank application in the related technology.
According to an aspect of an embodiment of the present invention, there is provided a banking application communication method including: receiving a bank application communication request, wherein the bank application communication request carries a preset bank application identifier and a preset service identifier; determining bank application channel coding information corresponding to the preset bank application identification in response to the bank application communication request; determining a target connection channel for establishing connection with a preset bank application according to the bank application channel coding information, wherein the preset bank application is a bank application marked by the preset bank application identifier; determining a target port number and a target IP address corresponding to the predetermined service identifier in the target connection channel; based on the target connection channel, the target port number and the target IP address, a connection with the predetermined banking application is established to communicate with the predetermined banking application through the connection, and a predetermined service corresponding to the predetermined service identifier is invoked.
Optionally, before receiving the bank application communication request, the method further includes: determining a plurality of banking applications of the pre-constructed connection channel; determining services corresponding to the plurality of bank applications respectively, and port numbers and IP addresses corresponding to the services respectively; constructing a plurality of connection channels according to the services respectively corresponding to the plurality of bank applications and the port numbers and the IP addresses respectively corresponding to the services, wherein the plurality of connection channels respectively comprise the port numbers and the IP addresses corresponding to the corresponding services; and determining the corresponding relation among the plurality of connecting channels, the corresponding bank application identifiers and the corresponding bank application channel coding information.
Optionally, the constructing a plurality of connection channels according to the services respectively corresponding to the plurality of banking applications and the port numbers and the IP addresses respectively corresponding to the services includes: constructing virtualized service applications corresponding to the plurality of bank applications according to the services corresponding to the plurality of bank applications respectively; respectively constructing port numbers and IP addresses corresponding to the services respectively on a plurality of virtualized service applications; and constructing the plurality of connection channels according to the services respectively corresponding to the plurality of virtualized service applications and the port numbers and the IP addresses respectively corresponding to the services.
Optionally, the constructing a virtualized service application corresponding to the plurality of banking applications according to the services corresponding to the plurality of banking applications respectively includes: determining a virtualized service application construction condition corresponding to each of the plurality of bank applications; and under the condition that the construction conditions of the virtualized service applications corresponding to the bank applications are constructed through a preset protocol, constructing the virtualized service applications corresponding to the bank applications on the basis of the preset protocol according to the services corresponding to the bank applications.
Optionally, the determining, according to the bank application channel coding information, a target connection channel for establishing connection with a predetermined bank application includes: storing the corresponding relation into a routing table; and determining the target connection channel corresponding to the bank application channel coding information according to the routing table.
Optionally, the determining, according to the bank application channel coding information, a target connection channel for establishing connection with a predetermined bank application includes: and determining a target connection channel for establishing connection with a preset bank application from a system memory according to the bank application channel coding information.
Optionally, after determining the bank application channel coding information corresponding to the predetermined bank application identifier in response to the bank application communication request, the method further includes: determining whether a query result of the bank application channel coding information is queried in a preset coding library; and returning abnormal information to a preset terminal under the condition that the inquiry result is that the bank application channel coding information cannot be inquired in the preset coding library, wherein the abnormal information is used for indicating that communication connection cannot be established with the bank application marked by the preset bank application identifier.
According to an aspect of an embodiment of the present invention, there is provided a banking application communication apparatus including: the receiving module is used for receiving a bank application communication request, wherein the bank application communication request carries a preset bank application identifier and a preset service identifier; the first determining module is used for responding to the bank application communication request and determining bank application channel coding information corresponding to the preset bank application identification; the second determining module is used for determining a target connection channel for establishing connection with a preset bank application according to the bank application channel coding information, wherein the preset bank application is a bank application marked by the preset bank application identifier; a third determining module, configured to determine, in the target connection channel, a target port number and a target IP address corresponding to the predetermined service identifier; the establishing module is used for establishing connection with the preset bank application based on the target connection channel, the target port number and the target IP address so as to communicate with the preset bank application through the connection and call the preset service corresponding to the preset service identifier.
According to an aspect of an embodiment of the present invention, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the banking application communication method of any one of the preceding claims.
According to an aspect of an embodiment of the present invention, there is provided a computer-readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the banking application communication method of any one of the above.
In the embodiment of the invention, a bank application communication request carrying a preset bank application identifier and a preset service identifier is received, and further, the bank application channel coding information corresponding to the preset bank application identifier is determined in response to the bank application communication request, so that a target connection channel for establishing connection with the preset bank application is determined according to the bank application channel coding information. And determining a target port number and a target IP address corresponding to the predetermined service identifier in the target connection channel, so as to achieve the purpose of establishing connection with the predetermined bank application based on the target connection channel, the target port number and the target IP address, so as to communicate with the predetermined bank application through the connection, and calling the predetermined service corresponding to the predetermined service identifier. Because different bank applications adopt different connecting channels, corresponding port numbers and IP addresses are set in the connecting channels according to different services, the problem of low transmission efficiency caused by communication blockage is effectively avoided, and the technical problem of low communication efficiency when the bank applications communicate in the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a flow chart of a bank application communication method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of device interactions in a banking application communication method provided by an alternative embodiment of the present invention;
fig. 3 is a block diagram of a banking application communication apparatus according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, partial terms or terminology appearing in describing embodiments of the present application are applicable to the following explanation:
ACCGW: access Control Gateway, access control gateway, is responsible for managing and controlling network access.
Route: refers to routing, i.e., the path of network packet transmissions. It consists of a series of routing nodes, each node having a unique IP address for identifying the location of the node and for communicating with other nodes.
SVC (Service Virtualization): a service refers to a virtualized service, which is a technology of integrating a plurality of service functions into one service framework to realize sharing, reuse, and management of the service. The SVC service may simulate the behavior of an actual service, generating a virtual service instance to support testing, development, verification, and the like.
JSVC: the Java service wrapper, which is part of the Apache Commons Daemon item, allows Java applications to run in the background as daemons (daemons). It provides a way to manage Java applications, allowing them to run at the operating system level in the form of services or background processes. This ensures that Java applications run in the background in a reliable manner, for example as servers or other long-running tasks.
Forwarding: forwarding mechanisms, in computer networks, generally refer to the process of passing a data packet or request from one device or service to another. In routers or switches, forwarding of data packets refers to the process of forwarding them from one interface to another.
A bank client: the connection mode of the bank client generally refers to a communication mode between the client application program and the bank server. This may involve using a particular protocol (e.g., HTTP, HTTPS, FTP, SMTP, etc.) to communicate with a server of the bank to perform banking operations such as querying account information, transferring accounts, payments, etc.
Example 1
In accordance with an embodiment of the present invention, there is provided an embodiment of a bank application communication method, it being noted that the steps shown in the flowchart of the figures may be performed in a computer system such as a set of computer executable instructions, and, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order other than that shown or described herein.
Fig. 1 is a flowchart of a bank application communication method according to an embodiment of the present invention, as shown in fig. 1, including the steps of:
Step S102, receiving a bank application communication request, wherein the bank application communication request carries a preset bank application identifier and a preset service identifier;
in the providing step S102, a banking application communication request is received, where the banking application communication request is a request for establishing communication with a banking application, for example, may be a payment request of a transaction, etc., which is not limited herein, and may be set up in a customized manner according to an actual application and a scenario.
Wherein the predetermined banking application identification is used to identify the banking application, e.g. to identify that a banking application is to be communicated with, or to communicate with, B banking application, etc.
The predetermined service identifier can identify what service is to be invoked during communication, for example, in a transaction scenario, the predetermined service identifier can be a payment service.
Step S104, in response to the bank application communication request, the bank application channel coding information corresponding to the preset bank application identification is determined;
in the providing step S104, in response to the bank application communication request, the bank application channel coding information corresponding to the predetermined bank application identifier is determined. Because in the method provided by the application, different channels are established for different banking applications, the banking channel coding information corresponding to the predetermined banking application identifier can be determined first, that is, it is determined with which channel indicated by the coding information to establish connection, so as to ensure smooth execution of communication service.
Step S106, determining a target connection channel for establishing connection with a preset bank application according to the bank application channel coding information, wherein the preset bank application is a bank application marked by a preset bank application identifier;
in the providing step S106, a target connection channel for establishing connection with a predetermined bank application is determined according to the bank application channel coding information, so as to establish connection. It should be noted that the destination connection channel includes a plurality of port numbers and IP addresses, and each IP address is a unique identifier for a device on the network. And the port number is used to identify a different service or application running on the device. When a packet carried in a request arrives at a destination, the operating system determines which application or service to pass the packet to based on the port number. When the port numbers are different from the IP addresses, different machines are corresponding to the different machines, and the different machines are used for executing different services to realize different functions.
Step S108, determining a target port number and a target IP address corresponding to a predetermined service identifier in a target connection channel;
in the present application, in the providing step S108, the destination port number and the destination IP address corresponding to the predetermined service identifier in the destination connection channel are determined to connect to the correct machine, so as to ensure normal communication and normal use of the predetermined service.
Here, the destination port number and destination IP address corresponding to the predetermined service identifier may be understood as a destination port number and destination IP address corresponding to the predetermined service, and the predetermined service may be realized by the destination port number and destination IP address.
Step S110, based on the target connection channel, the target port number and the target IP address, a connection with the predetermined bank application is established to communicate with the predetermined bank application through the connection, and a predetermined service corresponding to the predetermined service identification is invoked.
In the providing step S110 of the present application, a connection with a predetermined banking application is established based on the target connection channel, the target port number and the target IP address, so as to achieve the purpose of communicating with the predetermined banking application through the connection and calling a predetermined service corresponding to the predetermined service identifier. After the connection is established, data transmission can be performed, and operations corresponding to predetermined services, such as banking operations including inquiring balance, transferring accounts, paying and the like, are performed.
It should be noted that, through the destination connection channel, the port number and the IP address, communication with the bank application program may be realized, and data transmission and interaction may be performed. The bank application program can also perform user authentication and authorization through specific connection channels, ports and IP addresses, so as to ensure the legality and security of the connection.
Through the steps S102-S110, a banking application communication request carrying a predetermined banking application identifier and a predetermined service identifier is received, and further, in response to the banking application communication request, the banking application channel coding information corresponding to the predetermined banking application identifier is determined, so that a target connection channel for establishing connection with the predetermined banking application is determined according to the banking application channel coding information. And determining a target port number and a target IP address corresponding to the predetermined service identifier in the target connection channel, so as to achieve the purpose of establishing connection with the predetermined bank application based on the target connection channel, the target port number and the target IP address, so as to communicate with the predetermined bank application through the connection, and calling the predetermined service corresponding to the predetermined service identifier. Because different bank applications adopt different connecting channels, corresponding port numbers and IP addresses are set in the connecting channels according to different services, the problem of low transmission efficiency caused by communication blockage is effectively avoided, and the technical problem of low communication efficiency when the bank applications communicate in the related technology is solved.
As an alternative embodiment, before receiving the bank application communication request, the method further includes: determining a plurality of banking applications of the pre-constructed connection channel; determining services corresponding to a plurality of bank applications respectively, and port numbers and IP addresses corresponding to the services respectively; constructing a plurality of connection channels according to the services respectively corresponding to the plurality of bank applications and the port numbers and the IP addresses respectively corresponding to the services, wherein the plurality of connection channels respectively comprise the port numbers and the IP addresses corresponding to the corresponding services; and determining a plurality of connection channels, corresponding bank application identifiers and corresponding bank application channel coding information.
In this embodiment, a plurality of banking applications are involved, that is, a plurality of banking applications that establish a connection with the system, and different banking applications are applications developed by different banks. Because the services provided on different banking applications may be different, and the implementation logic may be different, the requestor, the business party, the requirements, etc. may all be different, and thus the corresponding services on each banking application are determined separately.
In this embodiment, the port number and the IP address corresponding to the service respectively corresponding thereto are also determined. Determining a port number and an IP address corresponding to implementing a service on an application refers to determining a port number and an IP address used by a specific function or service in network communication. Each network service or function communicates using a particular Port number (Port) and IP address (Internet Protocol Address). The IP address is a unique address that identifies the device on the network, and the port number is used to identify a specific service or application on the device. By determining the port number and the IP address corresponding to a function implemented on the application, it is ensured that the data packet on the network can be accurately transmitted to the specified service or function on the target device. For example, web servers typically use 80 ports, while mail servers use 25 or 587 ports. By determining these ports and IP addresses, it can be ensured that data on the network can accurately reach the target service or function, thereby achieving the desired communication and function. After the information is known, the connecting channels corresponding to the bank applications can be constructed, so that the effect of calling the corresponding services of the bank applications through different connecting channels is achieved. And moreover, the service call requests are distributed uniformly through a plurality of channels, so that overload of a single channel is avoided, and the stability and performance of the system are improved. Different networks or communication modes can be selected through different channels to realize service call, so that different scenes and requirements are met, and flexibility and adaptability are improved.
As an optional embodiment, constructing a plurality of connection channels according to services respectively corresponding to a plurality of banking applications and port numbers and IP addresses respectively corresponding to the services includes: according to the services respectively corresponding to the plurality of banking applications, constructing virtualized service applications respectively corresponding to the plurality of banking applications; respectively constructing a port number and an IP address corresponding to the service respectively on a plurality of virtualized service applications; and constructing a plurality of connection channels according to the services respectively corresponding to the plurality of virtualized service applications and the port numbers and the IP addresses respectively corresponding to the services.
In this embodiment, the steps of building a virtualized service application are described. By constructing the virtualized service application corresponding to the plurality of bank applications respectively, the communication between the system and the plurality of bank applications is realized. After the virtualized service application is built, the actual application and the virtually built application can be connected through a virtual network or a virtualization technology. Such connections may be made through virtual networks, virtual machines, containers, etc. techniques. Virtualization technology enables applications to run in a virtual environment without directly relying on physical hardware. Therefore, the virtualized service application can be connected with the virtually constructed application to realize communication and data transmission. The method can help to rapidly deploy and test the application program, and simultaneously reduce the requirement on physical resources. That is, after the virtualized service application is built, the virtual service application may be connected to the virtually built application without being connected to the actual application, and communication and interaction between application programs may be realized through a virtual network or a virtualization technology. Therefore, the cost can be saved by constructing the virtualized service application, the virtualized technology can run a plurality of virtual instances on the same physical server or a plurality of physical servers, the resources of the physical servers can be better utilized, the resource utilization rate is improved, and the resource waste is reduced. And the virtualized application can be rapidly deployed and migrated, is convenient for expansion and management, and flexibly responds to the change of service requirements. And the virtualized application can isolate different application programs, so that the interference among the application programs is reduced, and the stability and the safety of the system are improved. The virtualized application can be deployed and recovered rapidly, and the availability and fault recovery capability of the system are improved. The virtualization technology can simplify the management of application programs and resources, improve the management efficiency and reduce the management cost. It is known that constructing a virtualized service application can achieve the beneficial effects described above.
As an optional embodiment, constructing virtualized service applications corresponding to a plurality of banking applications according to services corresponding to the plurality of banking applications, respectively, includes: determining a virtualized service application construction condition corresponding to each of a plurality of bank applications; under the condition that the respective corresponding virtualized service application construction conditions are constructed through a preset protocol, the respective corresponding virtualized service applications are constructed on the basis of the preset protocol according to the respective corresponding services of the plurality of bank applications.
In this embodiment, the conditions for virtualized service application construction are considered. Because some banking applications do not allow for the direct construction of virtualized applications, conditions may be required, such as allowing construction under some predetermined protocols. Since protocols are a very important part of building virtualized applications, they define rules and standards for communication and interaction between different components in a virtualized environment. For example, a Virtual Machine (VM) or container in a virtualized environment may need to communicate using a network protocol (e.g., TCP/IP) or interact with a virtualized platform through a management protocol (e.g., an API). Furthermore, the virtualization technology itself may also require specific protocols to manage virtual machines, containers, virtual networks, etc. Thus, considering the protocol and other factors is an important loop to ensure that the virtualized application is built successfully, which helps ensure that the various components in the virtualized environment can communicate and cooperate efficiently. In this case, the virtualized service applications corresponding to the plurality of banking applications may be constructed on the basis of a predetermined protocol in accordance with the services corresponding to the plurality of banking applications, respectively, so as to successfully construct the virtualized service applications corresponding to the plurality of banking applications, respectively.
As an alternative embodiment, determining a target connection channel for establishing a connection with a predetermined banking application according to the banking application channel coding information, includes: storing the corresponding relation into a routing table; and determining a target connection channel corresponding to the bank application channel coding information according to the routing table.
In this embodiment, when the data needs to be forwarded by routing, the corresponding relationship is stored in the routing table, so that the target connection channel corresponding to the bank application channel coding information is directly determined according to the routing table. The router can improve the routing efficiency, store the corresponding relation between the connecting channel and the codes, help the router to determine the transmission path of the data packet more quickly, reduce the transmission delay, and enable the router to match and forward more quickly, thereby improving the routing efficiency.
As an alternative embodiment, determining a target connection channel for establishing a connection with a predetermined banking application according to the banking application channel coding information, includes: and determining a target connection channel for establishing connection with the preset bank application from the system memory according to the bank application channel coding information.
In this embodiment, it is defined that it determines the target connection channel from the memory, i.e. determines the target connection channel from the system memory for establishing a connection with the predetermined bank application, based on the bank application channel encoding information. The connection channel is generally determined in a database, as compared with the related art. The search in memory is typically faster than in the database. This is because the memory is accessed much faster than the disk (on which the database is typically stored).
As an optional embodiment, after determining the bank application channel coding information corresponding to the predetermined bank application identifier in response to the bank application communication request, the method further includes: determining whether a query result of the bank application channel coding information is queried in a preset coding library; and returning abnormal information to the preset terminal under the condition that the inquiry result is that the bank application channel coding information cannot be inquired in the preset coding library, wherein the abnormal information is used for indicating that communication connection cannot be established with the bank application marked by the preset bank application identifier.
In this embodiment, the currently registered channel routing information is first queried based on the bank application channel encoding information. When the corresponding bank application channel coding information cannot be found in the memory, abnormal information is directly returned to the calling party, and the fact that the connection channel is not registered is indicated. When the corresponding bank application channel coding information is inquired, the corresponding connection channel is inquired according to the interface name in the request parameter. And finally, the corresponding port number and IP address are found.
Based on the foregoing embodiments and optional embodiments, an optional implementation is provided, and is specifically described below.
In the related art, with the development of internet services, in a conventional banking or operator's financial service system, different banking channels are required to be continuously accessed as channel capability providers to provide capabilities for corresponding product layers.
The traditional bank gateway is accessed, different bank channels can be accessed in the bank gateway module, the bank gateway module and the bank channels are all operated on the same machine, and faults of the bank channels can be mutually influenced. Along with continuous access of the banking channels, if the traditional policy mode is adopted, codes become more and more bulky, one interface may correspond to more than ten banking channels in the same project, and the resource allocation is also very problematic, so that the problem of low communication efficiency exists when the communication is performed with the banking application.
In view of this, an alternative embodiment of the present invention provides a banking application communication method, and fig. 2 is a schematic diagram of device interaction in the banking application communication method provided in the alternative embodiment of the present invention, as shown in fig. 2, and the following describes in detail an alternative embodiment of the present invention.
S1, determining a plurality of bank applications of a pre-constructed connection channel;
s2, determining services respectively corresponding to a plurality of banking applications;
S3, constructing virtualized service applications corresponding to the plurality of bank applications according to the services corresponding to the plurality of bank applications respectively;
s4, respectively constructing a port number and an IP address corresponding to the service respectively on the plurality of virtualized service applications;
s5, constructing a plurality of connection channels according to the services respectively corresponding to the plurality of virtualized service applications and the port numbers and the IP addresses respectively corresponding to the services, wherein the plurality of connection channels respectively comprise the port numbers and the IP addresses corresponding to the corresponding services;
s6, determining a plurality of connection channels, corresponding bank application identifiers and corresponding bank application channel coding information;
as can be seen from the above S1-S6, the corresponding implementation of each bank channel is implemented by a different SVC. After the bank channel coding information corresponding to the virtualized service application is determined, the routing information registered with the routing service of the payment gateway comprises the IP, the port and the routing code of the service and the provided service interface, namely, a plurality of connection channels, corresponding bank application identifiers and corresponding relations among the corresponding bank application channel coding information are determined so as to realize the channel registration of the bank application.
The routing code (same as the above-mentioned bank application channel coding information) is a specific routing code of each bank channel, and the service interface is the capability provided by each bank channel, which is uniformly packaged by the payment gateway, for example, the collecting interface is PGW1201, the paying interface is PGW1202, and other query interfaces are also involved.
It should be noted that the registered information is uniformly placed in the memory of the Linux application server. The different SVC applications of each channel achieve the purpose of isolation between the channels.
S7, receiving a bank application communication request, wherein the bank application communication request carries a preset bank application identifier and a preset service identifier;
s8, responding to the bank application communication request, determining bank application channel coding information corresponding to the preset bank application identification, and if not, returning abnormal information to the preset terminal;
s9, determining a target connection channel for establishing connection with a preset bank application according to the bank application channel coding information, wherein the preset bank application is a bank application marked by a preset bank application identifier;
s10, determining a target port number and a target IP address corresponding to a preset service identifier in a target connection channel;
S11, based on the target connection channel, the target port number and the target IP address, connection with the preset bank application is established so as to communicate with the preset bank application through the connection, and preset service corresponding to the preset service identification is called.
In the above-described S7-S11, the front end (e.g., the front end application in fig. 2) invokes the gateway interface service, and the gateway ACCGW application centrally receives and forwards the request.
The ACCGW queries the Router about the route involved in the request, the IP and port of the SVC service corresponding to the interface, i.e., determines the bank application channel coding information, and the destination port number and destination IP address corresponding to the predetermined service identifier.
In the searching process, ACCGW can be used for searching in the memory of the linux application server, and the searching based on the memory is more efficient.
As shown in the above steps, the currently registered channel routing information is first queried according to the routing code. When the corresponding route information is not found in the memory, the exception is directly returned to the calling party, and the fact that the route channel is not registered is indicated. When the corresponding route information is inquired, the route information is inquired according to the interface name in the request parameter. And finally, finding out corresponding SVC application information and calling service in a mode of adding an interface name by the route code. So that the ACCGW forwards the request to the corresponding SVC application process through the connection channel, the destination port number and the destination IP address.
It should be noted that, the virtualized service application SVC may assemble a message of a bank according to a connection manner between itself and a bank application and a communication method required by the bank, and send the message to the bank, where the connection manner between the SVC and the bank application is shown in fig. 2 as JSVC, forwarding and a bank client, or may set according to a requirement of the bank application or an actual application or a scene by a predetermined protocol.
By the above alternative embodiments, at least the following advantages may be achieved:
1) The bank channels are isolated by the respective implementation mode of SVC;
2) The Route service registration routing information is placed in the memory of the linux server, and is searched in the memory, so that the whole transaction is more efficient.
3) The expansibility is stronger, and a new bank channel is accessed, and only the corresponding SVC service is needed to be realized.
4) The system interaction is more robust.
5) The resource allocation is more reasonable.
6) The transaction real-time response is fast.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the various embodiments of the present invention.
Example 2
According to an embodiment of the present invention, there is further provided an apparatus for implementing the banking application communication method, and fig. 3 is a block diagram of a banking application communication apparatus according to an embodiment of the present invention, as shown in fig. 3, the apparatus including: the receiving module 302, the first determining module 304, the second determining module 306, the third determining module 308, and the establishing module 310 are described in detail below.
A receiving module 302, configured to receive a banking application communication request, where the banking application communication request carries a predetermined banking application identifier and a predetermined service identifier;
A first determining module 304, coupled to the receiving module 302, for determining, in response to a banking application communication request, banking application channel coding information corresponding to a predetermined banking application identifier;
a second determining module 306, coupled to the first determining module 304, for determining a target connection channel for establishing connection with a predetermined bank application according to the bank application channel coding information, where the predetermined bank application is a bank application marked by a predetermined bank application identifier;
a third determining module 308, coupled to the second determining module 306, configured to determine a target port number and a target IP address corresponding to a predetermined service identifier in a target connection channel;
the establishing module 310 is connected to the third determining module 308, and is configured to establish a connection with a predetermined banking application based on the target connection channel, the target port number and the target IP address, so as to communicate with the predetermined banking application through the connection, and call a predetermined service corresponding to the predetermined service identifier.
Optionally, the receiving module 302 is further configured to determine a plurality of banking applications of the pre-constructed connection channel; determining services corresponding to a plurality of bank applications respectively, and port numbers and IP addresses corresponding to the services respectively; constructing a plurality of connection channels according to the services respectively corresponding to the plurality of bank applications and the port numbers and the IP addresses respectively corresponding to the services, wherein the plurality of connection channels respectively comprise the port numbers and the IP addresses corresponding to the corresponding services; and determining a plurality of connection channels, corresponding bank application identifiers and corresponding bank application channel coding information.
Optionally, the second determining module 306 is further configured to construct virtualized service applications corresponding to the plurality of banking applications according to services corresponding to the plurality of banking applications respectively; respectively constructing a port number and an IP address corresponding to the service respectively on a plurality of virtualized service applications; and constructing a plurality of connection channels according to the services respectively corresponding to the plurality of virtualized service applications and the port numbers and the IP addresses respectively corresponding to the services.
Optionally, the second determining module 306 is further configured to determine virtualized service application construction conditions corresponding to the plurality of banking applications respectively; under the condition that the respective corresponding virtualized service application construction conditions are constructed through a preset protocol, the respective corresponding virtualized service applications are constructed on the basis of the preset protocol according to the respective corresponding services of the plurality of bank applications.
Optionally, the second determining module 306 is further configured to store the correspondence relationship in the routing table; and determining a target connection channel corresponding to the bank application channel coding information according to the routing table.
Optionally, the second determining module 306 is further configured to determine, from the system memory, a target connection channel for establishing a connection with the predetermined bank application according to the bank application channel encoding information.
Optionally, the first determining module 304 is further configured to determine whether a query result of the bank application channel coding information is queried in the predetermined coding library; and returning abnormal information to the preset terminal under the condition that the inquiry result is that the bank application channel coding information cannot be inquired in the preset coding library, wherein the abnormal information is used for indicating that communication connection cannot be established with the bank application marked by the preset bank application identifier.
It should be noted that the above-mentioned receiving module 302, the first determining module 304, the second determining module 306, the third determining module 308 and the establishing module 310 correspond to the steps S102 to S110 in implementing the bank application communication method, and the plurality of modules are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to those disclosed in the above-mentioned embodiment 1.
Example 3
According to another aspect of the embodiment of the present invention, there is also provided an electronic device including: a processor; a memory for storing processor-executable instructions, wherein the processor is configured to execute the instructions to implement the banking application communication method of any of the above.
Example 4
According to another aspect of embodiments of the present invention, there is also provided a computer-readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the banking application communication method of any one of the above.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (10)

1. A method of banking application communication, comprising:
receiving a bank application communication request, wherein the bank application communication request carries a preset bank application identifier and a preset service identifier;
determining bank application channel coding information corresponding to the preset bank application identification in response to the bank application communication request;
determining a target connection channel for establishing connection with a preset bank application according to the bank application channel coding information, wherein the preset bank application is a bank application marked by the preset bank application identifier;
determining a target port number and a target IP address corresponding to the predetermined service identifier in the target connection channel;
based on the target connection channel, the target port number and the target IP address, a connection with the predetermined banking application is established to communicate with the predetermined banking application through the connection, and a predetermined service corresponding to the predetermined service identifier is invoked.
2. The method of claim 1, wherein prior to receiving the banking application communication request, further comprising:
determining a plurality of banking applications of the pre-constructed connection channel;
determining services corresponding to the plurality of bank applications respectively, and port numbers and IP addresses corresponding to the services respectively;
constructing a plurality of connection channels according to the services respectively corresponding to the plurality of bank applications and the port numbers and the IP addresses respectively corresponding to the services, wherein the plurality of connection channels respectively comprise the port numbers and the IP addresses corresponding to the corresponding services;
and determining the corresponding relation among the plurality of connecting channels, the corresponding bank application identifiers and the corresponding bank application channel coding information.
3. The method according to claim 2, wherein the constructing a plurality of connection channels according to the services respectively corresponding to the plurality of banking applications and the port numbers and the IP addresses respectively corresponding to the services includes:
constructing virtualized service applications corresponding to the plurality of bank applications according to the services corresponding to the plurality of bank applications respectively;
respectively constructing port numbers and IP addresses corresponding to the services respectively on a plurality of virtualized service applications;
And constructing the plurality of connection channels according to the services respectively corresponding to the plurality of virtualized service applications and the port numbers and the IP addresses respectively corresponding to the services.
4. The method according to claim 3, wherein constructing virtualized service applications corresponding to the plurality of banking applications according to the services corresponding to the plurality of banking applications, respectively, comprises:
determining a virtualized service application construction condition corresponding to each of the plurality of bank applications;
and under the condition that the construction conditions of the virtualized service applications corresponding to the bank applications are constructed through a preset protocol, constructing the virtualized service applications corresponding to the bank applications on the basis of the preset protocol according to the services corresponding to the bank applications.
5. The method according to claim 2, wherein determining a target connection channel for establishing a connection with a predetermined banking application based on the banking application channel encoding information, comprises:
storing the corresponding relation into a routing table;
and determining the target connection channel corresponding to the bank application channel coding information according to the routing table.
6. The method according to claim 1, wherein determining a target connection channel for establishing a connection with a predetermined banking application based on the banking application channel encoding information, comprises:
and determining a target connection channel for establishing connection with a preset bank application from a system memory according to the bank application channel coding information.
7. The method according to any one of claims 1 to 6, wherein after determining the banking application channel encoding information corresponding to the predetermined banking application identification in response to the banking application communication request, further comprising:
determining whether a query result of the bank application channel coding information is queried in a preset coding library;
and returning abnormal information to a preset terminal under the condition that the inquiry result is that the bank application channel coding information cannot be inquired in the preset coding library, wherein the abnormal information is used for indicating that communication connection cannot be established with the bank application marked by the preset bank application identifier.
8. A banking application communication device, comprising:
the receiving module is used for receiving a bank application communication request, wherein the bank application communication request carries a preset bank application identifier and a preset service identifier;
The first determining module is used for responding to the bank application communication request and determining bank application channel coding information corresponding to the preset bank application identification;
the second determining module is used for determining a target connection channel for establishing connection with a preset bank application according to the bank application channel coding information, wherein the preset bank application is a bank application marked by the preset bank application identifier;
a third determining module, configured to determine, in the target connection channel, a target port number and a target IP address corresponding to the predetermined service identifier;
the establishing module is used for establishing connection with the preset bank application based on the target connection channel, the target port number and the target IP address so as to communicate with the preset bank application through the connection and call the preset service corresponding to the preset service identifier.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement a banking application communication method as claimed in any one of claims 1 to 7.
10. A computer readable storage medium, characterized in that instructions in the computer readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the banking application communication method of any of claims 1 to 7.
CN202311640769.5A 2023-12-01 2023-12-01 Bank application communication method and device and electronic equipment Pending CN117640732A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311640769.5A CN117640732A (en) 2023-12-01 2023-12-01 Bank application communication method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311640769.5A CN117640732A (en) 2023-12-01 2023-12-01 Bank application communication method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN117640732A true CN117640732A (en) 2024-03-01

Family

ID=90017909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311640769.5A Pending CN117640732A (en) 2023-12-01 2023-12-01 Bank application communication method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN117640732A (en)

Similar Documents

Publication Publication Date Title
US7257817B2 (en) Virtual network with adaptive dispatcher
US7899047B2 (en) Virtual network with adaptive dispatcher
EP3361675A1 (en) Distributed load balancing system, health check method and service node
US9331932B2 (en) Network system
US11502919B2 (en) Network service management method, related apparatus, and system
CN110348242A (en) Service request processing method and device
CN110336753A (en) A kind of service calling method, device, equipment and the storage medium in across a network region
CN104584484A (en) System and method providing policy based data center network automation
CN110554927A (en) Micro-service calling method based on block chain
CN110289999B (en) Data processing method, system and device
CN109831507B (en) Internet of things system, load balancing method and storage medium
CN113542437B (en) Network system, network proxy method and device
CN116633775B (en) Container communication method and system of multi-container network interface
WO2017204700A1 (en) Automatic network management system, methods and computer program product
WO2024067338A1 (en) Cloud networking system, secure access method, and device and storage medium
CN111552568A (en) Cloud service calling method and device
CN112134744B (en) Management method of nodes in distributed management system
CN117640732A (en) Bank application communication method and device and electronic equipment
US10924575B2 (en) Automatic network management system and methods
CN115174592A (en) Enterprise-level data request forwarding system and method
CN102843255B (en) Peer-to-peer based network management method and proxy selection server
CN109936460B (en) Method and equipment for charging flow
CN110391996A (en) A kind of block is linked into device, system, method and computer equipment
CN116846975A (en) Consumption service method, equipment and medium based on API gateway
CN115632980A (en) Method and device for realizing routing configuration, storage medium and electronic equipment

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