> I try use the same approach of php-fpm, and pre-fork n processes at beginnig.
Yes, such kind of setup usually needed for PHP / Ruby / Python and other languages with weak parallel capabilities. Languages like Java / Erlang etc with good multicore support don't need that. Ideally Nim shouldn't need that, although that setup should work quite good with Nim too, as Nim uses little memory and spawning N server processes shouldn't be a problem.