CN116048835A - SOFARPC-based high-availability remote service calling method for lifting core system - Google Patents

SOFARPC-based high-availability remote service calling method for lifting core system Download PDF

Info

Publication number
CN116048835A
CN116048835A CN202211546982.5A CN202211546982A CN116048835A CN 116048835 A CN116048835 A CN 116048835A CN 202211546982 A CN202211546982 A CN 202211546982A CN 116048835 A CN116048835 A CN 116048835A
Authority
CN
China
Prior art keywords
service
sofarpc
calling
call
nacos
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
CN202211546982.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.)
Shanghai Tonglian Financial Services Co Ltd
Original Assignee
Shanghai Tonglian Financial Services 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 Shanghai Tonglian Financial Services Co Ltd filed Critical Shanghai Tonglian Financial Services Co Ltd
Priority to CN202211546982.5A priority Critical patent/CN116048835A/en
Publication of CN116048835A publication Critical patent/CN116048835A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/541Client-server
    • 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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a high-availability remote service calling method based on SOFARPC (software-defined remote service platform) lifting core system, which comprises the steps of S1, providing application service supporting SOFARPC calling, introducing a NAcos as a service registration center, (1) acquiring a configured NAcos address and a NAcos user name password when a NAcos service process is started, connecting the NAcos, and (2) registering/subscribing client-side service and server-side service to the registration center. The SOFARPC-based remote service calling method for improving the high availability of the core system forms a Java RPC framework with high expandability, high performance and production level by designing the SOFARPC to provide remote service calling capability among applications, simplifies RPC calling among applications, provides an efficient point-to-point remote calling service solution for the applications, provides a plurality of user expansion functions, and provides rich models and abstract expandable interfaces, including filters, routes and load balancing.

Description

SOFARPC-based high-availability remote service calling method for lifting core system
Technical Field
The invention relates to the technical field of computers, in particular to a high-availability remote service calling method for a core system based on SOFARPC.
Background
As the scale of access to banks continues to expand, the volume of credit card traffic continues to increase, and the frequency of online problems continues to increase. The processing efficiency, stability, high availability, etc. of the system are critical to the overall credit card business. Since the RabbitMQ used by the present credit card core system is not designed as a set of RPC framework, single point problems and transaction delay problems frequently occur in the use process. When the core system is coping with external large traffic or internal performance bottlenecks, the RabbitMQ becomes a more important ring in the transaction link, and the high availability of the RabbitMQ has become an important determinant of whether the system is stable or not.
Disclosure of Invention
(one) solving the technical problems
Aiming at the defects of the prior art, the invention provides a high-availability remote service calling method for improving a core system based on SOFARPC, which solves the problems that the processing efficiency is bottleneck and the efficiency is limited.
(II) technical scheme
In order to achieve the above purpose, the invention is realized by the following technical scheme: a remote service calling method for improving high availability of a core system based on SOFARPC,
s1, providing an application service supporting SOFARPC call, and introducing a nacos as a service registration center;
(1) when a service process of introducing the nacos is started, acquiring a configured nacos address and a name and password of a nacos user, and connecting the nacos;
(2) registering/subscribing client-side service and server-side service to a registration center;
s2, providing an application service supporting SOFARPC call, a client initiating service call and a server processing a request, replacing RabbitMQ and a nicos used in the original system as a service registration center, and supporting the original RabbitMQ call and the newly accessed SOFARPC call at the initial stage of system online;
s3, a gray bean is newly added to serve as a role of distributing the current transaction to SOFARPC or RabbitMQ, a gray level determiner is configured, and service distribution is carried out according to rules;
(1) further setting the proportion of gray scale tangential flow, the gray scale processing service dynamically obtains the configured proportion of service tangential flow and randomly generates a positive integer radio within 100;
(2) comparing the radio with the configured tangential proportion of the service, if the radio is smaller than the configured tangential proportion, distributing the service to SOFARPC for processing, and if the radio is larger than the configured tangential proportion, distributing the service to RabbitMQ for processing;
(3) the client service processed by SOFARPC is led to the server service through the nano to carry out remote procedure call, and after the call is successful, the result is returned to the client;
s4, preparing a risk plan, constructing a gray level distribution function among services, avoiding the influence of newly introduced SOFARPC on the existing production environment, and simultaneously refining a method list supporting SOFARPC call, thereby reducing the possible potential influence from the method level.
Preferably, a method list capable of supporting SOFARPC call is set, and the method supporting call is configured in a comma separated mode by using the mode of example variable sofaMethods configuration.
Preferably, when the gray level determiner determines to use SOFARPC to call, it is further determined whether the method currently performing service call is in the configured gray level method list, if so, it indicates that the method supports SOFARPC call, and after the call is successful, the result is returned to the client.
Preferably, the nano is a service discovery, configuration management and service management platform which is easy to construct, and supports registration, release and subscription of SOFARPC service.
Preferably, the SOFARPC calling mode and the original RabbitMQ calling mode coexist, and the system needs to support the two calling modes at the same time, so that the influence on the existing running mode is avoided.
Preferably, the gray function supports smooth transition from RabbitMQ to SOFARPC, and the traffic supported for access can be gray switched between two services.
Preferably, the SOFARPC supports gray level switching at a service level, and performs service call distinction at a method level, so as to ensure that only specific methods are affected when an unknown risk occurs, without causing the unavailability of the entire service.
(III) beneficial effects
The invention provides a high-availability remote service calling method for a core system based on SOFARPC. The beneficial effects are as follows:
1. according to the SOFARPC-based remote service calling method for improving the high availability of the core system, the SOFARPC is designed to provide remote service calling capability for applications, a Java RPC framework with high expandability, high performance and production level is formed, RPC calling between the applications is simplified, and an efficient point-to-point remote calling service solution is provided for the applications.
2. The SOFARPC-based remote service calling method for improving the high availability of the core system also provides a plurality of user expansion functions, and provides rich models and abstract expandable interfaces, including filters, routes and load balancing.
Drawings
FIG. 1 is a flow chart of the overall process of SOFARPC and RabbitMQ gray level splitting in the present invention;
fig. 2 is a schematic diagram of a nicos information call.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As shown in fig. 1-2, the embodiment of the invention provides a high-availability remote service calling method based on SOFARPC lifting core system, which comprises, S1, providing an application service supporting SOFARPC calling, introducing a nicos as a service registration center, SOFARPC supporting service level gray scale switching, distinguishing service calling at method level, ensuring that only a specific method is affected when unknown risks occur without causing the unavailability of the whole service, (1) acquiring configured nicos address and nicos user name password when a process of introducing the nicos service is started, connecting the nicos, (2) registering/subscribing client-side service and server-side service to the registration center, wherein the nicos is a service discovery, configuration management and service management platform which is easy to construct, supporting the registration release and subscription of SOFARPC service, the SOFARPC calling mode and the original Rabbit MQ calling mode are coexisted, the system needs to support both calling modes, S2, providing an application service supporting SOFARPC call, a client initiating service call and a service end processing request, replacing RabbitMQ and a lacos used in the original system as a service registration center, supporting the original RabbitMQ call and the newly accessed SOFARPC call at the initial stage of system online, S3, adding a gray processing service grayBean to serve as a role for distributing the current transaction to SOFARPC or RabbitMQ, configuring a gray determiner, gray functions, supporting smooth transition from RabbitMQ to SOFARPC, supporting access flow to perform gray switching between the two services, distributing the services according to rules, (1) further setting the proportion of gray tangential flow, dynamically acquiring the configured service tangential flow proportion and randomly generating a positive integer ratio within 100, (2) comparing tadio with the configured service tangential flow proportion, if the radio is smaller than the configured tangential proportion, the service is distributed to SOFARPC for processing, if the radio is larger than the configured tangential proportion, the service is distributed to RabbitMQ for processing, (3) the client service processed by SOFARPC is led to the server service through the nano for remote procedure call, the result is returned to the client after the call is successful, S4. The risk plan is prepared, the gray level diversion function among the services is constructed, the influence of the newly-introduced SOFARPC on the existing production environment is avoided, meanwhile, the method list supporting SOFARPC call can be refined, the potential influence is reduced from the method level, the method supporting the SOFARPC call is set, the method supporting the call is configured in a comma separation mode, when the gray level determiner determines that SOFARPC is used for call, whether the method currently performing service call is in the configured gray level method list, if the method supporting SOFARPC call is indicated to be successful, the result is returned to the client after the call is successful.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (7)

1. The SOFARPC-based high-availability remote service calling method for the lifting core system is characterized by comprising the following steps of:
s1, providing an application service supporting SOFARPC call, and introducing a nacos as a service registration center;
(1) when a service process of introducing the nacos is started, acquiring a configured nacos address and a name and password of a nacos user, and connecting the nacos;
(2) registering/subscribing client-side service and server-side service to a registration center;
s2, providing an application service supporting SOFARPC call, a client initiating service call and a server processing a request, replacing RabbitMQ and a nicos used in the original system as a service registration center, and supporting the original RabbitMQ call and the newly accessed SOFARPC call at the initial stage of system online;
s3, a gray bean is newly added to serve as a role of distributing the current transaction to SOFARPC or RabbitMQ, a gray level determiner is configured, and service distribution is carried out according to rules;
(1) further setting the proportion of gray scale tangential flow, the gray scale processing service dynamically obtains the configured proportion of service tangential flow and randomly generates a positive integer radio within 100;
(2) comparing the radio with the configured tangential proportion of the service, if the radio is smaller than the configured tangential proportion, distributing the service to SOFARPC for processing, and if the radio is larger than the configured tangential proportion, distributing the service to RabbitMQ for processing;
(3) the client service processed by SOFARPC is led to the server service through the nano to carry out remote procedure call, and after the call is successful, the result is returned to the client;
s4, preparing a risk plan, constructing a gray level distribution function among services, avoiding the influence of newly introduced SOFARPC on the existing production environment, and simultaneously refining a method list supporting SOFARPC call, thereby reducing the possible potential influence from the method level.
2. The method for calling the high-availability remote service based on the SOFARPC promotion core system according to claim 1, wherein the method comprises the following steps: a method list capable of supporting SOFARPC call is set, and a method supporting call is configured in a comma separated mode by using an example variable SOFAMEthods configuration mode.
3. The method for calling the high-availability remote service based on the SOFARPC promotion core system according to claim 1, wherein the method comprises the following steps: when the gray level determiner decides to use SOFARPC to call, judging whether the current method for calling service is in the configured gray level method list, if so, indicating that the method supports SOFARPC calling, and returning the result to the client after successful calling.
4. The method for calling the high-availability remote service based on the SOFARPC promotion core system according to claim 1, wherein the method comprises the following steps: the nacos is a service discovery, configuration management and service management platform which is easy to construct and supports the registration, release and subscription of SOFARPC service.
5. The method for calling the high-availability remote service based on the SOFARPC promotion core system according to claim 1, wherein the method comprises the following steps: the SOFARPC calling mode and the original RabbitMQ calling mode coexist, and the system needs to support the two calling modes at the same time, so that the influence on the existing running mode is avoided.
6. The method for calling the high-availability remote service based on the SOFARPC promotion core system according to claim 1, wherein the method comprises the following steps: the gray function supports smooth transition from RabbitMQ to SOFARPC, and the flow supporting access can switch gray between two services.
7. The method for calling the high-availability remote service based on the SOFARPC promotion core system according to claim 1, wherein the method comprises the following steps: the SOFARPC supports gray level switching of service levels, and service call distinction is carried out at a method level.
CN202211546982.5A 2022-12-02 2022-12-02 SOFARPC-based high-availability remote service calling method for lifting core system Pending CN116048835A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211546982.5A CN116048835A (en) 2022-12-02 2022-12-02 SOFARPC-based high-availability remote service calling method for lifting core system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211546982.5A CN116048835A (en) 2022-12-02 2022-12-02 SOFARPC-based high-availability remote service calling method for lifting core system

Publications (1)

Publication Number Publication Date
CN116048835A true CN116048835A (en) 2023-05-02

Family

ID=86112277

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211546982.5A Pending CN116048835A (en) 2022-12-02 2022-12-02 SOFARPC-based high-availability remote service calling method for lifting core system

Country Status (1)

Country Link
CN (1) CN116048835A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117170718A (en) * 2023-11-02 2023-12-05 绿城科技产业服务集团有限公司 Gray scale release method and device based on micro-service architecture and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117170718A (en) * 2023-11-02 2023-12-05 绿城科技产业服务集团有限公司 Gray scale release method and device based on micro-service architecture and electronic equipment
CN117170718B (en) * 2023-11-02 2024-02-02 绿城科技产业服务集团有限公司 Gray scale release method and device based on micro-service architecture and electronic equipment

Similar Documents

Publication Publication Date Title
CN110278284B (en) Service calling method and device
CN110149364A (en) Method, apparatus, the storage medium of micro services are provided based on data service platform
CN110191164A (en) Distributed Services access system and method
CN103744719B (en) Lock management method and system, the collocation method and device of lock administration system
US11778455B2 (en) Subscriber identity management method, device, and system
CN116048835A (en) SOFARPC-based high-availability remote service calling method for lifting core system
JPH08511889A (en) Extended inter-program communication server
CN112866421B (en) Intelligent contract operation method and device based on distributed cache and NSQ
JP7372380B2 (en) State machine processing, state processing methods, devices, electronic equipment and storage media
WO2020083322A1 (en) Call method, device and system
CN111221653B (en) Service processing method and device and computer readable storage medium
CN115022318B (en) Message publishing method and system based on micro-service architecture
CN114153986A (en) Knowledge graph construction method and device, electronic equipment and storage medium
EP2348676B1 (en) Method for accessing magnanimity data of intelligent network service database and system and device thereof
CN114490826A (en) Request response method, data storage method, device, server and storage medium
US20160301625A1 (en) Intelligent High-Volume Cloud Application Programming Interface Request Caching
CN213693769U (en) Distributed property trading system based on container technology
CN115113893A (en) Data processing method and device, storage medium and computer equipment
CN111026425A (en) Service updating method, device, server and medium
CN113127023A (en) Method, device and system for upgrading service
CN114710496B (en) Multi-node load balancing method and device
CN109783092A (en) A kind of application program installation method and device
CN110336847B (en) Payment message transmission system and method
CN115221242A (en) Data synchronization method and device and computer readable storage medium
CA2986758C (en) Systems and methods for server failover and load balancing

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