I suggest exploring the idea of implementing a simple dispatcher in Lua to facilitate parallel processing. - https://www.lua.org/pil/9.4.html - https://www.inf.puc-rio.br/~roberto/docs/corosblp.pdf - https://github.com/lunarmodules/copas/blob/master/src/copas.lua - https://github.com/zhaojh329/lua-eco - https://github.com/xopxe/Lumen
I suggest exploring the idea of implementing a simple dispatcher in Lua to facilitate parallel processing.