concurrency - Java concurrently processes a large amount of data in a table, how to set checkpoints so that they can be used for failure recovery instead of repeatedly processing the processed data?
滿天的星座
滿天的星座 2017-05-17 10:08:26
0
1
579

Java concurrently processes a large amount of data in a table. How to set checkpoints for failure recovery instead of repeatedly processing the processed data?

For example, during the processing process, the system goes down and before kill -9 is forced to kill, set a checkpoint and resume processing from the checkpoint next time?

滿天的星座
滿天的星座

reply all(1)
習慣沉默

1. Write checkpoints regularly, so you are not afraid of downtime.
2. Data processing must be idempotent and deal with data that has been processed but has not been written to checkpoints.

If you use transactions to write checkpoints in real time, then the above problem will not happen.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!