FastAPI秒杀库存总变负数?Redis分布式锁能帮你守住底线吗

9 月 17 日
阅读 12 分钟
1.1k
url: /posts/65ce343cc5df9faf3a8e2eeaab42ae45/ title: FastAPI秒杀库存总变负数?Redis分布式锁能帮你守住底线吗 date: 2025-09-17T03:43:34+08:00 lastmod: 2025-09-17T03:43:34+08:00 author: cmdragon

FastAPI的CI流水线怎么自动测端点,还能让Allure报告美到犯规?

9 月 16 日
阅读 11 分钟
877
url: /posts/eed6cd8985d9be0a4b092a7da38b3e0c/ title: FastAPI的CI流水线怎么自动测端点,还能让Allure报告美到犯规? date: 2025-09-16T01:32:40+08:00 lastmod: 2025-09-16T01:32:40+08:00 author: cmdragon
封面图

如何用 GitHub Actions 为 FastAPI 项目打造自动化测试流水线?

9 月 15 日
阅读 11 分钟
856
url: /posts/6157d87338ce894d18c013c3c4777abb/ title: 如何用GitHub Actions为FastAPI项目打造自动化测试流水线? date: 2025-09-15T05:16:10+08:00 lastmod: 2025-09-15T05:16:10+08:00 author: cmdragon
封面图

如何用 Git Hook 和 CI 流水线为 FastAPI 项目保驾护航?

9 月 14 日
阅读 9 分钟
764
url: /posts/fc4ef84559e04693a620d0714cb30787/ title: 如何用Git Hook和CI流水线为FastAPI项目保驾护航? date: 2025-09-14T00:12:42+08:00 lastmod: 2025-09-14T00:12:42+08:00 author: cmdragon

FastAPI如何用契约测试确保API的「菜单」与「菜品」一致?

9 月 13 日
阅读 9 分钟
911
url: /posts/02b0c96842d1481c72dab63a149ce0dd/ title: FastAPI如何用契约测试确保API的「菜单」与「菜品」一致? date: 2025-09-13T02:46:54+08:00 lastmod: 2025-09-13T02:46:54+08:00 author: cmdragon

为什么 TDD 能让你的 FastAPI 开发飞起来?

9 月 12 日
阅读 10 分钟
1k
url: /posts/c9c1e3bb0fdc15303b9b3b1f20124b0b/title: 为什么TDD能让你的FastAPI开发飞起来?date: 2025-09-12T01:47:01+08:00lastmod: 2025-09-12T01:47:01+08:00author: cmdragoncover: /images/4b9f354d7e634f868f6e429b139ba441~tplv-5jbd59dj06-image.png

需求驱动测试:你的代码真的在按需行事吗?

9 月 11 日
阅读 8 分钟
850
url: /posts/83d162ba92c87a4acbe64338ccb2de1e/ title: 需求驱动测试:你的代码真的在按需行事吗? date: 2025-09-11T01:11:39+08:00 lastmod: 2025-09-11T01:11:39+08:00 author: cmdragon

如何用FastAPI玩转多模块测试与异步任务,让代码不再“闹脾气”?

9 月 10 日
阅读 8 分钟
876
url: /posts/ddbfa0447a5d0d6f9af12e7a6b206f70/title: 如何用FastAPI玩转多模块测试与异步任务,让代码不再“闹脾气”?date: 2025-09-10T06:22:28+08:00lastmod: 2025-09-10T06:22:28+08:00author: cmdragon

如何在FastAPI中玩转“时光倒流”的数据库事务回滚测试?

9 月 9 日
阅读 8 分钟
832
url: /posts/bf9883a75ffa46b523a03b16ec56ce48/ title: 如何在FastAPI中玩转“时光倒流”的数据库事务回滚测试? date: 2025-09-09T04:07:19+08:00 lastmod: 2025-09-09T04:07:19+08:00 author: cmdragon

如何在 FastAPI 中优雅地模拟多模块集成测试?

9 月 8 日
阅读 8 分钟
779
url: /posts/be553dbd5d51835d2c69553f4a773e2d/ title: 如何在FastAPI中优雅地模拟多模块集成测试? date: 2025-09-08T05:37:45+08:00 lastmod: 2025-09-08T05:37:45+08:00 author: cmdragon

多环境配置切换机制能否让开发与生产无缝衔接?

9 月 7 日
阅读 7 分钟
988
url: /posts/533874f5700b8506d4c68781597db659/ title: 多环境配置切换机制能否让开发与生产无缝衔接? date: 2025-09-07T06:55:32+08:00 lastmod: 2025-09-07T06:55:32+08:00 author: cmdragon

如何在 FastAPI 中巧妙覆盖依赖注入并拦截第三方服务调用?

9 月 6 日
阅读 7 分钟
942
url: /posts/2d992ef9e8962dc0a4a0b5348d486114/ title: 如何在 FastAPI 中巧妙覆盖依赖注入并拦截第三方服务调用? date: 2025-09-06T03:34:14+08:00 lastmod: 2025-09-06T03:34:14+08:00 author: cmdragon

为什么你的单元测试需要Mock数据库才能飞起来?

9 月 5 日
阅读 7 分钟
1.1k
url: /posts/6e69c0eedd8b1e5a74a148d36c85d7ce/ title: 为什么你的单元测试需要Mock数据库才能飞起来? date: 2025-09-05T05:57:12+08:00 lastmod: 2025-09-05T05:57:12+08:00 author: cmdragon

Pydantic模型验证测试:你的API数据真的安全吗?

9 月 4 日
阅读 7 分钟
826
url: /posts/03b2afdf35f55dbaef631710ab6da82c/ title: Pydantic模型验证测试:你的API数据真的安全吗? date: 2025-09-03T23:46:18+08:00 lastmod: 2025-09-03T23:46:18+08:00 author: cmdragon

如何在FastAPI中巧妙隔离依赖项,让单元测试不再头疼?

9 月 3 日
阅读 8 分钟
1k
url: /posts/77ae327dc941b0e74ecc6a8794c084d0/ title: 如何在FastAPI中巧妙隔离依赖项,让单元测试不再头疼? date: 2025-09-03T06:10:25+08:00 lastmod: 2025-09-03T06:10:25+08:00 author: cmdragon

测试覆盖率不够高?这些技巧让你的FastAPI测试无懈可击!

9 月 2 日
阅读 8 分钟
1.1k
url: /posts/0577d0e24f48b3153b510e74d3d1a822/ title: 测试覆盖率不够高?这些技巧让你的FastAPI测试无懈可击! date: 2025-09-02T01:49:10+08:00 lastmod: 2025-09-02T01:49:10+08:00 author: cmdragon

为什么你的FastAPI测试覆盖率总是低得让人想哭?

9 月 1 日
阅读 9 分钟
812
url: /posts/985c18ca802f1b6da828b92e082b4d4e/ title: 为什么你的FastAPI测试覆盖率总是低得让人想哭? date: 2025-09-01T03:56:38+08:00 lastmod: 2025-09-01T03:56:38+08:00 author: cmdragon

如何让FastAPI测试不再成为你的噩梦?

8 月 31 日
阅读 9 分钟
1.3k
url: /posts/29858a7a10d20b4e4649cb75fb422eab/ title: 如何让FastAPI测试不再成为你的噩梦? date: 2025-08-31T06:09:47+08:00 lastmod: 2025-08-31T06:09:47+08:00 author: cmdragon

FastAPI测试环境配置的秘诀,你真的掌握了吗?

8 月 30 日
阅读 7 分钟
894
url: /posts/6f9e71e8313db6de8c1431877a70b67e/ title: FastAPI测试环境配置的秘诀,你真的掌握了吗? date: 2025-08-30T02:32:06+08:00 lastmod: 2025-08-30T02:32:06+08:00 author: cmdragon

如何在FastAPI中玩转全链路追踪,让分布式系统故障无处遁形?

8 月 29 日
阅读 8 分钟
834
url: /posts/30e1d2fbf1ad8123eaf0e1e0dbe7c675/ title: 全链路追踪如何让FastAPI微服务架构的每个请求都无所遁形? date: 2025-08-28T23:40:47+08:00 lastmod: 2025-08-28T23:40:47+08:00 author: cmdragon

如何在API高并发中玩转资源隔离与限流策略?

8 月 28 日
阅读 7 分钟
762
url: /posts/4ad4ec1dbd80bcf5670fb397ca7cc68c/ title: 如何在API高并发中玩转资源隔离与限流策略? date: 2025-08-27T23:26:45+08:00 lastmod: 2025-08-27T23:26:45+08:00 author: cmdragon

任务分片执行模式如何让你的FastAPI性能飙升?

8 月 27 日
阅读 7 分钟
748
url: /posts/c6a598639f6a831e9e82e171b8d71857/ title: 任务分片执行模式如何让你的FastAPI性能飙升? date: 2025-08-27T05:38:17+08:00 lastmod: 2025-08-27T05:38:17+08:00 author: cmdragon

FastAPI如何巧妙驾驭混合云任务调度,让异步魔力尽情释放?

8 月 26 日
阅读 8 分钟
721
url: /posts/8d8e78fb048643f7ad6bd82d61e85d84/ title: FastAPI如何巧妙驾驭混合云任务调度,让异步魔力尽情释放? date: 2025-08-26T03:58:29+08:00 lastmod: 2025-08-26T03:58:29+08:00 author: cmdragon

冷热任务分离:是提升Web性能的终极秘籍还是技术噱头?

8 月 25 日
阅读 6 分钟
771
url: /posts/9c3dc7767a9282f7ef02daad42539f2c/ title: 冷热任务分离:是提升Web性能的终极秘籍还是技术噱头? date: 2025-08-24T23:35:36+08:00 lastmod: 2025-08-24T23:35:36+08:00 author: cmdragon

如何让FastAPI在百万级任务处理中依然游刃有余?

8 月 24 日
阅读 7 分钟
978
url: /posts/469aae0e0f88c642ed8bc82e102b960b/ title: 如何让FastAPI在百万级任务处理中依然游刃有余? date: 2025-08-24T06:28:21+08:00 lastmod: 2025-08-24T06:28:21+08:00 author: cmdragon

如何让FastAPI与消息队列的联姻既甜蜜又可靠?

8 月 23 日
阅读 7 分钟
719
url: /posts/1bebb53f4d9d6fbd0ecbba97562c07b0/ title: 如何让FastAPI与消息队列的联姻既甜蜜又可靠? date: 2025-08-23T05:07:15+08:00 lastmod: 2025-08-23T05:07:15+08:00 author: cmdragon

如何在FastAPI中巧妙实现延迟队列,让任务乖乖等待?

8 月 22 日
阅读 8 分钟
931
url: /posts/174450702d9e609a072a7d1aaa84750b/ title: 如何在FastAPI中巧妙实现延迟队列,让任务乖乖等待? date: 2025-08-22T14:32:13+08:00 lastmod: 2025-08-22T14:32:13+08:00 author: cmdragon

FastAPI的死信队列处理机制:为何你的消息系统需要它?

8 月 21 日
阅读 7 分钟
762
url: /posts/047b08957a0d617a87b72da6c3131e5d/ title: FastAPI的死信队列处理机制:为何你的消息系统需要它? date: 2025-08-21T04:33:54+08:00 lastmod: 2025-08-21T04:33:54+08:00 author: cmdragon

如何让FastAPI任务系统在失败时自动告警并自我修复?

8 月 20 日
阅读 6 分钟
797
url: /posts/2f104637ecc916e906c002fa79ab8c80/ title: 如何让FastAPI任务系统在失败时自动告警并自我修复? date: 2025-08-20T08:18:42+08:00 lastmod: 2025-08-20T08:18:42+08:00 author: cmdragon

如何用Prometheus和FastAPI打造任务监控的“火眼金睛”?

8 月 19 日
阅读 8 分钟
1.2k
url: /posts/e7464e5b4d558ede1a7413fa0a2f96f3/ title: 如何用Prometheus和FastAPI打造任务监控的“火眼金睛”? date: 2025-08-19T05:51:06+08:00 lastmod: 2025-08-19T05:51:06+08:00 author: cmdragon