The cluster module allows you to easily create a network of processes that all share server ports. While this is perfectly good code, it will run on only 1 core of your most probably multicore environment. So what we can improve is to take advantage of the cluster module and fork our process to increase the software throughput.
Table of contents
1. Introduction2. Example code3. Applying changes4. worker and master communication5. Final thoughts1 Comment
Sort: