CN113037831A - Service gateway message processing method and device - Google Patents

Service gateway message processing method and device Download PDF

Info

Publication number
CN113037831A
CN113037831A CN202110238619.6A CN202110238619A CN113037831A CN 113037831 A CN113037831 A CN 113037831A CN 202110238619 A CN202110238619 A CN 202110238619A CN 113037831 A CN113037831 A CN 113037831A
Authority
CN
China
Prior art keywords
service
calling
services
information
channel
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.)
Granted
Application number
CN202110238619.6A
Other languages
Chinese (zh)
Other versions
CN113037831B (en
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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202110238619.6A priority Critical patent/CN113037831B/en
Publication of CN113037831A publication Critical patent/CN113037831A/en
Application granted granted Critical
Publication of CN113037831B publication Critical patent/CN113037831B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

According to the method and the device for processing the service gateway message, the corresponding service number, system number and channel number are obtained by identifying the coding format in the service gateway message and analyzing the service gateway message; inquiring control flows respectively corresponding to the service number, the system number and the channel number from a control flow database; respectively controlling and processing three dimensions of a channel, a system and a service according to a control flow; and after the control flow is normally finished, using Dubbo generalization to call corresponding service so as to complete the business flow. According to the method and the system, the judgment conditions in the calling logic are configured in the database, the situation of hard coding is reduced, the reusability of codes is improved, the Dubbo generalized calling is used, the abstract object is used for replacing a specific object, the dependence of a gateway on an input parameter object class is eliminated, the coupling is reduced, and therefore the requirement of the bank system for butt joint with various external platform servers is met.

Description

Service gateway message processing method and device
Technical Field
The present application relates to the field of banking business, and in particular, to a method and an apparatus for processing a service gateway packet
Background
In a banking system, an existing inter-platform server deployment technical scheme is as an architecture as shown in fig. 1, each service docked with each external platform server is subjected to business processing by a single dubbo service, as shown in fig. 1, each external platform server sends a message meeting a certain format specification to a gateway, the gateway calls a server cluster to register the service on a corresponding zookeeper server according to the content of the message after analyzing the message, and then determines whether to wait for the service to be ended according to whether the service is synchronous or asynchronous, and returns a result to the external platform server. The server cluster is a provider of service layer service, completes respective service data processing and returns results to the outside; the Zookeeper server cluster is responsible for coordinating services distributed on each server; the gateway is responsible for receiving messages from an external platform server, authenticating identity information of a sender, analyzing the messages and calling corresponding services on the corresponding zookeeper server according to the message information.
With the increasing number of external platform servers interfacing with bank management business, there are multiplexing parts and unique parts between interfaces of different external platform servers, and the interfaces of each external platform server in the existing gateway architecture are managed independently, so that there are more and more customized transaction interfaces to be maintained, and therefore, the existing gateway architecture cannot meet the requirement of interfacing a bank system with various external platform servers.
Disclosure of Invention
The application provides a service gateway message processing method and device, which are used for meeting the requirements of a bank system for butting with various external platform servers.
In order to achieve the above object, the present application provides the following technical solutions:
a service gateway message processing method comprises the following steps:
acquiring a service gateway message sent by an external platform server, wherein the service gateway message comprises a service number, a system number and a channel number;
identifying the coding format in the service gateway message and analyzing the service gateway message to obtain a corresponding service number, a system number and a channel number;
inquiring control flows respectively corresponding to the service number, the system number and the channel number from a control flow database, wherein the control flows at least comprise one of concurrent number control, verification signature, message decryption and authorization verification, and the control flow database comprises: a service information table, a system information table and a channel information table;
controlling and processing three dimensions of a channel, a system and a service respectively according to the control flow;
and after the control flow is normally finished, using Dubbo generalization to call corresponding service so as to complete the business flow.
Preferably, the service information table, the system information table and the channel information table use a service number, a system number and a channel number as main keys, respectively, and the channel number is an external key of the system information table.
Preferably, whether each control flow is enabled, the calling sequence and the control value are adjusted by modifying the value of each configuration item.
Preferably, if the called service is a single service, the corresponding service is called by using the Dubbo generalization, specifically:
inquiring service information corresponding to the service number from a service configuration table, and determining service calling information corresponding to the service information;
and converting the service input parameters in the service gateway message into generalized objects from character strings according to the service calling information so as to realize the calling of the service.
Preferably, if the called service is an orchestration service, the Dubbo generalization is used to call the corresponding service, specifically:
inquiring arrangement service information corresponding to the service number from a service configuration table, wherein the configuration information of the arrangement service information comprises service codes of at least two arrangement sub-services and a calling sequence of the arrangement sub-services;
and sequentially calling the arranging sub-services according to the service codes of the arranging sub-services and the calling sequence of the arranging sub-services so as to realize the calling of the services.
A service gateway packet processing apparatus, comprising:
the first processing unit is used for acquiring a service gateway message sent by an external platform server, wherein the service gateway message comprises a service number, a system number and a channel number;
the second processing unit is used for identifying the coding format in the service gateway message and analyzing the service gateway message to obtain a corresponding service number, a corresponding system number and a corresponding channel number;
a third processing unit, configured to query, from a control flow database, control flows corresponding to the service number, the system number, and the channel number, where the control flow database includes: a service information table, a system information table and a channel information table;
the fourth processing unit is used for respectively controlling and processing the three dimensions of the channel, the system and the service according to the control flow;
and the fifth processing unit is used for calling corresponding services by using Dubbo generalization after the control flow is normally finished so as to finish the business flow.
Preferably, if the called service is a single service, the fifth processing unit is specifically configured to:
inquiring service information corresponding to the service number from a service configuration table, and determining service calling information corresponding to the service information;
and converting the service input parameters in the service gateway message into generalized objects from character strings according to the service calling information so as to realize the calling of the service.
Preferably, if the called service is a scheduling service, the fifth processing unit is specifically configured to:
inquiring arrangement service information corresponding to the service number from a service configuration table, wherein the configuration information of the arrangement service information comprises service codes of at least two arrangement sub-services and a calling sequence of the arrangement sub-services;
and sequentially calling the arranging sub-services according to the service codes of the arranging sub-services and the calling sequence of the arranging sub-services so as to realize the calling of the services.
A storage medium, which includes a stored program, and when the program runs, controls a device on which the storage medium is located to execute the service gateway message processing method described above.
An electronic device comprising at least one processor, and at least one memory, bus connected with the processor; the processor and the memory complete mutual communication through the bus; the processor is configured to call the program instructions in the memory to execute the service gateway message processing method.
According to the method and the device for processing the service gateway message, the corresponding service number, system number and channel number are obtained by identifying the coding format in the service gateway message and analyzing the service gateway message; inquiring control flows respectively corresponding to the service number, the system number and the channel number from a control flow database; respectively controlling and processing three dimensions of a channel, a system and a service according to a control flow; and after the control flow is normally finished, using Dubbo generalization to call corresponding service so as to complete the business flow. According to the method and the system, the judgment conditions in the calling logic are configured in the database, the situation of hard coding is reduced, the reusability of codes is improved, the Dubbo generalized calling is used, the abstract object is used for replacing a specific object, the dependence of a gateway on an input parameter object class is eliminated, the coupling is reduced, and therefore the requirement of the bank system for butt joint with various external platform servers is met.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of an external platform server deployment architecture in the prior art;
fig. 2 is a schematic diagram of an external platform server deployment architecture provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of a service gateway message processing method according to an embodiment of the present application;
fig. 4 is a schematic diagram of a service gateway message processing flow provided in the embodiment of the present application;
FIG. 5 is a schematic diagram of an orchestration service call according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a service gateway message processing apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The existing inter-platform server deployment technical scheme is as the framework given in fig. 1, and when an external platform server sends a call request, the processing flow of a service gateway message is as follows: firstly, judging a butted external platform server according to information such as service codes in the message; then, according to a message format agreed with an external platform server, calling the external platform server of the service interface to realize subclasses, and realizing the processing of decryption, signature verification, object analysis and the like on the message by the subclasses through the external platform server; and finally, calling the corresponding service to complete the business process by using Dubbo non-generalization call.
The applicant finds that the following problems exist in the existing service gateway message processing flow:
1) employing non-generalized calls
The non-generalized calling needs a detailed method input parameter type, however, in a bank insurance business scenario, the input parameter is an encapsulation class defined by each business interface, and is mainly used for encapsulating business data, the encapsulation classes are various, and a new interface may be generated along with the access of a new external platform server, so that the gateway part is high in coupling with other parts, and is difficult to maintain.
2) Configurational management of services without using a database
The existing gateway does not depend on a database, information of a fixed external platform server for judging a received message is directly written in a code or a configuration file, and the logics of the judging parts become more and more complex along with the access of the external platform server, so that the code is difficult to manage and maintain.
In summary, the existing gateway architecture has not been able to meet the requirement of the bank system to interface with various external platform servers.
Therefore, the present application provides a method and an apparatus for processing a service gateway packet, which are applied to an external platform server deployment architecture shown in fig. 2, where the architecture includes: the method comprises three dimensions of a channel, a system and a service, wherein the channel is a direct source channel for receiving messages with a gateway, can be a butted external platform server, and can also be a corresponding branch for transmitting service information; the system is a third-party system of a message source; the service provides services for the gateway to be called by each system so as to meet the requirements of service interfaces. In the context of this application, it is constrained that one channel can interface multiple systems, but one system can only access a gateway through one channel.
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 only a part of the embodiments of the present application, and not all of the 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.
Referring to fig. 3, a schematic flowchart of a method for processing a service gateway packet according to an embodiment of the present application is shown. As shown in fig. 3, a method for processing a service gateway packet provided in an embodiment of the present application specifically includes the following steps:
s31: and acquiring a service gateway message sent by an external platform server, wherein the service gateway message comprises a service number, a system number and a channel number.
S32: and identifying the coding format in the service gateway message and analyzing the service gateway message to obtain a corresponding service number, a system number and a channel number.
S33: and inquiring control flows respectively corresponding to the service number, the system number and the channel number from a control flow database.
The control process at least includes one of concurrent number control, signature verification, message decryption and authorization verification, and the control process database includes: a service information table, a system information table, and a channel information table.
It should be noted that the relationship between the channels and the system is one-to-many; the relation between the system and the service is many-to-many, and the channel number, the system number and the service number are corresponding to the channel information table, the system information table and the service information table and are main keys of the channel information table, the system information table and the service information table respectively; the channel number is the external key of the system information table, so that the one-to-many constraint effect between the channel and the system is achieved. The relationship between the system and the service is realized by a service authorization table, the main key of the table is (system number and service number), and the service can be called by the system through the authorization relationship between the system and the service and the authorization code.
S34: and respectively controlling and processing the three dimensions of the channel, the system and the service according to the control flow.
And respectively performing control processing on the channel, the system and the service according to the control flow determined in the step S33, where as shown in fig. 4, the control flow includes concurrency number control, signature verification, message decryption, authorization verification, and the like. By modifying the values of the configuration items, whether each control flow is enabled, the calling sequence and the control values (such as the concurrence number, the signature verification public key, the decryption private key and the like) can be adjusted, and the control values are not required to be configured or not.
S35: and after the control flow is normally finished, using Dubbo generalization to call corresponding service so as to complete the business flow.
In the embodiment of the application, the service can only call a single service, or a plurality of services can be organized together to arrange the call. The following is described separately for individual services and orchestration services:
in practical application, if the called service is a single service, the Dubbo generalization is used to call the corresponding service, which specifically includes:
inquiring service information corresponding to the service number from a service configuration table, and determining service calling information corresponding to the service information;
and converting the service input parameters in the service gateway message into generalized objects from character strings according to the service calling information so as to realize the calling of the service.
In practical application, the association table service input/output table of the service information table records the name of each input/output corresponding to the service and the class name instantiated by the application, the consumer extracts json (which is essentially a map) of each input/output from the service gateway message through fastjson (an open source component for realizing the interconversion among json, character strings and objects) according to the name in the input/output table, and transmits the class names instantiated by the objects to the service provider as calling parameters. After receiving the json and the class name, the service provider converts the json into an object through the fastjson to call the service, so that generalized calling is realized.
The advantage of the generalized call is that the gateway does not need to define the type of the input/output object, and only needs to add the corresponding class name to the input/output information of the service, so that the code of the gateway does not need to be changed when a new service is added.
In practical application, if the called service is an orchestration service, the Dubbo generalization is used to call the corresponding service, specifically:
inquiring arrangement service information corresponding to the service number from a service configuration table, wherein the configuration information of the arrangement service information comprises service codes of at least two arrangement sub-services and a calling sequence of the arrangement sub-services;
and sequentially calling the arranging sub-services according to the service codes of the arranging sub-services and the calling sequence of the arranging sub-services so as to realize the calling of the services.
In practical application, if the arrangement service is used, the service code in the message corresponds to an abstract service, as shown in fig. 5, the configuration information of the arrangement main service records the service codes and the calling sequence of a plurality of arrangement sub-services participating in arrangement, and then the arrangement sub-services are called in sequence according to the information, and finally the whole arrangement service is completed. It should be noted that the orchestration sub-service in the embodiment of the present application may be provided by a different external platform server and registered on the zookeeper server cluster.
It should be noted that, when a service is called, some judgment needs to be made to determine whether the call is legal, for example: authorization code verification, IP verification, MAC address verification, signature verification and the like; some processing for the service gateway message needs to be completed before the background service is called, for example, decryption processing of the service gateway message, and the judgment conditions or key values required by these processes need to be configured in the database in advance.
According to the method for processing the service gateway message, the corresponding service number, system number and channel number are obtained by identifying the coding format in the service gateway message and analyzing the service gateway message; inquiring control flows respectively corresponding to the service number, the system number and the channel number from a control flow database; respectively controlling and processing three dimensions of a channel, a system and a service according to a control flow; and after the control flow is normally finished, using Dubbo generalization to call corresponding service so as to complete the business flow. According to the method and the system, the judgment conditions in the calling logic are configured in the database, the situation of hard coding is reduced, the reusability of codes is improved, the Dubbo generalized calling is used, the abstract object is used for replacing a specific object, the dependence of a gateway on an input parameter object class is eliminated, the coupling is reduced, and therefore the requirement of the bank system for butt joint with various external platform servers is met.
Referring to fig. 6, based on the method for processing a service gateway packet disclosed in the foregoing embodiment, this embodiment correspondingly discloses a service gateway packet processing apparatus, which specifically includes:
the first processing unit 61 is configured to acquire a service gateway packet sent by an external platform server, where the service gateway packet includes a service number, a system number, and a channel number;
the second processing unit 62 is configured to identify a coding format in the service gateway packet and analyze the service gateway packet to obtain a corresponding service number, a system number, and a channel number;
a third processing unit 63, configured to query, from a control flow database, control flows corresponding to the service number, the system number, and the channel number, where the control flow database includes: a service information table, a system information table and a channel information table;
a fourth processing unit 64, configured to perform control processing on three dimensions, namely, a channel, a system, and a service according to the control flow;
and a fifth processing unit 65, configured to call, after the control flow is normally ended, a corresponding service using Dubbo generalization, so as to complete a business flow.
Optionally, if the called service is a single service, the fifth processing unit 65 is specifically configured to:
inquiring service information corresponding to the service number from a service configuration table, and determining service calling information corresponding to the service information;
and converting the service input parameters in the service gateway message into generalized objects from character strings according to the service calling information so as to realize the calling of the service.
Optionally, if the called service is an orchestration service, the fifth processing unit 65 is specifically configured to:
inquiring arrangement service information corresponding to the service number from a service configuration table, wherein the configuration information of the arrangement service information comprises service codes of at least two arrangement sub-services and a calling sequence of the arrangement sub-services;
and sequentially calling the arranging sub-services according to the service codes of the arranging sub-services and the calling sequence of the arranging sub-services so as to realize the calling of the services.
The service gateway message processing device comprises a processor and a memory, wherein the first processing unit, the second processing unit, the third processing unit, the fourth processing unit, the fifth processing unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the requirement that the bank system is in butt joint with various external platform servers is met by adjusting the kernel parameters.
The embodiment of the application provides a storage medium, wherein a program is stored on the storage medium, and the program realizes the service gateway message processing method when being executed by a processor.
The embodiment of the application provides a processor, wherein the processor is used for running a program, and the service gateway message processing method is executed when the program runs.
An embodiment of the present application provides an electronic device, as shown in fig. 7, the electronic device 70 includes at least one processor 701, and at least one memory 702 and a bus 703, which are connected to the processor; the processor 701 and the memory 702 complete communication with each other through the bus 703; the processor 701 is configured to call the program instructions in the memory 702 to execute the service gateway message processing method described above.
The electronic device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device:
acquiring a service gateway message sent by an external platform server, wherein the service gateway message comprises a service number, a system number and a channel number;
identifying the coding format in the service gateway message and analyzing the service gateway message to obtain a corresponding service number, a system number and a channel number;
inquiring control flows respectively corresponding to the service number, the system number and the channel number from a control flow database, wherein the control flows at least comprise one of concurrent number control, verification signature, message decryption and authorization verification, and the control flow database comprises: a service information table, a system information table and a channel information table;
controlling and processing three dimensions of a channel, a system and a service respectively according to the control flow;
and after the control flow is normally finished, using Dubbo generalization to call corresponding service so as to complete the business flow.
Optionally, the service information table, the system information table, and the channel information table use a service number, a system number, and a channel number as a primary key, respectively, and the channel number is an external key of the system information table.
Optionally, whether each control flow is enabled, the calling sequence and the control value are adjusted by modifying the value of each configuration item.
Optionally, if the called service is a single service, the corresponding service is called by using the Dubbo generalization, which specifically includes:
inquiring service information corresponding to the service number from a service configuration table, and determining service calling information corresponding to the service information;
and converting the service input parameters in the service gateway message into generalized objects from character strings according to the service calling information so as to realize the calling of the service.
Optionally, if the called service is an orchestration service, the corresponding service is called by using Dubbo generalization, which specifically includes:
inquiring arrangement service information corresponding to the service number from a service configuration table, wherein the configuration information of the arrangement service information comprises service codes of at least two arrangement sub-services and a calling sequence of the arrangement sub-services;
and sequentially calling the arranging sub-services according to the service codes of the arranging sub-services and the calling sequence of the arranging sub-services so as to realize the calling of the services.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for processing a service gateway message is characterized by comprising the following steps:
acquiring a service gateway message sent by an external platform server, wherein the service gateway message comprises a service number, a system number and a channel number;
identifying the coding format in the service gateway message and analyzing the service gateway message to obtain a corresponding service number, a system number and a channel number;
inquiring control flows respectively corresponding to the service number, the system number and the channel number from a control flow database, wherein the control flows at least comprise one of concurrent number control, verification signature, message decryption and authorization verification, and the control flow database comprises: a service information table, a system information table and a channel information table;
controlling and processing three dimensions of a channel, a system and a service respectively according to the control flow;
and after the control flow is normally finished, using Dubbo generalization to call corresponding service so as to complete the business flow.
2. The method according to claim 1, wherein the service information table, the system information table, and the channel information table have a service number, a system number, and a channel number as primary keys, respectively, and the channel number is a foreign key of the system information table.
3. The method of claim 1, wherein the enabling, calling order, and control values of the respective control flows are adjusted by modifying the values of the respective configuration items.
4. The method of claim 1, wherein if the called service is a single service, the method uses a corresponding service called by a Dubbo generalization, specifically:
inquiring service information corresponding to the service number from a service configuration table, and determining service calling information corresponding to the service information;
and converting the service input parameters in the service gateway message into generalized objects from character strings according to the service calling information so as to realize the calling of the service.
5. The method of claim 1, wherein if the called service is an orchestration service, the Dubbo generalized call is used to call the corresponding service, specifically:
inquiring arrangement service information corresponding to the service number from a service configuration table, wherein the configuration information of the arrangement service information comprises service codes of at least two arrangement sub-services and a calling sequence of the arrangement sub-services;
and sequentially calling the arranging sub-services according to the service codes of the arranging sub-services and the calling sequence of the arranging sub-services so as to realize the calling of the services.
6. A service gateway packet processing apparatus, comprising:
the first processing unit is used for acquiring a service gateway message sent by an external platform server, wherein the service gateway message comprises a service number, a system number and a channel number;
the second processing unit is used for identifying the coding format in the service gateway message and analyzing the service gateway message to obtain a corresponding service number, a corresponding system number and a corresponding channel number;
a third processing unit, configured to query, from a control flow database, control flows corresponding to the service number, the system number, and the channel number, where the control flow database includes: a service information table, a system information table and a channel information table;
the fourth processing unit is used for respectively controlling and processing the three dimensions of the channel, the system and the service according to the control flow;
and the fifth processing unit is used for calling corresponding services by using Dubbo generalization after the control flow is normally finished so as to finish the business flow.
7. The method of claim 6, wherein if the invoked service is a single service, the fifth processing unit is specifically configured to:
inquiring service information corresponding to the service number from a service configuration table, and determining service calling information corresponding to the service information;
and converting the service input parameters in the service gateway message into generalized objects from character strings according to the service calling information so as to realize the calling of the service.
8. The method of claim 7, wherein if the invoked service is a orchestration service, the fifth processing unit is specifically configured to:
inquiring arrangement service information corresponding to the service number from a service configuration table, wherein the configuration information of the arrangement service information comprises service codes of at least two arrangement sub-services and a calling sequence of the arrangement sub-services;
and sequentially calling the arranging sub-services according to the service codes of the arranging sub-services and the calling sequence of the arranging sub-services so as to realize the calling of the services.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, a device in which the storage medium is located is controlled to execute the service gateway message processing method according to any one of claims 1 to 5.
10. An electronic device comprising at least one processor, and at least one memory, bus connected to the processor; the processor and the memory complete mutual communication through the bus; the processor is configured to invoke program instructions in the memory to perform the service gateway message processing method of any of claims 1 to 5.
CN202110238619.6A 2021-03-04 2021-03-04 Service gateway message processing method and device Active CN113037831B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110238619.6A CN113037831B (en) 2021-03-04 2021-03-04 Service gateway message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110238619.6A CN113037831B (en) 2021-03-04 2021-03-04 Service gateway message processing method and device

Publications (2)

Publication Number Publication Date
CN113037831A true CN113037831A (en) 2021-06-25
CN113037831B CN113037831B (en) 2023-04-28

Family

ID=76466196

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110238619.6A Active CN113037831B (en) 2021-03-04 2021-03-04 Service gateway message processing method and device

Country Status (1)

Country Link
CN (1) CN113037831B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113472880A (en) * 2021-06-30 2021-10-01 中国银行股份有限公司 Gateway processing method and system based on database configuration in micro-service architecture
CN113596164A (en) * 2021-07-30 2021-11-02 工银科技有限公司 Data access method, device, system, equipment and medium
CN113973139A (en) * 2021-10-20 2022-01-25 北京沃东天骏信息技术有限公司 Message processing method and device
CN114448920A (en) * 2022-01-27 2022-05-06 浙江惠瀜网络科技有限公司 Encryption communication method, device, terminal and storage medium based on gateway routing forwarding
CN114553873A (en) * 2022-02-27 2022-05-27 重庆长安汽车股份有限公司 SOA-based vehicle cloud cooperative control system and method and readable storage medium
CN114584525A (en) * 2022-01-28 2022-06-03 深圳市梦网科技发展有限公司 Message processing method, system, terminal device and storage medium
CN114697131A (en) * 2022-04-27 2022-07-01 京东科技控股股份有限公司 Data calling method and device, storage medium and electronic equipment
CN114827311A (en) * 2022-04-28 2022-07-29 中国农业银行股份有限公司 Data processing method and device, electronic equipment and computer storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150280983A1 (en) * 2008-09-02 2015-10-01 Constantin Staykoff Generic multichannel center for network applications and services
EP3121998A1 (en) * 2015-06-15 2017-01-25 Opencode Systems O.O.D. Generic multichannel center for network applications and services
CN108768727A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 Access method, electronic device and the readable storage medium storing program for executing of third party's service
CN109151091A (en) * 2018-09-21 2019-01-04 福建南威软件有限公司 A kind of API gateway service for supporting dubbo agreement to call
CN110830280A (en) * 2018-08-10 2020-02-21 深圳市鸿合创新信息技术有限责任公司 Micro-service gateway device and method and electronic equipment
CN111045648A (en) * 2019-12-11 2020-04-21 盈佳云创科技(深圳)有限公司 Micro-service development tool
CN111553652A (en) * 2020-04-23 2020-08-18 中国银行股份有限公司 Service processing method and device
CN111585880A (en) * 2020-05-13 2020-08-25 腾讯科技(深圳)有限公司 Gateway control method and device in service system and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150280983A1 (en) * 2008-09-02 2015-10-01 Constantin Staykoff Generic multichannel center for network applications and services
EP3121998A1 (en) * 2015-06-15 2017-01-25 Opencode Systems O.O.D. Generic multichannel center for network applications and services
CN108768727A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 Access method, electronic device and the readable storage medium storing program for executing of third party's service
CN110830280A (en) * 2018-08-10 2020-02-21 深圳市鸿合创新信息技术有限责任公司 Micro-service gateway device and method and electronic equipment
CN109151091A (en) * 2018-09-21 2019-01-04 福建南威软件有限公司 A kind of API gateway service for supporting dubbo agreement to call
CN111045648A (en) * 2019-12-11 2020-04-21 盈佳云创科技(深圳)有限公司 Micro-service development tool
CN111553652A (en) * 2020-04-23 2020-08-18 中国银行股份有限公司 Service processing method and device
CN111585880A (en) * 2020-05-13 2020-08-25 腾讯科技(深圳)有限公司 Gateway control method and device in service system and electronic equipment

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113472880A (en) * 2021-06-30 2021-10-01 中国银行股份有限公司 Gateway processing method and system based on database configuration in micro-service architecture
CN113596164A (en) * 2021-07-30 2021-11-02 工银科技有限公司 Data access method, device, system, equipment and medium
CN113973139A (en) * 2021-10-20 2022-01-25 北京沃东天骏信息技术有限公司 Message processing method and device
CN113973139B (en) * 2021-10-20 2024-09-20 北京沃东天骏信息技术有限公司 Message processing method and device
CN114448920A (en) * 2022-01-27 2022-05-06 浙江惠瀜网络科技有限公司 Encryption communication method, device, terminal and storage medium based on gateway routing forwarding
CN114448920B (en) * 2022-01-27 2023-12-12 浙江惠瀜网络科技有限公司 Encryption communication method, device, terminal and storage medium based on gateway route forwarding
CN114584525A (en) * 2022-01-28 2022-06-03 深圳市梦网科技发展有限公司 Message processing method, system, terminal device and storage medium
CN114584525B (en) * 2022-01-28 2023-12-05 深圳市梦网科技发展有限公司 Message processing method, system, terminal equipment and storage medium
CN114553873A (en) * 2022-02-27 2022-05-27 重庆长安汽车股份有限公司 SOA-based vehicle cloud cooperative control system and method and readable storage medium
CN114553873B (en) * 2022-02-27 2023-06-09 重庆长安汽车股份有限公司 SOA-based vehicle-cloud cooperative control system, method and readable storage medium
CN114697131A (en) * 2022-04-27 2022-07-01 京东科技控股股份有限公司 Data calling method and device, storage medium and electronic equipment
CN114827311A (en) * 2022-04-28 2022-07-29 中国农业银行股份有限公司 Data processing method and device, electronic equipment and computer storage medium

Also Published As

Publication number Publication date
CN113037831B (en) 2023-04-28

Similar Documents

Publication Publication Date Title
CN113037831B (en) Service gateway message processing method and device
CN111163129A (en) Resource processing method and device based on cross-link network
CN110798490B (en) Method and device for accessing third-party system based on data center and data center
CN110650216B (en) Cloud service request method and device
CN111415170A (en) Block chain-based food tracing method and equipment and related storage medium
CN108053088A (en) A kind of Subscriber Management System, method and apparatus
CN106802864A (en) A kind of method of testing and device based on financial sector
CN110086872B (en) Data processing method and system of SCADA system
CN111552568A (en) Cloud service calling method and device
CN111899008A (en) Resource transfer method, device, equipment and system
CN108880896B (en) Program gray level publishing method and device based on mainframe
US20210342194A1 (en) Computer resource allocation based on categorizing computing processes
CN110336872B (en) Method, device and system for acquiring third-party data
CN108696864B (en) Virtual number request and transmission method, device and storage medium
Chauhan Iot network identity management using smart contract and blockchain technology
WO2023098572A1 (en) Service customization method, presentation platform, server and storage medium
CN115604103A (en) Configuration method and device of cloud computing system, storage medium and electronic equipment
CN114885024A (en) Routing method, device, equipment and medium of application example
CN111241173B (en) Method and system for data interaction among multiple systems
CN106993060A (en) A kind of master data integrated approach based on service architecture
CN115225299A (en) User authentication method, server and system
CN102594832B (en) Method and device for carrying out services by service delivery platform (SDP)
CN111127039A (en) Block chain-based computer accessory fidelity method, equipment and storage medium
CN110535957B (en) Data calling method of service application platform and service application platform system
CN118153018B (en) Multi-service system function integration method and system based on identity verification

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
GR01 Patent grant
GR01 Patent grant