docs: add comment on fastify TS example
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 11 Aug 2023 17:25:22 +0000 (19:25 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 11 Aug 2023 17:25:22 +0000 (19:25 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
examples/typescript/http-server-pool/fastify/src/main.ts

index 5bf714aaf0c300c701a2a3bd235908e7034489d7..a71c0b76edf6530a44b9c4d535888a1e5c6fcb3a 100644 (file)
@@ -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