Fastify 最值得学的地方,不只是它快。
而是它把一个后端系统最容易混乱的部分,全部按物流中枢的方式组织起来:
- 路由先分拣
- 数据先扫描
- 模块先分仓
- 设施先装配
- 日志先追踪
- 出口先打包
- 文档自动出册
所以你写的不是一堆“恰好能跑的接口”,而是在搭一座长期可扩展的高速物流中枢。
#官方来源链接清单
- https://fastify.dev/
- https://fastify.dev/docs/latest/Guides/Getting-Started/
- https://fastify.dev/docs/latest/Reference/Routes/
- https://fastify.dev/docs/latest/Reference/Validation-and-Serialization/
- https://fastify.dev/docs/latest/Reference/Hooks/
- https://fastify.dev/docs/latest/Reference/Lifecycle/
- https://fastify.dev/docs/latest/Reference/Plugins/
- https://fastify.dev/docs/latest/Reference/Encapsulation/
- https://fastify.dev/docs/latest/Reference/Decorators/
- https://fastify.dev/docs/latest/Reference/Errors/
- https://fastify.dev/docs/latest/Reference/Logging/
- https://github.com/fastify/fastify-swagger
- https://github.com/fastify/fastify-swagger-ui
- https://github.com/fastify/fastify-autoload
- https://github.com/fastify/fastify-plugin
- https://expressjs.com/
- https://expressjs.com/en/guide/routing.html