CN113542217B - Service subscription system - Google Patents

Service subscription system Download PDF

Info

Publication number
CN113542217B
CN113542217B CN202110632138.3A CN202110632138A CN113542217B CN 113542217 B CN113542217 B CN 113542217B CN 202110632138 A CN202110632138 A CN 202110632138A CN 113542217 B CN113542217 B CN 113542217B
Authority
CN
China
Prior art keywords
service
code
providing end
interface
registration center
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.)
Active
Application number
CN202110632138.3A
Other languages
Chinese (zh)
Other versions
CN113542217A (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.)
China Guangfa Bank Co Ltd
Original Assignee
China Guangfa Bank 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 China Guangfa Bank Co Ltd filed Critical China Guangfa Bank Co Ltd
Priority to CN202110632138.3A priority Critical patent/CN113542217B/en
Publication of CN113542217A publication Critical patent/CN113542217A/en
Application granted granted Critical
Publication of CN113542217B publication Critical patent/CN113542217B/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/133Protocols for remote procedure calls [RPC]
    • 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/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • 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
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the invention provides a service subscription system, which is applied to the technical field of computers and comprises a service consumption end, a registration center and a service providing end, wherein the service consumption end is respectively connected with the registration center and the service providing end, and the registration center is connected with the service providing end, and the method comprises the following steps: the service providing end is used for binding the service interface by using the service code and sending the service code to the registration center, and the service consuming end is used for acquiring the service code from the registration center and subscribing the service from the service providing end through the target service interface dynamically generated by the service code.

Description

Service subscription system
Technical Field
The invention relates to the technical field of computers, in particular to a service subscription system.
Background
For the traditional RPC framework, the design idea is to carry out RPC call through a shared interface class, and the system modularization splitting is more suitable for single application; the disadvantage is that there are hundreds of old systems in my line, and on average, more than ten associated systems of each system, and some even more; the method is suitable for sharing the interfaces, the number of the introduced dependent packets is more than ten, most of the interfaces are irrelevant interfaces, and more serious, the dependent packets are upgraded by version upgrading, so that error leakage is easy to occur, and the production problem is caused. The existing method has large dependence on a shared interface, and is unfavorable for service subscription.
Disclosure of Invention
The embodiment of the invention provides a method and a device for controlling a shielding device, which are used for solving the problems that the prior art has larger dependence on a shared interface and is not beneficial to service subscription, and comprise the following steps:
a service subscription system, the service subscription system comprising a service consumption end, a registry and a service providing end, the service consumption end being respectively connected with the registry and the service providing end, the registry being connected with the service providing end, the method comprising:
the service providing end is used for binding a service interface by using a service code and sending the service code to a registration center;
the service consumption end is used for acquiring the service code from the registry and subscribing the service from the service providing end through a target service interface dynamically generated by the service code.
Optionally, the service provider is configured to bind the service interface with a service code corresponding to the native XML configuration file.
Optionally, the service provider is configured to bind the service interface through a standard service code.
Optionally, the service provider is configured to use JSON to sequence the service codes.
Optionally, the service consumer is configured to cache the service code in a link of the SDK.
Optionally, the service consumer invokes the service code from a link of the SDK.
Optionally, the registry is configured to store the service code, and maintain communication with the service provider, and perform service cleaning after a predetermined time of disconnection from the service provider.
The invention has the following advantages:
in the invention, dynamic interface generation is performed through the service code. By dynamically generating the interfaces with the service codes, the interfaces are completely transparent to users at the service consumer end, and ordinary service development does not need to be concerned about the existence of the interfaces, so long as the service codes related to the service are concerned. After the technical level shielding is carried out on the service development, as the interfaces are dynamically generated, a series of problems of code sharing, version upgrading and the like caused by strong dependence of the service interfaces are solved, and the coupling degree of the system and the communication cost between the development are greatly reduced. Great convenience is brought to development, and meanwhile, technical support is provided for rapid service upgrading of the system.
Drawings
In order to more clearly illustrate the technical solutions of the present invention, the drawings that are needed in the description of the present invention will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort to a person skilled in the art.
FIG. 1 is a schematic diagram of a service subscription system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a service subscription system according to an embodiment of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description. It will be apparent that the described embodiments are some, but not all, embodiments of the invention. 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.
The RPC (Remote Procedure Call Protocol) protocol is a currently popular service communication protocol, such as the relatively well-known Dubbo framework.
In general, the RPC framework publishes services to a service registry through an interface, and consumers (service invokers) create dynamic agents through interfaces shared by providers, enabling subscription and consumption of services.
At present, a large number of monomer applications exist in the line, and network communication is carried out among the applications through original fixed address configuration; inter-system link management has faced serious challenges, such as fast service management, service precipitation, problem investigation, service innovation, etc., but it is not realistic to reconstruct the technology of these applications, and according to the current technological development, the service is an irreversible trend of future development of the system.
More, the inter-call relationship between the systems is complicated, if the systems use the traditional service technology implementation manner, a large number of dependency packages must be introduced into each system, and after the later system service is upgraded, the timeliness of the upgrade of the dependency packages cannot be ensured.
The invention mainly solves the technical problems of providing HTTP support for the traditional RPC service framework and decoupling packet strength dependence among systems, and mainly applies service communication between two systems to achieve rapid service transformation and service upgrading of new and old systems.
For the traditional RPC framework, the design idea is to carry out RPC call through a shared interface class, and the system modularization splitting is more suitable for single application; the disadvantage is that there are hundreds of old systems in my line, and on average, more than ten associated systems of each system, and some even more; the method is suitable for sharing the interfaces, the number of the introduced dependent packets is more than ten, most of the interfaces are irrelevant interfaces, and more serious, the dependent packets are upgraded by version upgrading, so that error leakage is easy to occur, and the production problem is caused.
The method aims to solve the problem of version dependence caused by large-scale system servitization and inter-application network interaction, so that the application can be rapidly upgraded and reformed by servitization.
The intersystem code must be decoupled or, in addition to affecting the efficiency of development, the version upgrade problem can trigger production problems very easily. It is necessary to solve the version problem and the excessive dependence problem of the conventional RPC framework caused by the interface sharing.
In order to solve the above-mentioned problems, referring to fig. 1, a schematic diagram of a service subscription system provided by an embodiment of the present invention is shown, where the application includes three parts, namely a service consumption end, a registry and a service providing end, the service consumption end is respectively connected to the registry and the service providing end, and the registry is connected to the service providing end.
Service providing end: publishing services of the application to a registry
The registry: the service issued by the service provider is stored and communicated with the provider, and the service cleaning is performed after a certain time of disconnection from the provider.
Service consumption end: the required services are pulled from the registry by using the service codes and then remotely communicated by the key information pulled (e.g., provider IP, port, interface name).
Referring to fig. 2, a schematic diagram of a service subscription system according to an embodiment of the present invention is shown, where a service provider is configured to bind a service interface using a service code and send the service code to a registry;
the service consumer is used for acquiring the service code from the registration center and subscribing the service from the service provider through the target service interface dynamically generated by the service code.
In an embodiment of the present application, the service provider is configured to bind a service interface with a service code corresponding to a native XML configuration file.
Since there is no strongly dependent interface, the service must have an identification code, introducing a service code to replace the shared code interface. The service codes are written according to a certain rule and endow a certain scene meaning and business meaning, such as: prod.ivst.f.mrchOrderPayment. The service code form can form a set of codes with a standard comparison, so that the service code form can form a whole service asset in a global scope besides humanization; a relatively complete system is formed for continuous management, monitoring and optimization upgrading of the service.
In an embodiment of the present application, the service provider is configured to bind a service interface through a standard service code.
In an embodiment of the present application, the service provider is configured to use JSON to sequence service codes.
The JSON is used for serializing the objects, so that the service consumer and the service provider can solve the problem that the data transmission entity shares the code class during serialization and deserialization. So that the original strong dependence becomes weak. The method has the advantages that when the message segment of the service providing end is changed, the service providing end only needs to make compatibility of new and old versions, and the influence range is greatly reduced.
In an embodiment of the present application, the service consumer is configured to cache the service code in a link of the SDK.
In an embodiment of the present application, the service consumer invokes the service code from the link of the SDK.
In an embodiment of the present application, the registry is configured to store the service code, and communicate with the service provider, and perform service cleaning after a predetermined time of disconnection from the service provider.
In the invention, dynamic interface generation is performed through the service code. By dynamically generating the interfaces with the service codes, the interfaces are completely transparent to users at the service consumer end, and ordinary service development does not need to be concerned about the existence of the interfaces, so long as the service codes related to the service are concerned. After the technical level shielding is carried out on the service development, as the interfaces are dynamically generated, a series of problems of code sharing, version upgrading and the like caused by strong dependence of the service interfaces are solved, and the coupling degree of the system and the communication cost between the development are greatly reduced. Great convenience is brought to development, and meanwhile, technical support is provided for rapid service upgrading of the system. Service standardization: by defining the service codes with unified specification and service meaning, the service management, service statistics and service precipitation are better carried out, and convenience is provided for service combination. The system is loosely coupled: by dynamically generating service interfaces from service codes, the technology of dynamically generating byte codes is used, and strong code dependence among systems is shielded. Old system rapid service: two service release modes are supported, the old service interface and the service code are bound to complete the package release of the original service, and the service interface is reused under any logic without modifying the original code.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal 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 terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The foregoing has described in detail a service subscription system provided by the present invention, and specific examples have been employed herein to illustrate the principles and embodiments of the present invention, the above examples being provided only to assist in understanding the method of the present invention and its core ideas; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (2)

1. The service subscription system is characterized by comprising a service consumption end, a registration center and a service providing end, wherein the service consumption end is respectively connected with the registration center and the service providing end, and the registration center is connected with the service providing end;
the service providing end is used for binding a service interface by using a service code corresponding to the original XML configuration file;
the service providing end is used for serializing the service codes by using JSON;
the service providing end is used for binding the service interface by using the service code, binding the service interface by using the standard service code and sending the service code to the registration center;
the service consumption end is used for acquiring the service code from the registration center, buffering the service code in a link of an SDK, calling the service code from the link of the SDK, and subscribing the service from the service providing end through a target service interface dynamically generated by the service code.
2. The service subscription system of claim 1, wherein the registry is configured to store the service code and to communicate with the service provider for service cleaning after a predetermined time of disconnection from the service provider.
CN202110632138.3A 2021-06-07 2021-06-07 Service subscription system Active CN113542217B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110632138.3A CN113542217B (en) 2021-06-07 2021-06-07 Service subscription system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110632138.3A CN113542217B (en) 2021-06-07 2021-06-07 Service subscription system

Publications (2)

Publication Number Publication Date
CN113542217A CN113542217A (en) 2021-10-22
CN113542217B true CN113542217B (en) 2023-05-26

Family

ID=78124605

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110632138.3A Active CN113542217B (en) 2021-06-07 2021-06-07 Service subscription system

Country Status (1)

Country Link
CN (1) CN113542217B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115002185A (en) * 2022-05-09 2022-09-02 北京城市网邻信息技术有限公司 Data processing method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112350978A (en) * 2019-08-08 2021-02-09 中移(苏州)软件技术有限公司 Service processing method, system, device and storage medium
CN112468574A (en) * 2020-11-25 2021-03-09 中国工商银行股份有限公司 Processing method, device and system for application service publishing and subscribing mechanism

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826987B (en) * 2010-04-27 2012-05-02 北京邮电大学 System and method for supporting mixed service based on integrated open network
CN102571550B (en) * 2010-12-30 2016-05-25 北京亿阳信通科技有限公司 A kind of general information exchange platform and method
CN104243611B (en) * 2014-09-30 2017-07-07 浪潮软件股份有限公司 A kind of messenger service middleware system based on distribution thought
CN107612955A (en) * 2016-07-12 2018-01-19 深圳市远行科技股份有限公司 Micro services provide method, apparatus and system
CN110191164B (en) * 2019-05-20 2022-03-22 中国工商银行股份有限公司 Distributed service access system and method
CN110708362B (en) * 2019-09-19 2021-02-05 贝壳找房(北京)科技有限公司 Call relation determining method and device, storage medium and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112350978A (en) * 2019-08-08 2021-02-09 中移(苏州)软件技术有限公司 Service processing method, system, device and storage medium
CN112468574A (en) * 2020-11-25 2021-03-09 中国工商银行股份有限公司 Processing method, device and system for application service publishing and subscribing mechanism

Also Published As

Publication number Publication date
CN113542217A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
US11409949B2 (en) Mobile device resource provisioning system and method
US8806506B2 (en) System and method for processing messages using a common interface platform supporting multiple pluggable data formats in a service-oriented pipeline architecture
US9852116B2 (en) System and method for processing messages using native data serialization/deserialization in a service-oriented pipeline architecture
US9854296B2 (en) Distributed system architecture for control of a set top box
US7665096B2 (en) DDS-assisted CORBA discovery
US8751587B2 (en) Real-time web applications
US20080282223A1 (en) Xml push and remote execution of a wireless applications
US9848065B2 (en) Request and response decoupling via pluggable transports in a service oriented pipeline architecture for a request response message exchange pattern
US8135785B2 (en) System and method for processing messages using pluggable protocol processors in a service-oriented pipeline architecture
US20060179125A1 (en) System and method for exposing a J2EE application server as a web service transaction participant
CN106713469B (en) Dynamic loading method, device and system for distributed container
US10346160B2 (en) Melding of mediation flow service component architecture (SCA) components
CN113542217B (en) Service subscription system
CN111064626B (en) Configuration updating method, device, server and readable storage medium
CN111770122B (en) Service communication proxy SCP registration method, service calling method and network equipment
CN109343970B (en) Application program-based operation method and device, electronic equipment and computer medium
CN113472687A (en) Data processing method and device
CN111581576A (en) Development processing method and device based on micro-service and storage medium
CN110262912B (en) Calling method and device for procedure call gRPC
CN100527717C (en) Information display in accordance with inserting family gateway and interactive method
CN117555528B (en) Method, device, equipment and medium for generating service code frame
CN112988170B (en) Application display method and device
US20130290255A1 (en) Dynamic replication of networked files
CN114610416A (en) Data processing method and device based on configuration parameters
CN112367328A (en) Method for entering Kubernetes cluster container based on websocket

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