Cluster Static Server based on Fastify NodeJS.
Static Server
is a static web server, or stack, consists of a computer (hardware) with an HTTP server (software). We call it "static"
because the server sends its hosted files "as-is"
to your browser.
The main problem of a static server is when you have limit with your server storage. Because this problem, many people going to buy the expensive cloud storage for his startup business. But I don't want to, so I create this cluster-static-server.
-
I want an Easy Management
This cluster static server is included with a Rest API to manage your static files without having to touch your server. Also with this API, you are able to create your custom application. -
I want to Scale Out
Add more server machine for your storage. So you have unlimited static server storage. -
I want to start with small investment
This cluster static server was created with Fastify NodeJS Framework which is the fastest and very low overhead of any NodeJS framework out there. You can start with single or multiple shared hosting to implement this cluster static server.
- Cluster Storage
- Cluster CPU
- Upload File
- Remote Upload File
- Get File
- Delete File
- Cleanup Temporary File
- Status All Nodes
- Clone or Download this repo.
- Extract it.
- Go to the extracted directory.
- Run
$ npm install
. - Done
- To start master server
$ npm run master
or$ node server-master.js
. - To start node server
$ npm run node
or$ node server-node.js
.
Note :
- You are able to start master and node server in same machine server with different port. But, actualy Master and Node server should be on different machine server so you will get the best performance.
We include the postman.json
file in this source for an example how to use API. Just import it to your postman application and then you can learn from it.
The documentation is on our Wiki.