smart-stick-loadbalancer 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -72,16 +72,20 @@ lb.start(); // starts the load balancer
|
|
|
72
72
|
Create two simple backend servers:
|
|
73
73
|
|
|
74
74
|
// server5000.js
|
|
75
|
+
```
|
|
75
76
|
const express = require('express');
|
|
76
77
|
const app = express();
|
|
77
78
|
app.get('/', (req, res) => res.send('Hello from 5000'));
|
|
78
79
|
app.listen(5000, () => console.log('Server 5000 running'));
|
|
80
|
+
```
|
|
79
81
|
|
|
80
82
|
// server5001.js
|
|
83
|
+
```
|
|
81
84
|
const express = require('express');
|
|
82
85
|
const app = express();
|
|
83
86
|
app.get('/', (req, res) => res.send('Hello from 5001'));
|
|
84
87
|
app.listen(5001, () => console.log('Server 5001 running'));
|
|
88
|
+
```
|
|
85
89
|
|
|
86
90
|
Start the load balancer:
|
|
87
91
|
|
package/package.json
CHANGED