随笔分类 -  .NET系统架构

摘要:中间件参考项目: https://github.com/aspnet/basicmiddleware 在HTTP的请求过程中,可以对请求做各种操作。 比如根据不同的http header,返回不同的信息,或者更改response; 根据不同的请求path,做不同的处理 // This method 阅读全文
posted @ 2020-01-31 20:51 龍☆
摘要:1. MemoryCache中的缓存在集群中的每个节点不能同步 解决方案: A. 将缓存内容迁移到系统外部的Redis缓存 B. 在使用MemoryCache的时候设置过期时间(当对数据同步要求不是那么严格的时候使用) 2.C# 静态变量各集群节点不能同步 解决方案: 将各节点需要共用的静态变量序列 阅读全文
posted @ 2019-08-29 14:16 龍☆ 阅读(608) 评论(0) 推荐(0)
摘要:详细说明转 https://www.cnblogs.com/dotnet261010/p/9034594.html 最近项目用到了多个参数的泛型方法,这里说明下泛型的组成: 本方法中包含了3个类型参数,分别是Process<TRequestBody,TTestParam, TResponse>,在P 阅读全文
posted @ 2019-07-30 17:15 龍☆ 阅读(203) 评论(0) 推荐(0)
摘要:Source from :https://www.codeproject.com/Articles/1260600/Speed-up-ASP-NET-Core-WEB-API-application-Part-1 Download source from GitHub Introduction In 阅读全文
posted @ 2019-05-02 17:23 龍☆ 阅读(462) 评论(0) 推荐(0)
摘要:转自: https://www.infoq.com/articles/advanced-architecture-aspnet-core ASP.NET Core's new architecture offers several benefits as compared to the legacy 阅读全文
posted @ 2019-05-01 21:20 龍☆ 阅读(419) 评论(0) 推荐(0)