TP vs. Batch Processing (BP)
A BP application is usually uniprogrammed so serializability is trivial. TP is multiprogrammed.
BP performance is measured by throughput.TP is also measured by response time.
BP can optimize by sorting transactions by the file key. TP must handle random transaction arrivals.
BP produces new output file. To recover, re-run the app.
BP has fixed and predictable load, unlike TP.
But, where there is TP, there is almost always BP too.
- TP gathers the input. BP post-processes work that has weak response time requirements
- So, TP systems must also do BP well.