Dear,
As per my understanding, to run a async job in nginx lua context, we can use thread, timer or co-routine. As I as know, all these three way of processing async job can run in one core at a time despite you have multi core cpu. How do I take advantage of running parallel in all core?I heard about certain lib like lua lanes : https://cmr.github.io/lanes/ . can it be used directly in ngx lua context?
or it could be simple like, run nginx with more worker processes( no of core), I would like to spawn one async job for each request. Async job takes some computational time. So If I have 4 core cpu, is it 4 jobs run in parallel in 4 core ?
please help me to understand..