Method for realizing service callback based on message queue and search engine

A message queue and search engine technology, applied in the field of service callback based on message queue and search engine

Active Publication Date: 2021-05-14
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF7 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical task of the present invention is to provide a method for implementing service callback based on message queue and search engine to solve how to ensure the high performance of callback service implementation and meet business needs the actual use of the problem

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for realizing service callback based on message queue and search engine
  • Method for realizing service callback based on message queue and search engine
  • Method for realizing service callback based on message queue and search engine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0064] attached figure 1 As shown, the method for implementing service callback based on message queue and search engine of the present invention is to combine API service and callback service to form a function package; the function package is used to describe the services required to complete a type of business collaboration , the smallest unit accessed by the user is the function; at the same time, the effective rules of the callback service are formulated. When the server initiates a callback, the correct callback API service is called back according to the parameter rules; the details are as follows:

[0065] S1. The client initiates a service function request;

[0066] S2. The business background decides to request the server to initiate a callback service according to the business function request;

[0067] S3. The server initiates a callback service request, and the request information enters the RabbitMq message queue;

[0068] S4. Request information to be persiste...

Embodiment 2

[0096] The method for implementing service callback based on message queue and search engine of the present invention is as follows:

[0097] (1) The client initiates an HTTP request to enter the unified service gateway;

[0098] (2) After passing the service gateway authority verification, a globally unique identification ID is generated; wherein, the ID is based on the link traceId and serves as the monitoring basis for the entire service link flow process;

[0099] (3) Request information to be persisted to the Elasticsearch search engine (at this time, the data status is persisted and not sent);

[0100] (4) Send the request ID and API URL to the RabbitMq message queue at the same time;

[0101] (5) By monitoring the confirmation callback interface of RabbitMq, update the status of the messages that have been received by the Broker (the data status is updated to have been sent and not processed);

[0102] (6) The consumer (the processing end of the specific request) pull...

Embodiment 3

[0107] An embodiment of the present invention further provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions are loaded by a processor to cause the processor to execute the service callback based on a message queue and a search engine in any embodiment of the present invention. method. Specifically, it is possible to provide a system or device equipped with a storage medium on which software program codes for implementing the functions of any of the above-described embodiments are stored, and which enables a computer (or CPU or MPU of the system or device) ) to read and execute the program code stored in the storage medium.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for realizing service callback based on a message queue and a search engine, belongs to the field of information technology service, and aims to solve the technical problem of how to ensure high performance of callback service realization and meet actual use of business requirements. According to the technical scheme, the method specifically comprises the following steps: a client initiates a service function request; the business background decides to request the server to initiate a callback service according to the business function request; the server initiates a callback service request, and request information enters a RabbitMq message queue; the request information is subjected to persistence and enters an Elasticsearch search engine; the Consumer executes a callback service according to the callback rule; and the server updates the data record according to the execution result of the callback service.

Description

technical field [0001] The invention belongs to the field of information technology services, and relates to technologies such as message middleware development, search engine, log processing, HTTP service invocation, data retrieval, etc., in particular to a method for implementing service callback based on message queues and search engines. Background technique [0002] Building a unified API service gateway to manage and use APIs throughout the life cycle is a very common method in the construction of information systems in recent years. Traditional API requests are end-to-end, request initiation-server response-return The resulting process cannot satisfy relatively complex business logic judgments. [0003] In the actual situation, one of the multiple terminals (PC terminal, mobile terminal, self-service terminal, etc.) initiates an event, and other clients also need to obtain the state of the entire process of the request. The current common practice is to use multi-ter...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/54G06F16/901G06F16/955
CPCG06F9/546G06F16/9024G06F16/955G06F2209/548G06F2209/547
Inventor 潘震
Owner SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products