Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A data exchange system and method based on cache mechanism

A caching system and data exchange technology, applied in data exchange networks, digital transmission systems, transmission systems, etc., can solve the problems of no buffer space, easy exchange failure, and high interface business complexity, reducing interface granularity and improving exchange. Success rate and the effect of reducing business complexity

Active Publication Date: 2017-08-25
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] It can be seen that there is no buffer space between the upstream business system and the downstream system in the existing method, the data between the two must be transmitted at one time, and the business complexity of the interface is high, and the exchange is prone to failure

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
  • A data exchange system and method based on cache mechanism
  • A data exchange system and method based on cache mechanism
  • A data exchange system and method based on cache mechanism

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0064] This embodiment introduces a specific data exchange system based on a cache mechanism. Such as image 3 It is a schematic diagram of the structure of the data exchange system, and a cache pool and a data center are set between the upstream business system and the downstream system. Among them, in the cache pool, Redis cache is used as the main cache device, and cloud storage is used as the backup cache device; when the Redis cache is working normally, the upstream business system writes data packets into the Redis cache; when the Redis cache fails, the upstream The business system writes data packets to cloud storage.

[0065] application image 3 In the system shown, the process of exchanging data from the upstream business system to the downstream system includes the following parts:

[0066] first part:

[0067] The upstream business system calls the Upload interface to write data packets to the Redis cache, and the Upload interface is only responsible for writin...

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 present invention proposes a data exchange system and method based on a caching mechanism, wherein the system includes: an upstream business system, which is used to write a data message, the task type and the business primary key corresponding to the data message to the cache system, and write the business The state of the primary key is set to be processed; the cache system is used to save the data message and the corresponding task type and business primary key; and save the state of the task primary key; the data center is used to read from the cache system And save the data message corresponding to the business primary key in the pending state, assemble the data message into the data required by the downstream system, and synchronize the assembled data to the downstream system; it is also used to cache the business primary key in the cache system The state is changed to the processed state, and the data packet and the corresponding task type and business primary key stored in the cache system are deleted. The invention can set buffer space between the upstream business system and the downstream system, alleviates the high complexity of the business of the interface, and thus improves the exchange success rate.

Description

technical field [0001] The invention relates to the technical field of computer Internet, in particular to a data exchange system and method based on a cache mechanism. Background technique [0002] On the current e-commerce platform, when the upstream business system exchanges data with the downstream system, it generally adopts the method of calling the web service (Webservice) interface, such as figure 1 As shown, the processing of the Webservice interface includes three steps: [0003] First, parse XML messages with a large amount of data, where the size of the message is not fixed, ranging from a few K to hundreds of K; [0004] Second, process business data to assemble entity parameters, call external interfaces to process complex business logic, etc.; [0005] Third, database operation processing, inserting into the business database, and persisting data. [0006] It can be seen that there is no buffer space between the upstream business system and the downstream s...

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 Patents(China)
IPC IPC(8): H04L12/861G06F17/30G06F12/08
Inventor 陆祎辰
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products