> but so could FFI calls to another language for the CPU bound work
Worker threads can be more convenient than FFI, as you don't need to compile anything, you can reuse the main application's functions, etc.
Worker threads can be more convenient than FFI, as you don't need to compile anything, you can reuse the main application's functions, etc.
I make my comment to note tho that in many envs it’s easier to scale out than account for all the extra complications of multiple processes in a single container.