-
Start database:
pnpm run startdb
-
Start server:
pnpm run dev
-
Hit
GET /rollback/native
several times and look at the server logs -
We can test now how
effection
handles a shutdown of the server with the following steps:GET /rollback
- stop server in less than 5 seconds
- look at server response and fastify log
This operation will take much longer if we hit a route with a
database query (like GET /benchmark/no/db
) before.
- Start server:
pnpm run dev:boom
- Try to get route
http://localhost:3000/rollback
in less than 5 seconds after server started. - look at server response and fastify log
- Start server:
pnpm run dev:boom:handler
- Try to get route
http://localhost:3000/rollback
- look at server response and fastify log
- Start database:
pnpm run startdb
- Start server:
pnpm run bench:server
- Run benchmark:
pnpm run bench:start