Write a node service
const Koa = require('koa')
const app = new Koa()
class SetMap extends Map {
}
const myMap = new SetMap()
let id = 0
app.use(async (ctx, next) => {
ctx.id = id++
myMap.set(id, ctx)
await next()
});
app.use(async ctx => {
console.log(ctx.id)
ctx.body = 'Hello World' + ctx.id;
});
app.listen(3004);
Install Apache ab
ab: Download the Windows version
, unzip and copy the bin directory to the environment variable path