CN116866413A - Education account number and basic data linkage processing method and system - Google Patents

Education account number and basic data linkage processing method and system Download PDF

Info

Publication number
CN116866413A
CN116866413A CN202310730109.XA CN202310730109A CN116866413A CN 116866413 A CN116866413 A CN 116866413A CN 202310730109 A CN202310730109 A CN 202310730109A CN 116866413 A CN116866413 A CN 116866413A
Authority
CN
China
Prior art keywords
event
service
basic data
micro
message
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
CN202310730109.XA
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.)
Inspur Software Co Ltd
Original Assignee
Inspur Software 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 Inspur Software Co Ltd filed Critical Inspur Software Co Ltd
Priority to CN202310730109.XA priority Critical patent/CN116866413A/en
Publication of CN116866413A publication Critical patent/CN116866413A/en
Pending legal-status Critical Current

Links

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/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1073Registration or de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • 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
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • 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
    • 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

Abstract

The invention discloses a linkage processing method and a system based on education accounts and basic data, which belong to the technical field of education basic platforms, and the technical problem to be solved by the invention is how to realize interconnection and intercommunication between the education accounts and the basic data, thereby improving the efficiency of asynchronous transmission and further improving the data value, and the adopted technical scheme is as follows: the method comprises the following steps: the education account number is communicated with the basic data to the micro service gateway based on the micro service architecture; triggering message pushing based on real-time release of events by a system event center: timely releasing an event to trigger message pushing through event monitoring capturing basic data change; when the basic data is changed, pushing the basic data change condition to the education account through RabbitMQ message middleware: if the network is not available, the message is temporarily stored in a queue; when the network is clear, the message is forwarded to the corresponding application program or application.

Description

Education account number and basic data linkage processing method and system
Technical Field
The invention relates to the technical field of education base platforms, in particular to a method and a system for linkage processing based on education account numbers and basic data.
Background
The education account number and the basic data serve as two independent services, smooth data linkage and interaction among a plurality of systems cannot be realized due to occlusion among the systems, the data of each system become independent data, and a plurality of valuable data can be pasted, copied and imported only by manual mode to realize data transmission, so that data interaction is seriously reduced.
Therefore, how to realize interconnection and interworking between the education account and the basic data, and improve the efficiency of asynchronous transmission, and further improve the data value is a technical problem to be solved urgently at present.
Disclosure of Invention
The invention aims to provide a linkage processing method and system based on education accounts and basic data, which solve the problem of how to realize interconnection and intercommunication between the education accounts and the basic data, improve the asynchronous transmission efficiency and further improve the data value.
The technical task of the invention is realized in the following way, and the method is based on the linkage processing method of the education account number and the basic data, and is specifically as follows:
the education account number and the basic data are connected to the micro service gateway based on the micro service architecture: according to the information of the education account number and the basic data, when each service of the spirngCloud micro-service architecture is started, a Eureka client on the service registers itself to a Eureka server, and other registered services are acquired through the Eureka server; when calling between services, integrated Ribbon is used by Feign, the Ribbon is used for finding server information of a service provider in a Eureka server, one server information is selected according to a random strategy, a Url address is spliced, a request is initiated, connection is established with a specified service, a request is constructed, the request is initiated, a response is acquired and an analysis response is analyzed;
triggering message pushing based on real-time release of events by a system event center: timely releasing an event to trigger message pushing through event monitoring capturing basic data change;
when the basic data is changed, pushing the basic data change condition to the education account through RabbitMQ message middleware:
if the network is not available, the message is temporarily stored in a queue; when the network is clear, the message is forwarded to the corresponding application program or application.
Preferably, the education account and the basic data are connected to the resident micro service gateway based on the micro service architecture, and the method is as follows:
the method comprises the steps that through building a spirngCloud micro-service structure related to an education account and basic data, relevant information of the education account and basic data service is registered to a Eureka server, and service information on a registration center of the spirngCloud micro-service structure is acquired between registered services; the registration center is used for information registration of the education account and information registration of the basic data service;
deploying a plurality of education accounts and basic data services, acquiring a corresponding service registry from a Eureka server through a Ribbon in a SpirngCloud micro-service architecture, and further acquiring the positions of the corresponding services;
the Ribbon selects a machine according to a designed load balancing algorithm, and Feigin of the SpirngCloud micro-service architecture constructs and sends a request aiming at the corresponding machine; wherein, the rib is a load balancing solution in the SpringCloud micro service architecture, and is used for providing a load balancing algorithm; feigin is a declarative Web service client, which helps developers to use HTTP request remote service more easily; and through defining the interface, using the annotation description service call details, the developer realizes the access to the remote service.
More preferably, the load balancing algorithm employs a round robin algorithm (round robin) that accesses each available service in turn.
Preferably, the system event center is configured to separate generation and processing of events, and based on a publish/subscribe model, send the events to the event center (also referred to as a message broker) so that multiple services asynchronously receive and process corresponding events;
event producers publish events to event centers, while event consumers receive events by subscribing to a particular type of event; the event center is used for routing the events to the corresponding consumers and ensuring that each consumer only receives the events of interest to the consumer; in addition, the event center is also used for event persistence, event filtering and event conversion.
Preferably, the rabitmq message middleware has the following functions:
(1) decoupling: decoupling between the application program and the system by using RabbitMQ message middleware, so that the stability and maintainability of the system are improved;
(2) asynchronous processing: asynchronous message processing is realized by using RabbitMQ message middleware, so that the processing efficiency and the response capability of the system are improved;
(3) reliability: the RabbitMQ message middleware has high reliability and availability, supports persistent messages, and does not lose messages even when faults occur;
(4) and (3) expansibility: the RabbitMQ message middleware supports horizontal expansion, so that more message proxy nodes can be easily added to process more messages;
(5) flexibility: the RabbitMQ message middleware meets different message passing requirements through different switch types and routing strategies, including point-to-point, publish-subscribe, and multiple modes of topic.
The system comprises a communication module, a triggering module and a synchronization module;
the communication module is used for communicating the education account number with the basic data resident micro-service gateway based on the spirngCloud micro-service architecture;
the triggering module is used for triggering message pushing based on real-time release of an event by the system event center;
the synchronization module is used for synchronizing and modifying the education account through the RabbitMQ message middleware when the basic data is changed.
Preferably, the spirngCloud micro-service architecture comprises a Eureka server, a Ribbon, a Feign and a system event center;
the Eureka server is a REST-based service registration and discovery component, and helps the spirngCloud micro-service architecture to realize service registration, discovery and load balancing;
ribbon is a client-side load balancer that helps the spirngCloud micro-service architecture to load balance among multiple service providers;
feign is a declarative Web Service client to help developers easily write HTTP-based API calls;
the system event center is used for separating the generation and processing of the event, and transmitting the event to the event center (also called a message agent) based on a publish/subscribe model, so that a plurality of services asynchronously receive and process the corresponding event; wherein event producers publish events to event centers and event consumers receive events by subscribing to a particular type of event; the event center is used for routing the events to the corresponding consumers and ensuring that each consumer only receives the events of interest to the consumer; in addition, the event center is also used for event persistence, event filtering and event conversion.
Preferably, the rabitmq message middleware has the following functions:
(1) decoupling: decoupling between the application program and the system by using RabbitMQ message middleware, so that the stability and maintainability of the system are improved;
(2) asynchronous processing: asynchronous message processing is realized by using RabbitMQ message middleware, so that the processing efficiency and the response capability of the system are improved;
(3) reliability: the RabbitMQ message middleware has high reliability and availability, supports persistent messages, and does not lose messages even when faults occur;
(4) and (3) expansibility: the RabbitMQ message middleware supports horizontal expansion, so that more message proxy nodes can be easily added to process more messages;
(5) flexibility: the RabbitMQ message middleware meets different message passing requirements through different switch types and routing strategies, including point-to-point, publish-subscribe, and multiple modes of topic.
An electronic device, comprising: a memory and at least one processor;
wherein the memory has a computer program stored thereon;
the at least one processor executes the computer program stored by the memory, so that the at least one processor executes the education account number and basic data linkage processing method.
A computer readable storage medium having a computer program stored therein, the computer program being executable by a processor to implement the educational account and base data based linkage processing method as described above.
The education account number and basic data linkage processing method and system provided by the invention have the following advantages:
according to information such as education account numbers and basic data, when each service is started, a Eureka client on the service registers itself to a Eureka server by using a SpirngCloud micro-service architecture, and other registered services can be known through the Eureka server; the specific call between services is realized by integrating a rib when the Feign is used, the rib removes server information of a service provider in a Eureka server, then selects one of the server information according to a random strategy, and initiates a request after splicing a Url address, and establishes connection with a specified service, constructs the request, initiates the request, acquires a response and analyzes the response;
secondly, the invention captures the change of basic data through event monitoring through a system event center, and issues events in time to trigger message pushing; in order to ensure the stability of data in the transmission process, rabbitMQ message middleware is introduced, the data cannot be easily lost in the transmission process, and the data is processed asynchronously, so that the concurrency of the data processing is improved, and the real-time linkage processing of the data is realized through the interconnection and intercommunication between the data and the high efficiency of asynchronous transmission;
thirdly, the method uses the spirngCloud micro-service architecture to connect the blocked systems, and realizes a series of interconnection and interworking operations such as connection establishment, construction request, solution initiation, response acquisition, response analysis and the like; through the system event center, the change of basic data is captured through event monitoring, the message pushing is triggered timely through event release, the RabbitMQ message middleware is added, the stability of the data in the transmission process is ensured, the real-time interaction of the data is realized through linkage processing, and the data value is greatly provided.
Fourth, the invention combines the education account number and the basic data based on the spirngCloud micro-service architecture, each service is registered on the Eureka server, and other registered services can be known through the Eureka server; the specific call among the services is realized by integrating the Ribbon when the Feign is used, the Ribbon is used for finding the server information of the service provider in the Eureka server, establishing connection with the specified service, constructing a request, initiating for solving, acquiring response and analyzing response; capturing the change of basic data through event monitoring through a system event center, and triggering message pushing through releasing an event in time; in the transmission process, the stability in the data transmission process is ensured by introducing RabbitMQ message middleware; realizing real-time linkage processing of data through interconnection and intercommunication among the data and efficient asynchronous transmission;
according to the invention, interconnection and intercommunication are realized between the education account and the basic data resident micro-service gateway based on the micro-service architecture, and according to the condition that the education account and the basic data are served to the resident Eureka server, load balancing is realized by integrating Ribbon when Feign is used, so that information interconnection and intercommunication between the education account and the basic data are realized;
triggering message pushing based on real-time release of events by a system event center, acquiring change of basic data according to the acquisition of events by a monitor, and timely pushing by the triggering message;
according to the invention, the education account number is synchronously modified through the message middleware when the basic data is changed, and the concurrency and stability of data processing are improved according to the introduction of the RabbitMQ message middleware, so that linkage processing is realized.
Drawings
The invention is further described below with reference to the accompanying drawings.
FIG. 1 is a schematic diagram of a linkage processing method based on education accounts and basic data;
fig. 2 is a schematic diagram of a message middleware information transfer based on a rabitmq.
Detailed Description
The education account number and basic data linkage processing method and system based on the education account number and the basic data linkage processing method and system according to the present invention are described in detail below with reference to the accompanying drawings and the specific embodiments.
Example 1:
as shown in fig. 1, the present embodiment provides a method for processing education account and basic data in a linkage manner, which specifically includes:
s1, communicating an education account with basic data to a micro service gateway based on a micro service architecture: according to the information of the education account number and the basic data, when each service of the spirngCloud micro-service architecture is started, a Eureka client on the service registers itself to a Eureka server, and other registered services are acquired through the Eureka server; when calling between services, integrated Ribbon is used by Feign, the Ribbon is used for finding server information of a service provider in a Eureka server, one server information is selected according to a random strategy, a Url address is spliced, a request is initiated, connection is established with a specified service, a request is constructed, the request is initiated, a response is acquired and an analysis response is analyzed;
s2, triggering message pushing based on real-time release of events by a system event center: timely releasing an event to trigger message pushing through event monitoring capturing basic data change;
s3, as shown in the attached figure 2, when the basic data is changed, pushing the basic data change condition to the education account through the RabbitMQ message middleware:
if the network is not available, the message is temporarily stored in a queue; when the network is clear, the message is forwarded to the corresponding application program or application.
In step S1 of the present embodiment, the communication between the education account and the basic data in the hosting micro-service gateway is implemented based on the micro-service architecture, specifically as follows:
s101, registering relevant information of an education account and basic data service on a Eureka server by building a spirngCloud micro-service structure related to the education account and basic data, and acquiring service information on a registration center of the spirngCloud micro-service structure between registered services; the registration center is used for information registration of the education account and information registration of the basic data service;
s102, deploying a plurality of education accounts and basic data services, acquiring a corresponding service registry from a Eureka server through a Ribbon in a SpirngCloud micro-service architecture, and further acquiring the positions of the corresponding services;
s103, a Ribbon selects a machine according to a designed load balancing algorithm, and Feigin of the SpirngCloud micro-service architecture constructs and sends a request aiming at the corresponding machine; wherein, the rib is a load balancing solution in the SpringCloud micro service architecture, and is used for providing a load balancing algorithm; feigin is a declarative Web service client, which helps developers to use HTTP request remote service more easily; and through defining the interface, using the annotation description service call details, the developer realizes the access to the remote service.
The load balancing algorithm in this embodiment employs a round robin algorithm (round robin), i.e. each available service is accessed in turn.
The system event center in this embodiment: with respect to the Spring Cloud system event center, it is a component in the Spring Cloud framework that handles various events and messages in a distributed system, commonly referred to as Spring Cloud Stream. By using Spring Cloud Stream, a developer can easily build and manage distributed applications while also enabling unified handling of different messaging mechanisms, such as Kafka, rabbitMQ, etc. The assembly also provides a wide range of pluggable capability and can be conveniently integrated with other Spring Cloud assemblies.
The system event center is used for separating the generation and processing of the event, and transmitting the event to the event center (also called a message agent) based on a publish/subscribe model, so that a plurality of services asynchronously receive and process the corresponding event;
event producers publish events to event centers, while event consumers receive events by subscribing to a particular type of event; the event center is used for routing the events to the corresponding consumers and ensuring that each consumer only receives the events of interest to the consumer; in addition, the event center is also used for event persistence, event filtering and event conversion.
The system event center can effectively decouple the dependency relationship among the services, and reduce the coupling degree and complexity of the system. It also increases the scalability and flexibility of the system, since adding or deleting one service does not require modification of other services, only requiring updating its subscription relationships accordingly. Meanwhile, the system event center can also improve the reliability and the restorability of the system, because even if one service fails, the normal operation of other services can not be influenced.
The RabbitMQ in this embodiment is a reliable, high-performance open source message middleware that can pass messages between distributed systems and achieve decoupling. In large-scale distributed systems, rabbitMQ is widely used to implement asynchronous messaging, as well as communication between individual services in a micro-service architecture.
The RabbitMQ message middleware has the following functions:
(1) decoupling: decoupling between the application program and the system by using RabbitMQ message middleware, so that the stability and maintainability of the system are improved;
(2) asynchronous processing: asynchronous message processing is realized by using RabbitMQ message middleware, so that the processing efficiency and the response capability of the system are improved;
(3) reliability: the RabbitMQ message middleware has high reliability and availability, supports persistent messages, and does not lose messages even when faults occur;
(4) and (3) expansibility: the RabbitMQ message middleware supports horizontal expansion, so that more message proxy nodes can be easily added to process more messages;
(5) flexibility: the RabbitMQ message middleware meets different message passing requirements through different switch types and routing strategies, including point-to-point, publish-subscribe, and multiple modes of topic.
RabbitMQ is a powerful, high-performance and reliable message middleware, is widely applied to various distributed systems, and is an important tool for realizing asynchronous message transmission and decoupling.
The embodiment mainly depends on a SpringCloud micro-service architecture, and is an architecture style based on micro-services, and is mainly realized by splitting a large application program into a series of smaller and autonomous services. Each service can be independently developed, deployed and expanded, and simultaneously communicate and cooperate with other services through means such as network invocation. The SpringCloud micro-service architecture serves as a micro-service framework, providing various components and tools to help developers build, manage and deploy micro-service architecture easily.
Example 2:
the embodiment provides a linkage processing system based on an education account and basic data, which comprises a communication module, a triggering module and a synchronization module;
the communication module is used for communicating the education account number with the basic data resident micro-service gateway based on the spirngCloud micro-service architecture;
the triggering module is used for triggering message pushing based on real-time release of an event by the system event center;
the synchronization module is used for synchronizing and modifying the education account through the RabbitMQ message middleware when the basic data is changed.
The spirngCloud micro-service architecture in the embodiment comprises a Eureka server, a Ribbon, a Feign and a system event center;
the Eureka server is a REST-based service registration and discovery component, and helps the spirngCloud micro-service architecture to realize service registration, discovery and load balancing;
ribbon is a client-side load balancer that helps the spirngCloud micro-service architecture to load balance among multiple service providers;
feign is a declarative Web Service client to help developers easily write HTTP-based API calls;
the system event center is used for separating the generation and processing of the event, and transmitting the event to the event center (also called a message agent) based on a publish/subscribe model, so that a plurality of services asynchronously receive and process the corresponding event; wherein event producers publish events to event centers and event consumers receive events by subscribing to a particular type of event; the event center is used for routing the events to the corresponding consumers and ensuring that each consumer only receives the events of interest to the consumer; in addition, the event center is also used for event persistence, event filtering and event conversion.
The rabitmq message middleware in this embodiment has the following functions:
(1) decoupling: decoupling between the application program and the system by using RabbitMQ message middleware, so that the stability and maintainability of the system are improved;
(2) asynchronous processing: asynchronous message processing is realized by using RabbitMQ message middleware, so that the processing efficiency and the response capability of the system are improved;
(3) reliability: the RabbitMQ message middleware has high reliability and availability, supports persistent messages, and does not lose messages even when faults occur;
(4) and (3) expansibility: the RabbitMQ message middleware supports horizontal expansion, so that more message proxy nodes can be easily added to process more messages;
(5) flexibility: the RabbitMQ message middleware meets different message passing requirements through different switch types and routing strategies, including point-to-point, publish-subscribe, and multiple modes of topic.
Example 3:
the embodiment of the invention also provides electronic equipment, which comprises: a memory and a processor;
wherein the memory stores computer-executable instructions;
and the processor executes the computer-executed instructions stored in the memory, so that the processor executes the education account number and basic data linkage processing method according to any embodiment of the invention.
The processor may be a Central Processing Unit (CPU), but may also be other general purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory may be used to store computer programs and/or modules, and the processor implements various functions of the electronic device by running or executing the computer programs and/or modules stored in the memory, and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the terminal, etc. The memory may also include high-speed random access memory, but may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, memory card only (SMC), secure Digital (SD) card, flash memory card, at least one disk storage period, flash memory device, or other volatile solid state memory device.
Example 4:
the embodiment of the invention also provides a computer readable storage medium, wherein a plurality of instructions are stored, and the instructions are loaded by a processor, so that the processor executes the education account number and basic data linkage processing method in any embodiment of the invention. Specifically, a system or apparatus provided with a storage medium on which a software program code realizing the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the system or apparatus may be caused to read out and execute the program code stored in the storage medium.
In this case, the program code itself read from the storage medium may realize the functions of any of the above-described embodiments, and thus the program code and the storage medium storing the program code form part of the present invention.
Examples of storage media for providing program code include floppy disks, hard disks, magneto-optical disks, optical disks (e.g., CD-ROMs, CD-R, CD-RWs, DVD-ROMs, DVD-RYM, DVD-RWs, DVD+RWs), magnetic tapes, nonvolatile memory cards, and ROMs. Alternatively, the program code may be downloaded from a server computer by a communication network.
Further, it should be apparent that the functions of any of the above-described embodiments may be implemented not only by executing the program code read out by the computer, but also by causing an operating system or the like operating on the computer to perform part or all of the actual operations based on the instructions of the program code.
Further, it is understood that the program code read out by the storage medium is written into a memory provided in an expansion board inserted into a computer or into a memory provided in an expansion unit connected to the computer, and then a CPU or the like mounted on the expansion board or the expansion unit is caused to perform part and all of actual operations based on instructions of the program code, thereby realizing the functions of any of the above embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (10)

1. The linkage processing method based on the education account number and the basic data is characterized by comprising the following steps:
the education account number and the basic data are connected to the micro service gateway based on the micro service architecture: according to the information of the education account number and the basic data, when each service of the spirngCloud micro-service architecture is started, a Eureka client on the service registers itself to a Eureka server, and other registered services are acquired through the Eureka server; when calling between services, integrated Ribbon is used by Feign, the Ribbon is used for finding server information of a service provider in a Eureka server, one server information is selected according to a random strategy, a Url address is spliced, a request is initiated, connection is established with a specified service, a request is constructed, the request is initiated, a response is acquired and an analysis response is analyzed;
triggering message pushing based on real-time release of events by a system event center: timely releasing an event to trigger message pushing through event monitoring capturing basic data change;
when the basic data is changed, pushing the basic data change condition to the education account through RabbitMQ message middleware:
if the network is not available, the message is temporarily stored in a queue; when the network is clear, the message is forwarded to the corresponding application program or application.
2. The method for processing the education account and the basic data according to claim 1, wherein the method for communicating the education account and the basic data to the micro-service gateway based on the micro-service architecture is specifically as follows:
the method comprises the steps that through building a spirngCloud micro-service structure related to an education account and basic data, relevant information of the education account and basic data service is registered to a Eureka server, and service information on a registration center of the spirngCloud micro-service structure is acquired between registered services; the registration center is used for information registration of the education account and information registration of the basic data service;
deploying a plurality of education accounts and basic data services, acquiring a corresponding service registry from a Eureka server through a Ribbon in a SpirngCloud micro-service architecture, and further acquiring the positions of the corresponding services;
the Ribbon selects a machine according to a designed load balancing algorithm, and Feigin of the SpirngCloud micro-service architecture constructs and sends a request aiming at the corresponding machine; wherein, the rib is a load balancing solution in the SpringCloud micro service architecture, and is used for providing a load balancing algorithm; feigin is a declarative Web service client that helps developers to request remote services using HTTP; and through defining the interface, using the annotation description service call details, the developer realizes the access to the remote service.
3. The method for processing the education account number and the basic data according to claim 2, wherein the load balancing algorithm adopts a polling algorithm, namely, each available service is accessed in turn.
4. The method according to claim 1, wherein the system event center is configured to separate generation and processing of events, and based on a publish/subscribe model, send the events to the event center, so that a plurality of services asynchronously receive and process the corresponding events;
event producers publish events to event centers, while event consumers receive events by subscribing to a particular type of event; the event center is used for routing the events to the corresponding consumers and ensuring that each consumer only receives the events of interest to the consumer; in addition, the event center is also used for event persistence, event filtering and event conversion.
5. The education account number and basic data linkage processing method according to claim 1, wherein the RabbitMQ message middleware has the following functions:
(1) decoupling: decoupling between the application and the system using a rabitmq message middleware;
(2) asynchronous processing: asynchronous message processing is achieved by using RabbitMQ message middleware;
(3) reliability: the RabbitMQ message middleware has high reliability and availability, supports persistent messages, and does not lose messages even when faults occur;
(4) and (3) expansibility: the RabbitMQ message middleware supports horizontal expansion, and adds more message proxy nodes to process more messages;
(5) flexibility: the RabbitMQ message middleware meets different message passing requirements through different switch types and routing strategies, including point-to-point, publish-subscribe, and multiple modes of topic.
6. The system is characterized by comprising a communication module, a triggering module and a synchronization module;
the communication module is used for communicating the education account number with the basic data resident micro-service gateway based on the spirngCloud micro-service architecture;
the triggering module is used for triggering message pushing based on real-time release of an event by the system event center;
the synchronization module is used for synchronizing and modifying the education account through the RabbitMQ message middleware when the basic data is changed.
7. The education account number and basic data linkage processing system according to claim 6, wherein the SpirngCloud micro service architecture comprises a Eureka server, a rib, a Feign and a system event center;
the Eureka server is a REST-based service registration and discovery component, and helps the spirngCloud micro-service architecture to realize service registration, discovery and load balancing;
ribbon is a client-side load balancer that helps the spirngCloud micro-service architecture to load balance among multiple service providers;
feign is a declarative Web Service client to help developers easily write HTTP-based API calls;
the system event center is used for separating the generation and the processing of the event, and transmitting the event to the event center based on the publish/subscribe model so that a plurality of services asynchronously receive and process the corresponding event; wherein event producers publish events to event centers and event consumers receive events by subscribing to a particular type of event; the event center is used for routing the events to the corresponding consumers and ensuring that each consumer only receives the events of interest to the consumer; in addition, the event center is also used for event persistence, event filtering and event conversion.
8. The educational account and base data linkage processing system of claim 6, wherein the rabhitmq message middleware has the following functions:
(1) decoupling: decoupling between the application and the system using a rabitmq message middleware;
(2) asynchronous processing: asynchronous message processing is achieved by using RabbitMQ message middleware;
(3) reliability: the RabbitMQ message middleware has high reliability and availability, supports persistent messages, and does not lose messages even when faults occur;
(4) and (3) expansibility: the RabbitMQ message middleware supports horizontal expansion, and adds more message proxy nodes to process more messages;
(5) flexibility: the RabbitMQ message middleware meets different message passing requirements through different switch types and routing strategies, including point-to-point, publish-subscribe, and multiple modes of topic.
9. An electronic device, comprising: a memory and at least one processor;
wherein the memory has a computer program stored thereon;
the at least one processor executing the computer program stored in the memory, causes the at least one processor to perform the educational account number and base data based linkage processing method as recited in any one of claims 1 to 5.
10. A computer-readable storage medium having stored therein a computer program executable by a processor to implement the educational account and base data based linkage processing method according to any one of claims 1 to 5.
CN202310730109.XA 2023-06-20 2023-06-20 Education account number and basic data linkage processing method and system Pending CN116866413A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310730109.XA CN116866413A (en) 2023-06-20 2023-06-20 Education account number and basic data linkage processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310730109.XA CN116866413A (en) 2023-06-20 2023-06-20 Education account number and basic data linkage processing method and system

Publications (1)

Publication Number Publication Date
CN116866413A true CN116866413A (en) 2023-10-10

Family

ID=88218196

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310730109.XA Pending CN116866413A (en) 2023-06-20 2023-06-20 Education account number and basic data linkage processing method and system

Country Status (1)

Country Link
CN (1) CN116866413A (en)

Similar Documents

Publication Publication Date Title
CN109639572B (en) Route management method and device and micro-service system
CN109618005B (en) Method for calling server and proxy server
CN102868736B (en) A kind of cloud computing Monitoring framework design basis ground motion method and cloud computing treatment facility
CN107590072B (en) Application development and test method and device
CN110262902B (en) Information processing method and system, medium, and computing device
US10091086B2 (en) System and method for providing an application programming interface manager for use with a service bus runtime
EP3138003B1 (en) System and method for supporting a bypass-domain model and a proxy model and updating service information for across-domain messaging in a transactional middleware machine environment
US20110321011A1 (en) Application server with a protocol-neutral programming model for developing telecommunications-based applications
CN112711635B (en) Method for cross-regional data consistency of distributed Internet of things equipment and service cluster
CN109639782A (en) Message sends platform, method
CN112783672B (en) Remote procedure call processing method and system
US8255546B2 (en) Peer name resolution protocol simple application program interface
CN112486707A (en) Redis-based message asynchronous consumption method and device
CN116204239A (en) Service processing method, device and computer readable storage medium
US10402307B2 (en) System and method for providing runtime tracing for a web-based client accessing a transactional middleware platform using an extension interface
CN116866413A (en) Education account number and basic data linkage processing method and system
Dattatreya Nadig Testing resilience of envoy service proxy with microservices
CN113055461B (en) ZooKeeper-based unmanned cluster distributed cooperative command control method
CN112511595B (en) Message pushing method and message service system
KR20040095653A (en) A method and apparatus for providing a client-side local proxy object for a distributed object-oriented system
CN114500660B (en) Request processing method, device, equipment and computer readable storage medium
Padovitz et al. Agent communication using publish-subscribe genre: architecture, mobility, scalability and applications
CN116016679A (en) Cloud primary service communication method, device, equipment and storage medium
CN117971516A (en) Access method, system, equipment and storage medium of message queue
CN115914330A (en) NIO asynchronous thread model-based heterogeneous application-to-application communication method

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