https://mromalls.com/blog/batch-reactor/