From 75cfb36d305bddb2fc5f4ccd10c3ea0d9bc2ff1f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 11 Aug 2023 19:25:22 +0200 Subject: [PATCH] docs: add comment on fastify TS example MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- examples/typescript/http-server-pool/fastify/src/main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/typescript/http-server-pool/fastify/src/main.ts b/examples/typescript/http-server-pool/fastify/src/main.ts index 5bf714aa..a71c0b76 100644 --- a/examples/typescript/http-server-pool/fastify/src/main.ts +++ b/examples/typescript/http-server-pool/fastify/src/main.ts @@ -4,6 +4,10 @@ import Fastify from 'fastify' import { availableParallelism } from 'poolifier' import { fastifyPoolifier } from './fastify-poolifier.js' +/** + * The fastify server is still a single-threaded application, but the request handling can be multi-threaded. + */ + const port = 8080 const fastify = Fastify({ logger: true -- 2.34.1