Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As a deployer/Maintainer profile the Reference Backend Code and Finetune for production readiness #59

Open
dileep-gadiraju opened this issue Nov 24, 2022 · 4 comments
Labels

Comments

@dileep-gadiraju
Copy link
Collaborator

As a deployer/Maintainer profile the Reference Backend Code for production readiness

  • Identify NodeJS-based code profiler to identify code bottlenecks
  • Configure profiler
  • Identify Code bottlenecks and fix
  • Identify Packaging optimizations(Node packaging into Docker image)
  • Configuration optimization (Thread Pooling, Caching)
@dileep-gadiraju
Copy link
Collaborator Author

dileep-gadiraju commented Nov 24, 2022

References:

https://clinicjs.org/

Clinic.js doctor

  • Setup Clinicjs doctor using instructions @ https://clinicjs.org/doctor/ from the Project-Saral/v1.0/backend folder.
  • Make sure local MongoDB is up and running @ localhost:27017
  • Execute the below commands in a terminal from the Project-Saral/v1.0/backend folder :
    • export PORT=3000
    • export MONGODB_URL=mongodb://localhost:27017/saraldata_dev
    • export JWT_SECRET=SARALDATA_NODE
    • clinic doctor --on-port 'autocannon localhost:$PORT' -- node src/index.js
  • Report gets generated @ ./.clinic for review.

Clinic.js flame

  • Setup Clinicjs flame using instructions @ https://clinicjs.org/flame/ from the Project-Saral/v1.0/backend folder.
  • Make sure local MongoDB is up and running @ localhost:27017
  • Execute the below commands in a terminal from the Project-Saral/v1.0/backend folder :
    • export PORT=3000
    • export MONGODB_URL=mongodb://localhost:27017/saraldata_dev
    • export JWT_SECRET=SARALDATA_NODE
    • clinic flame --on-port 'autocannon localhost:$PORT' -- node src/index.js
  • Report gets generated @ ./.clinic for review.

clinic.js bubbleprof

  • Setup Clinicjs doctor using instructions @ https://clinicjs.org/bubbleprof/ from the Project-Saral/v1.0/backend folder.
  • Make sure local MongoDB is up and running @ localhost:27017
  • Execute the below commands in a terminal from the Project-Saral/v1.0/backend folder :
    • export PORT=3000
    • export MONGODB_URL=mongodb://localhost:27017/saraldata_dev
    • export JWT_SECRET=SARALDATA_NODE
    • clinic bubbleprof --on-port 'autocannon localhost:$PORT' -- node src/index.js
  • Report gets generated @ ./.clinic for review.

@dileep-gadiraju
Copy link
Collaborator Author

Image

@dileep-gadiraju
Copy link
Collaborator Author

Image

@dileep-gadiraju
Copy link
Collaborator Author

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: New
Development

No branches or pull requests

1 participant