I am building out a batch processor. I want to be able to control the number of concurrent operations using actors. I made a small test below to prove out my idea, but I want to see if there’s as simpler solution that I’ve overlooked or improvement to be made.
Basically I’ll be looking to have a list of actors sized based on an ENV variable, and want to make sure that work is distributed as actors become free from processing.