Query service calling method and device

A service provider and query condition technology, applied in the field of data query, can solve problems such as service unavailability and poor user experience, and achieve the effects of avoiding poor user experience, reducing pressure, and improving operational efficiency

Pending Publication Date: 2020-03-24
SUNING CLOUD COMPUTING CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] In order to solve the problems of the prior art, the embodiment of the present invention provides a method and device for invoking the query service, so as to overcome the unavailability of related services in the prior art when the abnormal rate of the service party is too high and the service cannot be provided normally. use, causing poor user experience and other issues

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
  • Query service calling method and device
  • Query service calling method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only Some, but not all, embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0050] The method and device for invoking query services provided by the embodiments of the present invention are suitable for real-time query interfaces, especially for business scenarios where some data are highly popular and the business has certain fault tolerance for data update frequency, such as some master data Query interface. The method and device for invoki...

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 query service calling method and device. The method comprises the steps of judging whether a service party operates normally or not according to obtained service party information; if the service party runs normally, sending a query request to the service party, receiving a query result returned by the service, and caching a query condition and the query result in the query request into a cache in a key-value pair manner; and if the service party operates abnormally, obtaining a query result corresponding to the query condition in the cache according to the query condition in the query request. According to the invention, the query service mode is automatically switched according to the obtained service party information; the method does not depend on a service party any more, reduces the pressure on the service party caused by a large number of query requests during the abnormal period of the service party, and avoids the problems of poor user experience andthe like caused by unavailability of related services due to downtime of the service party or a large number of abnormal information of a service party interface.

Description

technical field [0001] The invention relates to the technical field of data query, in particular to a method and device for invoking a query service. Background technique [0002] In the actual software development process, although the current system servers are clustered and active and standby, and the data center has multi-active in the same city and multi-active in different places, the availability of the system has been greatly improved, but there will still be services in the actual application process. Abnormal applications, server downtime, network abnormalities, etc. cause the service to be unavailable. [0003] Currently, the two commonly used calling methods are as follows: [0004] The first type calls logic A1, which first queries the local cache, checks the real-time interface if the cache is not hit, and updates the cache when the interface returns normally. It has the following disadvantages: [0005] 1. Query the cache under normal circumstances. If the ...

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
IPC IPC(8): G06F9/54G06F16/2455G06F16/23
CPCG06F9/547G06F16/2455G06F16/24552G06F16/2365
Inventor 胥磊
Owner SUNING CLOUD COMPUTING 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