Skip to content

A simple example of how to running a Fastify server in multi-threaded mode.

License

Notifications You must be signed in to change notification settings

joseluisq/fastify-cluster-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fastify Cluster Example

A simple example of how to running a Fastify server in multi-threaded mode.

Usage

~> yarn
~> yarn start
yarn run v1.22.4
$ ts-node src/index.ts
Total Number of Cores: 4
Master 14784 is running
Worker 14785 is listening
Worker 14786 is listening
Worker 14787 is listening
Worker 14788 is listening
Worker 14787 started
Worker 14785 started
🚀 Server ready at http://[::]:7300 on worker 2
Worker 14788 started
🚀 Server ready at http://[::]:7300 on worker 0
🚀 Server ready at http://[::]:7300 on worker 3
Worker 14786 started
🚀 Server ready at http://[::]:7300 on worker 1

Testing

TODO

Benchmarks

TODO

License

MIT license

© 2019 Jose Quintana

About

A simple example of how to running a Fastify server in multi-threaded mode.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published