- 'jerome-benoit'
versioning-strategy: increase
- package-ecosystem: 'npm'
- directory: '/examples/typescript/http-server-pool/express'
+ directory: '/examples/typescript/http-server-pool/express-worker_threads'
schedule:
interval: 'daily'
labels:
- 'jerome-benoit'
versioning-strategy: increase
- package-ecosystem: 'npm'
- directory: '/examples/typescript/http-server-pool/fastify'
+ directory: '/examples/typescript/http-server-pool/fastify-worker_threads'
schedule:
interval: 'daily'
labels:
- 'jerome-benoit'
versioning-strategy: increase
- package-ecosystem: 'npm'
- directory: '/examples/typescript/websocket-server-pool/ws'
+ directory: '/examples/typescript/http-server-pool/fastify-cluster'
+ schedule:
+ interval: 'daily'
+ labels:
+ - 'dependencies'
+ - 'examples'
+ - 'nocombine'
+ reviewers:
+ - 'pioardi'
+ - 'jerome-benoit'
+ versioning-strategy: increase
+ - package-ecosystem: 'npm'
+ directory: '/examples/typescript/websocket-server-pool/ws-worker_threads'
schedule:
interval: 'daily'
labels:
- [Typescript](./examples/typescript/)
- [HTTP client pool](./examples/typescript/http-client-pool/)
- [HTTP server pool](./examples/typescript/http-server-pool/)
- - [Express](./examples/typescript/http-server-pool/express/)
- - [Fastify](./examples/typescript/http-server-pool/fastify/)
+ - [Express worker_threads pool](./examples/typescript/http-server-pool/express-worker_threads/)
+ - [Fastify worker_threads pool](./examples/typescript/http-server-pool/fastify-worker_threads/)
+ - [Fastify cluster pool](./examples/typescript/http-server-pool/fastify-cluster/)
- [WebSocket server pool](./examples/typescript/websocket-server-pool/)
- - [ws](./examples/typescript/websocket-server-pool/ws/)
+ - [ws worker_threads pool](./examples/typescript/websocket-server-pool/ws-worker_threads/)
Remember that workers can only send and receive structured-cloneable data.
"dependencies": {
"axios": "^1.4.0",
"node-fetch": "^3.3.2",
- "poolifier": "^2.6.23"
+ "poolifier": "^2.6.24"
},
"devDependencies": {
"@types/node": "^20.4.10",
specifier: ^3.3.2
version: 3.3.2
poolifier:
- specifier: ^2.6.23
- version: 2.6.23
+ specifier: ^2.6.24
+ version: 2.6.24
devDependencies:
'@types/node':
formdata-polyfill: 4.0.10
dev: false
- /poolifier@2.6.23:
- resolution: {integrity: sha512-QQagtUD4DCzeEEq2SjoxDRsPLqr5qzJm3Wur29rWDepG935BXlGHVZLFlqUoaHXkcILIBKvLxEFs+SB2Op4TIw==}
+ /poolifier@2.6.24:
+ resolution: {integrity: sha512-3sofqoocsvz7R6LshWJ1FvnjCsHdKytw29gsrVB7AJ0d7jVuE6dMd7ax2O0U03hg+yhxpeBXOaUGO025b40kjA==}
engines: {node: '>=16.14.0', pnpm: '>=8.6.0'}
requiresBuild: true
dev: false
"license": "ISC",
"dependencies": {
"express": "^4.18.2",
- "poolifier": "^2.6.23"
+ "poolifier": "^2.6.24"
},
"devDependencies": {
"@types/express": "^4.17.17",
specifier: ^4.18.2
version: 4.18.2
poolifier:
- specifier: ^2.6.23
- version: 2.6.23
+ specifier: ^2.6.24
+ version: 2.6.24
devDependencies:
'@types/express':
resolution: {integrity: sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==}
dev: false
- /poolifier@2.6.23:
- resolution: {integrity: sha512-QQagtUD4DCzeEEq2SjoxDRsPLqr5qzJm3Wur29rWDepG935BXlGHVZLFlqUoaHXkcILIBKvLxEFs+SB2Op4TIw==}
+ /poolifier@2.6.24:
+ resolution: {integrity: sha512-3sofqoocsvz7R6LshWJ1FvnjCsHdKytw29gsrVB7AJ0d7jVuE6dMd7ax2O0U03hg+yhxpeBXOaUGO025b40kjA==}
engines: {node: '>=16.14.0', pnpm: '>=8.6.0'}
requiresBuild: true
dev: false
"$schema": "https://json.schemastore.org/package",
"name": "fastify-plugin-request-pool",
"version": "1.0.0",
- "description": "fastify plugin request pool",
+ "description": "Fastify plugin request pool",
"main": "dist/main.js",
"type": "module",
"volta": {
"dependencies": {
"fastify": "^4.21.0",
"fastify-plugin": "^4.5.1",
- "poolifier": "^2.6.23"
+ "poolifier": "^2.6.24"
},
"devDependencies": {
"@types/node": "^20.4.10",
specifier: ^4.5.1
version: 4.5.1
poolifier:
- specifier: ^2.6.23
- version: 2.6.23
+ specifier: ^2.6.24
+ version: 2.6.24
devDependencies:
'@types/node':
thread-stream: 2.4.0
dev: false
- /poolifier@2.6.23:
- resolution: {integrity: sha512-QQagtUD4DCzeEEq2SjoxDRsPLqr5qzJm3Wur29rWDepG935BXlGHVZLFlqUoaHXkcILIBKvLxEFs+SB2Op4TIw==}
+ /poolifier@2.6.24:
+ resolution: {integrity: sha512-3sofqoocsvz7R6LshWJ1FvnjCsHdKytw29gsrVB7AJ0d7jVuE6dMd7ax2O0U03hg+yhxpeBXOaUGO025b40kjA==}
engines: {node: '>=16.14.0', pnpm: '>=8.6.0'}
requiresBuild: true
dev: false
+import type { TransferListItem } from 'worker_threads'
import { DynamicThreadPool, availableParallelism } from 'poolifier'
import { type FastifyPluginCallback } from 'fastify'
import fp from 'fastify-plugin'
if (!fastify.hasDecorator('execute')) {
fastify.decorate(
'execute',
- async (data?: WorkerData, name?: string): Promise<WorkerResponse> =>
- await pool.execute(data, name)
+ async (
+ data?: WorkerData,
+ name?: string,
+ transferList?: TransferListItem[]
+ ): Promise<WorkerResponse> => await pool.execute(data, name, transferList)
)
}
done()
"author": "",
"license": "ISC",
"dependencies": {
- "poolifier": "^2.6.23",
+ "poolifier": "^2.6.24",
"ws": "^8.13.0"
},
"devDependencies": {
dependencies:
poolifier:
- specifier: ^2.6.23
- version: 2.6.23
+ specifier: ^2.6.24
+ version: 2.6.24
ws:
specifier: ^8.13.0
version: 8.13.0(bufferutil@4.0.7)(utf-8-validate@6.0.3)
requiresBuild: true
dev: false
- /poolifier@2.6.23:
- resolution: {integrity: sha512-QQagtUD4DCzeEEq2SjoxDRsPLqr5qzJm3Wur29rWDepG935BXlGHVZLFlqUoaHXkcILIBKvLxEFs+SB2Op4TIw==}
+ /poolifier@2.6.24:
+ resolution: {integrity: sha512-3sofqoocsvz7R6LshWJ1FvnjCsHdKytw29gsrVB7AJ0d7jVuE6dMd7ax2O0U03hg+yhxpeBXOaUGO025b40kjA==}
engines: {node: '>=16.14.0', pnpm: '>=8.6.0'}
requiresBuild: true
dev: false