Method for storing transaction message based on MongoDB database

A transaction message and database technology, applied in database indexing, database management systems, data processing applications, etc., can solve the problems of limited maximum history lookback period of transaction messages, limited configuration disk space, etc., to improve data retrieval efficiency and The effect of message checking accuracy and expanding the storage time range

Pending Publication Date: 2021-11-26
辽宁振兴银行股份有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the existing financial transaction systems generally store cross-system transaction messages in the local disk of the application server through the log mode, and because the local configuration disk space is limited, the longest historical lookback period that the transaction messages can be stored in the log is very limited , while application operation and maintenance engineers check cross-system transaction problems or provide transaction message verification data, most of them check by searching logs

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 storing transaction message based on MongoDB database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] see figure 1 , in the embodiment of the present invention, a kind of method based on MongoDB database storage transaction message is characterized in that, MongoDB database storage transaction message is made up of gateway layer and MongoDB;

[0025] The main function of the gateway layer is to receive the transaction request sent by the client, generate a unique serial number for the request, and temporarily store the request serial number in the context of the transaction request at the gateway layer, and the context environment obtains the request message and the response message , and then the gateway layer obtains the request message and the temporarily stored request serial number through the context of the transaction request and encapsulates it into the Java object ExchangeData;

[0026] The unique serial number generated by the gateway layer adopts the snowflake algorithm, and the specific generation method is as follows:

[0027] The snowflake algorithm is ma...

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 relates to the technical field of transaction message storage and reading, and discloses a method for storing a transaction message based on a MongoDB database, a gateway layer is mainly used for receiving a transaction request sent by a client, generating a unique serial number from the request, temporarily storing the serial number of the request to a context environment of the transaction request of the gateway layer, obtaining a request message and a response message by the context environment, and the storage mode of the gateway layer and the MongoDB adopts an asynchronous thread form. According to the method, the request message and the response message in the transaction message are converted into the MongoDB document format in an asynchronous mode, the MongoDB document format is stored in the MongoDB database through the asynchronous thread, the execution process and the execution efficiency of the original transaction are not affected in the storage process, the stored data volume can support more than a hundred million level record number through a sub-library sub-table mode, each request message and each response message can be quickly retrieved and associated through different retrieval conditions, so that the data retrieval efficiency and the message checking accuracy of problem backtracking are remarkably improved.

Description

technical field [0001] The invention relates to the technical field of transaction message storage and reading, in particular to a method for storing transaction messages based on a MongoDB database. Background technique [0002] The gateway is a barrier designed to protect internal services in the distributed system, and is the only entrance to the outside world of the distributed system. The gateway encapsulates the internal architecture of the system. All clients and consumers access microservices through a unified gateway. The gateway layer handles all non-business functions, so as to help developers of application services to provide external services conveniently, without having to consider issues such as security control, flow control, and audit logs. Realization of black and white lists, etc. [0003] Among them, the transaction message is in the transaction execution process of the distributed system. The interactive content between the client and the gateway inclu...

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): G06F16/22G06F16/25G06Q40/04
CPCG06F16/2228G06F16/252G06F16/258G06Q40/04
Inventor 陈典银张德权
Owner 辽宁振兴银行股份有限公司
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