Remote chunking with Spring Batch job distribution -
i have technical issue running spring batch jobs. job reading records db (mongodb) , making calculations on record (aggregations) , writing record result table. reading , processing , writing record b b aggregations of many records of a. want use remote chunking vertically scaling system causing processing part scaled , quick. problem face need synchronize records processing them not conflict when writing result b. if distribute 10 records 4 slaves conflict when writing aggregate result b .
any idea , how add synchronizing policy when sending messages master slaves ?
thanks in advance ...
if need synchronize data you're describing, i'd recommend not going remote chunking , using partitioning instead. allow partition , eliminate synchronization issues you're facing. provide additional throughput you'd running 1 processor per slave (same in remote chunking).
Comments
Post a Comment