{"id":22381823,"url":"https://github.com/007tickooayush/node-cluster-test-poc","last_synced_at":"2026-05-05T05:40:41.912Z","repository":{"id":236321572,"uuid":"792377356","full_name":"007tickooayush/node-cluster-test-poc","owner":"007tickooayush","description":"Clustering in Node allows you to create multiple instances of your Node.js application, called worker processes, to take advantage of multi-core systems, distributing the workload across multiple threads,and improves the performance and scalability of your application. In the provided repository the specified proof of concept is tested.","archived":false,"fork":false,"pushed_at":"2024-04-26T14:47:57.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T01:36:47.897Z","etag":null,"topics":["autocann","cluster","expess","node","rest-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/007tickooayush.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-26T14:44:00.000Z","updated_at":"2024-04-26T14:48:46.000Z","dependencies_parsed_at":"2024-04-26T16:06:10.054Z","dependency_job_id":null,"html_url":"https://github.com/007tickooayush/node-cluster-test-poc","commit_stats":null,"previous_names":["007tickooayush/node-cluster-test-poc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/007tickooayush%2Fnode-cluster-test-poc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/007tickooayush%2Fnode-cluster-test-poc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/007tickooayush%2Fnode-cluster-test-poc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/007tickooayush%2Fnode-cluster-test-poc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/007tickooayush","download_url":"https://codeload.github.com/007tickooayush/node-cluster-test-poc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245720906,"owners_count":20661491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autocann","cluster","expess","node","rest-api"],"created_at":"2024-12-05T00:10:35.130Z","updated_at":"2026-05-05T05:40:41.860Z","avatar_url":"https://github.com/007tickooayush.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## NODE CLUSTERING `(node:cluster)` POC\n\nClustering in Node allows you to ***create multiple instances*** of your Node.js application, called worker processes, to take advantage of multi-core systems, distributing the workload across multiple threads,and improves the ***performance and scalability*** of your application. In the provided repository the specified proof of concept is tested.\n\nIn Node.js, the cluster module provides a built-in way to implement clustering. It allows you to create a cluster of worker processes that share the same server port and handle incoming requests in a balanced manner.\n\nHere's a brief overview of how clustering works in Node.js:\n\nWhen you start your Node.js application, the master process is created. This process is responsible for managing the worker processes.\n\nThe master process uses the cluster.fork() method to create multiple worker processes. Each worker process runs the same application code.\n\nThe master process listens for incoming network connections and distributes them among the worker processes using a round-robin algorithm. This ensures that each worker process gets an equal share of the incoming requests.\n\nEach worker process is independent and can handle requests concurrently. They can also communicate with each other through inter-process communication (IPC) channels provided by the cluster module.\n\nIf a worker process crashes or terminates unexpectedly, the master process automatically creates a new worker process to replace it. This ensures that your application remains available even if individual worker processes fail.\n\nClustering is particularly useful for applications that have high traffic or perform computationally intensive tasks. By utilizing multiple cores, you can effectively utilize the available resources and improve the overall performance and responsiveness of your Node.js application.\n\nTo implement clustering in your Node.js application, you can use the cluster module provided by Node.js. It provides a simple and straightforward API to create and manage worker processes.\n\n## PRE REQUISITES:\n\n```bash\ngit clone https://github.com/007tickooayush/node-cluster-test-poc.git\n```\n```bash\nnpm install\n```\n\n\n\n## RUN THE CLUSTER:\n```bash\nnpm run cluster\n```\nOR SINGLE NODE:\n```bash\nnpm run dev\n```\n\n## Testing commands:\n\n- For testing the Mathametical operations throughput statistics:\n```bash \nnpm run test-slow\n```\n\n- For File I/O operations throughput statistics:\n```bash\nnpm run test-fs\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F007tickooayush%2Fnode-cluster-test-poc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F007tickooayush%2Fnode-cluster-test-poc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F007tickooayush%2Fnode-cluster-test-poc/lists"}