Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Increase resilience and simplify the implementation

Open
#4 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Stale
Tech stack
express, node.js
Domain
backend, devops

Research direction

Start by reading package.json and app.js to understand the current start command and clustering logic. Compare the requested PM2 setup with the existing process behavior, then verify that npm start launches the sample as specified and that clustering is no longer handled in app.js.

Written by the indexing model from the issue text.

Description

I have a suggestion to improve the resilience and align a bit more with industry standards.

You should not be doing clustering in your code. I adds noise and is right now preventing the script from running unclustered. There are pretty sweet tools to manage your process, bring it back up when it crashes, monitor it and finally cluster it. Tools like PM2

What I suggest is to:

  • add the pm2 dependency to the package.json
  • remove the clustering logic from app.js
  • change the npm start command for pm2 start app.js -i max where max can easily be changed to any number to define the number of clusters to make.

PM2 also has the advantage to be hookable for remote monitoring with almost no effort, which could be interesting for this project.

Cheers

Dominant language
EJS
Stars
279
Forks
247
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aws-samples/eb-node-express-sample

All issues in aws-samples/eb-node-express-sample

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.