sql - Using DDD, How Does One Implement Batch Processing? -


I have a logic in which to select a large number of records from one system, more than one change (based on business rules) and Insert them into another system.

It seems that in order to encrypt each record as a high performance (and memory) these objects, hit them, make changes on them, and then put all of these objects into another system. / P>

Is it the best way to get rid of class / objects in DDD and do it directly via SQL, maybe this is a stored procedure?

Is this a better way to use DDD? Goal:

Note: System uses SQL database, currently object-store such as CHDB is not an option.

Many distributed systems created on DDD are using an event-driven architecture, where one Rather than displaying all the changes in the batch, each unit passes under state change which can be changed by your system, the organization gives rise to an event that can be used for any kind of message bus (eg, mule, Net for NetTranit.) Your Par Rtn system will subscribe to the events, and after each message arrives in your system, it will change the unit went to identify the message and then publish another message to the destination system.

This kind of "trickle processing" can run continuously, not to be loaded on your system like the whole day after which the job will need to be run after hours. If you are worried about performance, then this kind of architecture can be a system whose final record has changed after 5 minutes of COB, where a batch job can not be able to run till 3 o'clock (After all other batch jobs

If you do not really want to update the target system by midnight, for example, only queue up to midnight, Then publish them at the closing point of the destination system.

Greg Young has blogging on such architecture and presented it extensively. See your work on InfoQ.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -