CN109670952A - One kind, which is withheld, pays transaction platform - Google Patents

One kind, which is withheld, pays transaction platform Download PDF

Info

Publication number
CN109670952A
CN109670952A CN201811519741.5A CN201811519741A CN109670952A CN 109670952 A CN109670952 A CN 109670952A CN 201811519741 A CN201811519741 A CN 201811519741A CN 109670952 A CN109670952 A CN 109670952A
Authority
CN
China
Prior art keywords
queue
transaction
data
batch
withhold
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.)
Granted
Application number
CN201811519741.5A
Other languages
Chinese (zh)
Other versions
CN109670952B (en
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.)
China Foreign Economic And Trade Trust Co Ltd
Original Assignee
China Foreign Economic And Trade Trust 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 China Foreign Economic And Trade Trust Co Ltd filed Critical China Foreign Economic And Trade Trust Co Ltd
Priority to CN201811519741.5A priority Critical patent/CN109670952B/en
Publication of CN109670952A publication Critical patent/CN109670952A/en
Application granted granted Critical
Publication of CN109670952B publication Critical patent/CN109670952B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Telephonic Communication Services (AREA)
  • Communication Control (AREA)
  • Debugging And Monitoring (AREA)

Abstract

It is withheld the present embodiments relate to one kind and pays transaction platform, pair transaction platform of withholding includes interface routine, batch queue, transaction consumption queue, single queue, non-single queue and channel gateway readjustment oracle listener.Provided by the present application withhold pays transaction platform, can simplify the deployment of platform, and improve the efficiency withheld and pay transaction.

Description

One kind, which is withheld, pays transaction platform
Technical field
This application involves network trading technical fields, in particular to one kind, which is withheld, pays transaction platform.
Background technique
With the continuous development paid on line, miscellaneous channel of disbursement is emerged.In order to be directed to these different branch It pays channel and unified administrative mechanism is provided, withhold a pair transaction platform and come into being.
It is paid in transaction platform in current withholding, develops basic framework usually using springmvc (spring model Model-view-controller under view controller, spring frame), and it is encapsulated.However, the frame In use, development procedure is cumbersome, and development efficiency is low, and needs to install exclusive middleware in deployment.In addition, existing Some, which is withheld, pays transaction platform and other system interaction interface modes as Webservice (Page Service), and WebService is used ((eXtensible Markup Language, extensible markup language) encapsulates data to XML, will cause so a large amount of Data will be transmitted in a network.
Therefore a kind of more efficient, more succinct withholding is needed to pay a transaction platform at present.
Summary of the invention
The one kind that is designed to provide of the application withholds a pair transaction platform, can simplify the deployment of platform, and improve and withhold Pay the efficiency of transaction.
To achieve the above object, the application provides one kind and withholds a pair transaction platform, and described withhold pays transaction platform including connecing Mouth program, batch queue, transaction consumption queue, single queue, non-single queue and channel gateway adjust back oracle listener, In:
The interface routine, the data message sent for receiving operation system, and verify the format of the data message; If the data message verifies successfully, caching and database is written into the data message, and the data message is corresponding In batch ID (IDentity, mark) described batch queue of write-in;
The batch queue, for obtaining the corresponding batch transaction data of the batch ID, and from the batch number of deals After unpacking out Transaction Information and entry information in, by the Transaction Information and entry information write-in caches and database, And the entry information is written in the transaction consumption queue;
Queue is consumed in the transaction, for obtaining next pending entry information, and judges the pending item Mesh information is according to batch processed also according to single processing;
The single queue, for store according to single handle entry information, and by it is described according to single handle item Mesh information is sent to channel gateway;
The non-single queue, for obtaining queuing data in batches from transaction consumption queue, and according to channel batch The queuing data Batch sending that amount interface will acquire is to the channel gateway;
The channel gateway adjusts back oracle listener, and the callback state for being returned according to channel judges currently performed item Whether mesh information has next executive plan, if having, obtains and executes next executive plan.
Further, the interface routine is also used to after the data message verifies failure, the data message is write Enter database, and returns to failure result to the operation system.
Further, the non-single queue reads the transaction consumption queue when obtaining queuing data in batches in advance Queue depth, and the quantity that queuing data is obtained in a batch is determined based on the queue depth, and according to determining The quantity from it is described transaction consumption queue in obtain present lot queuing data.
Further, if the data that the non-single queue is also used in the same interface data have necessary Batch sending When, the data of the necessary Batch sending are sent to the channel gateway in same batch.
Further, if the data that the non-single queue is also used in same interface data not have necessary Batch sending When, the same interface data is transferred to the single queue and is handled.
Further, the transaction consumption queue is also used to obtain the routing iinformation of the pending entry information, and It will be in routing iinformation write-in caching and database.
Further, the batch queue is after completing to the processing of batch transaction data, by the batch number of deals According to being removed from the cache.
Further, pair transaction platform of withholding further includes business callback queues and cache cleaner queue;
Correspondingly, channel gateway readjustment oracle listener be also used to not have in currently performed entry information it is next When executive plan, attempt to obtain next pending entry information;Next pending entry information if it does not exist, will work as Preceding transaction data is stored in the business callback queues and the data cached cleaning queue.
Further, the channel gateway readjustment oracle listener is also used to next pending entry information if it exists, The corresponding routing of next pending entry information is called, and caching and database is written into route results, to obtain The executive plan needed to be implemented.
Further, it is paid in transaction platform in described withhold, Development Framework uses spring boot (Spring lead-frame Frame), interface mode is Restful (Representational-State-Transfer ful represents state conversion class), Deployment framework use spring cloud (Spring cloud frame), queue using rabbitmq (rabbit massage queue, Rabbit message queue) cluster, interacted with channel frequency restriction scheme be redis (REmote DIctionary Server, remotely Dictionary server) distributed lock.
Therefore correspondence can be generated for the data message that operation system is sent in technical solution provided by the present application Entry information, and by entry information deposit in transaction consumption queue in.It, can be with for the entry information in transaction consumption queue Judgement is to carry out single processing to be handled also according to batch, thereby executing different processing modes.It is returned by channel gateway Adjust oracle listener, it is ensured that subsequent executive plan or next entry information can be performed normally.In addition, the application Transaction platform is paid in withholding for providing, and Development Framework uses spring boot, and interface mode is changed to Restful, disposes simple side Just, development efficiency is high.Deployment framework uses spring cloud, is managed collectively, maintains easily to service and configuration file. Queue is changed to using rabbitmq cluster, and such queue is more efficient more stable.Frequency restriction scheme is interacted with channel is changed to redis Distributed lock simplifies processing logic.Therefore, technical solution provided by the present application, can simplify the deployment of platform, and improve generation The efficiency of receipt and payment transaction.
Detailed description of the invention
Fig. 1 is that the structural schematic diagram for paying transaction platform is withheld in the embodiment of the present application.
Specific embodiment
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality The attached drawing in mode is applied, the technical solution in the application embodiment is clearly and completely described, it is clear that described Embodiment is only a part of embodiment of the application, rather than whole embodiments.Based on the embodiment party in the application Formula, all other embodiment obtained by those of ordinary skill in the art without making creative efforts, is all answered When the range for belonging to the application protection.
Referring to Fig. 1, the application, which provides one kind, withholds a pair transaction platform, pair transaction platform of withholding includes interface journey Sequence, batch queue, transaction consumption queue, single queue, non-single queue and channel gateway adjust back oracle listener, in which:
The interface routine, the data message sent for receiving operation system, and verify the format of the data message; If the data message verifies successfully, caching and database is written into the data message, and the data message is corresponding Batch ID is written in the batch queue;
The batch queue, for obtaining the corresponding batch transaction data of the batch ID, and from the batch number of deals After unpacking out Transaction Information and entry information in, by the Transaction Information and entry information write-in caches and database, And the entry information is written in the transaction consumption queue;
Queue is consumed in the transaction, for obtaining next pending entry information, and judges the pending item Mesh information is according to batch processed also according to single processing;
The single queue, for store according to single handle entry information, and by it is described according to single handle item Mesh information is sent to channel gateway;
The non-single queue, for obtaining queuing data in batches from transaction consumption queue, and according to channel batch The queuing data Batch sending that amount interface will acquire is to the channel gateway;
The channel gateway adjusts back oracle listener, and the callback state for being returned according to channel judges currently performed item Whether mesh information has next executive plan, if having, obtains and executes next executive plan.
Wherein, the data message that the operation system is sent, which for example can be to withhold, pays message, inquiry into balance message, account Detail query message etc..Database can back up all message checkings as a result, so as to the maintenance and error correction for the later period.
In the present embodiment, the interface routine is also used to after the data message verifies failure, by the data Database is written in message, and returns to failure result to the operation system.
In the present embodiment, the non-single queue reads the transaction in advance and disappears when obtaining queuing data in batches Take the queue depth of queue, and determines the quantity for obtaining queuing data in a batch based on the queue depth, and according to The quantity determined obtains the queuing data of present lot from the transaction consumption queue.
In the present embodiment, if the non-single queue is also used to have necessary Batch sending in the same interface data When data, the data of the necessary Batch sending are sent to the channel gateway in same batch.
In the present embodiment, if the non-single queue is also used to not have necessary Batch sending in same interface data When data, the same interface data is transferred to the single queue and is handled.
In the present embodiment, the transaction consumption queue is also used to obtain the routing letter of the pending entry information Breath, and will be in routing iinformation write-in caching and database.
In the present embodiment, the batch queue is after completing to the processing of batch transaction data, by the batch Transaction data is removed from the cache.
In the present embodiment, pair transaction platform of withholding further includes business callback queues and cache cleaner queue;
Correspondingly, channel gateway readjustment oracle listener be also used to not have in currently performed entry information it is next When executive plan, attempt to obtain next pending entry information;Next pending entry information if it does not exist, will work as Preceding transaction data is stored in the business callback queues and the data cached cleaning queue.
In the present embodiment, the channel gateway readjustment oracle listener is also used to next pending entry if it exists Information calls the corresponding routing of next pending entry information, and caching and database is written in route results, with The executive plan needed to be implemented.
In the present embodiment, it is paid in transaction platform in described withhold, Development Framework uses spring boot, interface side Formula is changed to Restful, and deployment framework uses spring cloud, and queue uses rabbitmq cluster, and frequency limit is interacted with channel Making mechanism is changed to redis distributed lock.
Therefore correspondence can be generated for the data message that operation system is sent in technical solution provided by the present application Entry information, and by entry information deposit in transaction consumption queue in.It, can be with for the entry information in transaction consumption queue Judgement is to carry out single processing to be handled also according to batch, thereby executing different processing modes.It is returned by channel gateway Adjust oracle listener, it is ensured that subsequent executive plan or next entry information can be performed normally.In addition, the application Transaction platform is paid in withholding for providing, and Development Framework uses spring boot, and interface mode is changed to Restful, disposes simple side Just, development efficiency is high.Deployment framework uses spring cloud, is managed collectively, maintains easily to service and configuration file. Queue is changed to using rabbitmq cluster, and such queue is more efficient more stable.Frequency restriction scheme is interacted with channel is changed to redis Distributed lock simplifies processing logic.Therefore, technical solution provided by the present application, can simplify the deployment of platform, and improve generation The efficiency of receipt and payment transaction.
Those skilled in the art are supplied to the purpose described to the description of the various embodiments of the application above.It is not It is intended to exhaustion or be not intended to and limit the invention to single disclosed embodiment.As described above, the application's is various Substitution and variation will be apparent for above-mentioned technology one of ordinary skill in the art.Therefore, although specifically begging for Some alternative embodiments are discussed, but other embodiment will be apparent or those skilled in the art are opposite It is easy to obtain.The application is intended to include all substitutions of the invention discussed herein, modification and variation, and falls in Other embodiment in the spirit and scope of above-mentioned application.

Claims (10)

1. one kind withhold pay a transaction platform, which is characterized in that it is described withhold pay a transaction platform include interface routine, batch queue, Transaction consumption queue, single queue, non-single queue and channel gateway adjust back oracle listener, in which:
The interface routine, the data message sent for receiving operation system, and verify the format of the data message;If institute It states data message to verify successfully, caching and database is written into the data message, and by the corresponding batch of the data message ID is written in the batch queue;
The batch queue, for obtaining the corresponding batch transaction data of the batch ID, and from the batch transaction data After unpacking out Transaction Information and entry information, by the Transaction Information and entry information write-in caching and database, and will The entry information is written in the transaction consumption queue;
Queue is consumed in the transaction, for obtaining next pending entry information, and judges the pending entry letter Breath is according to batch processed also according to single processing;
The single queue is believed for storing the entry information handled according to single, and by the entry handled according to single Breath is sent to channel gateway;
The non-single queue connects for obtaining queuing data in batches from transaction consumption queue, and according to channel batch The queuing data Batch sending that mouth will acquire is to the channel gateway;
The channel gateway adjusts back oracle listener, and the callback state for being returned according to channel judges currently performed entry letter Whether breath has next executive plan, if having, obtains and executes next executive plan.
2. according to claim 1 withhold pays transaction platform, which is characterized in that the interface routine is also used to described After data message verification failure, database is written into the data message, and return to failure result to the operation system.
3. according to claim 1 withhold pays transaction platform in batches, which is characterized in that the non-single queue is obtaining team When column data, the queue depth of the transaction consumption queue is read in advance, and is determined based on the queue depth in a batch The middle quantity for obtaining queuing data, and present lot is obtained from the transaction consumption queue according to the quantity determined Queuing data.
4. it is according to claim 1 withhold pay a transaction platform, which is characterized in that if the non-single queue be also used to it is same When there are the data of necessary Batch sending in a interface data, the data of the necessary Batch sending are sent in same batch The channel gateway.
5. according to claim 1 or 4 withhold pays transaction platform, which is characterized in that if the non-single queue is also used to When there is no the data of necessary Batch sending in same interface data, the same interface data is transferred to the single queue and is carried out Processing.
6. according to claim 1 withhold pays transaction platform, which is characterized in that the transaction consumption queue is also used to obtain The routing iinformation of the pending entry information, and will be in routing iinformation write-in caching and database.
7. according to claim 1 withhold pays transaction platform, which is characterized in that the batch queue is completed to hand over batch After the processing of easy data, the batch transaction data is removed from the cache.
8. according to claim 1 withhold pays transaction platform, which is characterized in that pair transaction platform of withholding further includes industry Business callback queues and cache cleaner queue;
Correspondingly, the channel gateway readjustment oracle listener is also used to not have next execution in currently performed entry information When plan, attempt to obtain next pending entry information;Next pending entry information if it does not exist, will be current Transaction data is stored in the business callback queues and the data cached cleaning queue.
9. according to claim 8 withhold pays transaction platform, which is characterized in that the channel gateway readjustment oracle listener is also For next pending entry information if it exists, the corresponding routing of next pending entry information is called, and Caching and database is written into route results, with the executive plan needed to be implemented.
10. according to claim 1 withhold pays transaction platform, which is characterized in that pay in transaction platform, open in described withhold It sends out frame and uses spring boot, interface mode Restful, deployment framework uses spring cloud, and queue uses Rabbitmq cluster, it is redis distributed lock that frequency restriction scheme is interacted with channel.
CN201811519741.5A 2018-12-12 2018-12-12 Collecting and paying transaction platform Active CN109670952B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811519741.5A CN109670952B (en) 2018-12-12 2018-12-12 Collecting and paying transaction platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811519741.5A CN109670952B (en) 2018-12-12 2018-12-12 Collecting and paying transaction platform

Publications (2)

Publication Number Publication Date
CN109670952A true CN109670952A (en) 2019-04-23
CN109670952B CN109670952B (en) 2022-12-23

Family

ID=66144327

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811519741.5A Active CN109670952B (en) 2018-12-12 2018-12-12 Collecting and paying transaction platform

Country Status (1)

Country Link
CN (1) CN109670952B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110334006A (en) * 2019-05-24 2019-10-15 平安银行股份有限公司 Test method, device, computer installation and storage medium
CN112965873A (en) * 2021-03-04 2021-06-15 中国邮政储蓄银行股份有限公司 Page processing method and device, storage medium and processor

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080177668A1 (en) * 2007-01-24 2008-07-24 Bruno Delean Computerized person-to-person payment system and method without use of currency
CN104156850A (en) * 2014-07-16 2014-11-19 通联支付网络服务股份有限公司 Real-time transaction monitoring system
CN106210109A (en) * 2016-07-26 2016-12-07 通联支付网络服务股份有限公司 A kind of product systems for aggregate payment
CN107197017A (en) * 2017-05-23 2017-09-22 努比亚技术有限公司 A kind of consuming method, terminal and computer-readable recording medium based on consumption queue
CN108446111A (en) * 2018-03-26 2018-08-24 国家电网公司客户服务中心 A kind of micro services construction method based on Spring cloud
CN108537528A (en) * 2018-04-10 2018-09-14 平安科技(深圳)有限公司 Batch file auditing and payment-for-delivery method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080177668A1 (en) * 2007-01-24 2008-07-24 Bruno Delean Computerized person-to-person payment system and method without use of currency
CN104156850A (en) * 2014-07-16 2014-11-19 通联支付网络服务股份有限公司 Real-time transaction monitoring system
CN106210109A (en) * 2016-07-26 2016-12-07 通联支付网络服务股份有限公司 A kind of product systems for aggregate payment
CN107197017A (en) * 2017-05-23 2017-09-22 努比亚技术有限公司 A kind of consuming method, terminal and computer-readable recording medium based on consumption queue
CN108446111A (en) * 2018-03-26 2018-08-24 国家电网公司客户服务中心 A kind of micro services construction method based on Spring cloud
CN108537528A (en) * 2018-04-10 2018-09-14 平安科技(深圳)有限公司 Batch file auditing and payment-for-delivery method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110334006A (en) * 2019-05-24 2019-10-15 平安银行股份有限公司 Test method, device, computer installation and storage medium
CN112965873A (en) * 2021-03-04 2021-06-15 中国邮政储蓄银行股份有限公司 Page processing method and device, storage medium and processor

Also Published As

Publication number Publication date
CN109670952B (en) 2022-12-23

Similar Documents

Publication Publication Date Title
US20230261878A1 (en) Verifying integrity and secure operations of cloud-based software services
US11283865B2 (en) Service meshes and smart contracts for zero-trust systems
US9098565B1 (en) In-house elegant JDBC connection pooling solution for message broker
CN110443695A (en) Data processing method and its device, electronic equipment and medium
CN109636334A (en) A kind of property intelligence community service system and method
CN106254214B (en) A kind of the proactive notification system and proactive notification method of banking information
CN110442608A (en) Information processing method, device, electronic equipment, medium and system
US8738476B2 (en) Architectural design for selling standardized services application software
CN107222530A (en) Service asynchronous exchange method, equipment, system and computer-readable recording medium
CN110287266A (en) A kind of distributed system and data processing method
JP7427169B2 (en) Common database architecture to support large-scale transactions and node archiving on MaaS platforms
CN109670952A (en) One kind, which is withheld, pays transaction platform
WO2023207146A1 (en) Service simulation method and apparatus for esop system, and device and storage medium
CN111667360A (en) User limit information management method and device, electronic equipment and storage medium
US9128886B2 (en) Computer implemented method, computer system, electronic interface, mobile computing device and computer readable medium
CN112633862A (en) Bill management platform and method
US8321308B2 (en) Architectural design for manual invoicing application software
US7197533B2 (en) Non-persistent service support in transactional application support environments
CN109583873B (en) Transaction communication method, server, POS machine and electronic equipment
CN108416676A (en) A kind of implementation method sold bank financial product directly to households and quickly accessed
EP4142206A1 (en) Verifying integrity and secure operations of cloud-based software services
CN102982484B (en) The proprietary transaction node of fund-raising gap and its brokerage platform
CN109583865A (en) Transaction processing method, device, electronic equipment and computer readable storage medium
CN107944585A (en) One kind refund reservation system and method
CN113592450A (en) Invoice checking method and device based on central platform invoice center, storage medium and electronic equipment

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
GR01 Patent grant
GR01 Patent grant