今天早上,我们修改了博客程序中的1行代码,将 services.AddDbContextPool 改为 services.AddDbContext ,去掉 DbContextPool . 然后奇迹出现了 —— 单台4个8G的服务器,800 左右的 QPS 不在话下,CPU 的稳健与 .NET Framework 版有的一拼. 到发布博文时间为止,最高可以撑住 1300 的 QPS . DbContextPool 相关链接: EF Core 小坑:DbContextPool 会引起数据库连接池连接…