Answer the question
In order to leave comments, you need to log in
How many requests per second can a Node.js application process on 1 core?
How many requests per second can a Node.js application process on 1 core?
How can this be simulated and calculated on your machine?
UPD: the question is primarily about a "minimally loaded", bare http server, without a database and a cache, giving, say, the string "hello world". And after that, about some average web application, an online store, for example, on Express + GraphQL + PostgreSQL + Redis ...
Answer the question
In order to leave comments, you need to log in
A strange question, but I will answer:
1. create a virtual machine that is as similar as possible to your environment at the host, for example 1 cpu + 512 gb ram
2. put the node that the host has
3. create an apache jmeter test script
Run the node via docker or via pm2 , knowingly highlighting one core in their configs, install and "click" on it via autocannon
FROM node:12-alpine
WORKDIR /app
COPY . .
RUN npm install
CMD ["npm", "start"]
module.exports = {
apps: [
{
name: 'API',
script: './bin/www',
instances: 1,
autorestart: true,
exec_mode: 'cluster',
max_memory_restart: '1G',
},
],
};
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question