System Trivia >>> Online trading and bulk trading
===================
What is online trading/bulk trading? There is no exact definition of online and batch, and my personal understanding is as follows:
Online trading means that the system directly provides transactions, the transaction has a transactional-rollback; real-time-the transaction has a life cycle, and there is a time-out mechanism, and so on, the caller needs to wait in real time for the feedback, success or failure feedback; concurrency--the same class or even the same transaction can be called by multiple threads simultaneously. There are locking mechanisms between each other.
Batch processing means that the transaction-related parameters, the system state is locked, the system needs to do a certain kind of operation, the operation has unity-the same rules to deal with large amounts of data, serialization-not to say that there can be no concurrency in a bulk transaction, but there is a fixed step, what to do first, and then what step, Each step has a dependency on certain conditions, repeatability-This is not necessary, but it is strongly recommended that the batch program at the beginning of the design to consider the repeatable operation, or the subsequent operation and maintenance will cause a lot of trouble;
Typical online is the withdrawal transaction, the balance of the query (may appear under the situation of insufficient balance) and update, the formation of the transaction flow, the account usage record generation, accounting voucher generation, deposit and Cash Account General Ledger registration, need to complete, if one of the steps to produce an exception, the entire transaction back; A typical bulk transaction is a reconciliation transaction , the reconciliation of the pre-requisite for the last day of processing has been all over, the system needs to be the validation of the results of the previous days, the way to verify is to set up some screening rules, check whether there are non-compliant data, if any, will its own and related data generated reconciliation error log, for operators to query and processing, If the reconciliation results are completely correct, the transaction is carried out and the next batch program (such as generating a daily incremental data file is sent to the downstream system).
--
Not to be continued!
Online Trading and bulk trading