lith 4 年之前
父節點
當前提交
5be530886f

+ 1 - 1
dotnet/Doc/PublishFile/Sers单体压测/ServiceCenter/appsettings.json

@@ -44,7 +44,7 @@
 
 
     // RpcData序列化模式。可不指定。默认为Text。
-    // 可为 Newtonsoft、Text、StringBuilder、MessagePack、BytePointor。
+    // 可为 Newtonsoft、Text、MessagePack、BytePointor。
     // 效率依次递增。MessagePack 和 BytePointor 序列化为二进制数据而不是json字符串。
     "RpcDataSerializeMode": "BytePointor",
 

+ 1 - 1
dotnet/Gateway/App.Gateway/appsettings.json

@@ -32,7 +32,7 @@
 
 
     // RpcData序列化模式。可不指定。默认为Text。
-    // 可为 Newtonsoft、Text、StringBuilder、MessagePack、BytePointor。
+    // 可为 Newtonsoft、Text、MessagePack、BytePointor。
     // 效率依次递增。MessagePack 和 BytePointor 序列化为二进制数据而不是json字符串。
     "RpcDataSerializeMode": "Text",
 

+ 4 - 3
dotnet/Library/Sers/Sers.Core/Sers.Core/Module/Rpc/RpcContextData.cs

@@ -19,7 +19,7 @@ namespace Sers.Core.Module.Rpc
         static RpcContextData()
         {
             // RpcData序列化模式。可不指定。默认为Text。
-            // 可为 Newtonsoft、Text、StringBuilder、MessagePack、BytePointor。
+            // 可为 Newtonsoft、Text、MessagePack、BytePointor。
             // 效率依次递增。MessagePack 和 BytePointor 序列化为二进制数据而不是json字符串。
             string rpcDataSerializeMode = ConfigurationManager.Instance.GetByPath<string>("Sers.RpcDataSerializeMode");
  
@@ -27,12 +27,13 @@ namespace Sers.Core.Module.Rpc
             {
                 case "Newtonsoft": Serialization = Newtonsoft_RpcContextData.Instance; break;
                 case "Text": Serialization = Text_RpcContextData.Instance; break;
-                case "StringBuilder": Serialization = StringBuilder_RpcContextData.Instance; break;
+                //case "StringBuilder": Serialization = StringBuilder_RpcContextData.Instance; break;
                 case "MessagePack": Serialization = MessagePack_RpcContextData.Instance; break;
                 case "BytePointor": Serialization = BytePointor_RpcContextData.Instance; break;           
                           
-                default: Serialization = StringBuilder_RpcContextData.Instance; break;
+                default: Serialization = Text_RpcContextData.Instance; break;
             }
+        
         }
 
         #endregion

+ 3 - 0
dotnet/Library/Sers/Sers.Core/Sers.Core/Module/Rpc/Serialization/StringBuilder_RpcContextData.cs

@@ -5,6 +5,9 @@ using Vit.Core.Module.Serialization;
 
 namespace Sers.Core.Module.Rpc.Serialization
 {
+    /// <summary>
+    /// 字符串没有转义双引号、换行等
+    /// </summary>
     public class StringBuilder_RpcContextData : IRpcSerialize
     {
         public static readonly StringBuilder_RpcContextData Instance = new StringBuilder_RpcContextData();

+ 1 - 0
dotnet/Library/Sers/Sers.Core/Sers.Core/Sers.Core.csproj

@@ -29,6 +29,7 @@
 
 
   <ItemGroup>
+    <Compile Remove="Module\Rpc\Serialization\StringBuilder_RpcContextData.cs" />
     <Compile Remove="Util\Consumer\Consumer_Disruptor.cs" />
     <Compile Remove="Util\Consumer\Consumer_WorkerPool.cs" />
     <Compile Remove="Util\Consumer\Consumer_WorkerPoolCache.cs" />

+ 1 - 1
dotnet/ServiceCenter/App.Gover.Gateway/appsettings.json

@@ -32,7 +32,7 @@
 
 
     // RpcData序列化模式。可不指定。默认为Text。
-    // 可为 Newtonsoft、Text、StringBuilder、MessagePack、BytePointor。
+    // 可为 Newtonsoft、Text、MessagePack、BytePointor。
     // 效率依次递增。MessagePack 和 BytePointor 序列化为二进制数据而不是json字符串。
     "RpcDataSerializeMode": "Text",
 

+ 1 - 1
dotnet/ServiceCenter/App.ServiceCenter/appsettings.json

@@ -165,7 +165,7 @@
     },
 
     // RpcData序列化模式。可不指定。默认为Text。
-    // 可为 Newtonsoft、Text、StringBuilder、MessagePack、BytePointor。
+    // 可为 Newtonsoft、Text、MessagePack、BytePointor。
     // 效率依次递增。MessagePack 和 BytePointor 序列化为二进制数据而不是json字符串。
     "RpcDataSerializeMode": "Text",
 

+ 1 - 1
dotnet/ServiceStation/Demo/SersLoader/Did.SersLoader.Demo/appsettings.json

@@ -153,7 +153,7 @@
 
 
     // RpcData序列化模式。可不指定。默认为Text。
-    // 可为 Newtonsoft、Text、StringBuilder、MessagePack、BytePointor。
+    // 可为 Newtonsoft、Text、MessagePack、BytePointor。
     // 效率依次递增。MessagePack 和 BytePointor 序列化为二进制数据而不是json字符串。
     "RpcDataSerializeMode": "Text",
 

+ 1 - 1
dotnet/ServiceStation/Demo/Serslot/Did.Serslot.Demo/appsettings.json

@@ -40,7 +40,7 @@
 
 
     // RpcData序列化模式。可不指定。默认为Text。
-    // 可为 Newtonsoft、Text、StringBuilder、MessagePack、BytePointor。
+    // 可为 Newtonsoft、Text、MessagePack、BytePointor。
     // 效率依次递增。MessagePack 和 BytePointor 序列化为二进制数据而不是json字符串。
     "RpcDataSerializeMode": "Text",
 

+ 0 - 75
dotnet/readme.md

@@ -1,75 +0,0 @@
-
-当前为Sers2版本, RequestQueue模式
---------------------------------------------
-
-
-# Sers微服务架构协议(Sers v2.1.1)
-Sers为一套 跨平台 跨语言 的开源 微服务架构协议。
-
-# 当前项目为netcore版本
->开发环境 [netcore2.1](https://dotnet.microsoft.com/download/dotnet-core/2.1) 
-
-
-# 部署
-参见[Sers_NetCore_HelloWorld_Publish](https://github.com/serset/Sers_NetCore_HelloWorld_Publish/tree/master/Sers/Latest)
-
-
-# 性能初测
->部署(或运行)ServiceCenter Gover Gateway Robot StationDemo五个项目。
-
->qps数据来源于jmeter和 http://ip:6022/ApiStationMng.html 页面中的统计
-
-
-项目均部署在同一机器,消息队列使用SocketMq
-   
-| Os  | 调用线程数 | qps(内部调用)  | qps(http网关调用-本机)  |qps(jmeter调用http网关-外部)  |
-| ------------ | ------------ | ------------ | ------------ |------------ |
-|  Ubuntu(6核2G) | 10 | 7000  | 2000 | 1700 |
-|  CentOs7(1核1G) | 10 | 4000  | 1100 | 840 |
-|  CentOs7(2核1G) | 10 | 5000  | 1500-2000 | 1300|
-|  CentOs7(6核1G) | 10 | 8000-9400  | 3000 | 1800 |
-| Windows10| 10 | 6000 | 400| 1600 |
-| Server2012(6核2G)| 10 | 15000-17000 |  | 2200 |
-
-
-
-# 模块
-
-## (x.1)消息队列Mq
- Sers\Sers.Mq
-
-
-## (x.2)服务中心(ServiceCenter)
-  App\ServiceCenter\App.ServiceCenter
-
-
-## (x.3)服务治理(Gover)
-  App\ServiceCenter\Gover\UI\App.Gover.Gateway
-  
-  http://localhost:6022/index.html
-
-
-
-  
-## (x.4)网关(ServiceStation)
-  App\Gateway\App.Gateway
-
-
-
-
-## (x.5)服务站点(ServiceStation)
-  App\Station\StationDemo\App.Station.StationDemo
-  
-  App\Station\Robot\App.Station.Robot
-  
-  App\Station\AuthCenter\App.Station.AuthCenter
-
-
-
-
-
-
-
-
-
-

+ 7 - 15
readme.md

@@ -31,26 +31,18 @@ Sers为一套跨平台跨语言的开源微服务架构协议。
  robot内部调用	:
   配置	 方式 线程数(处理/请求)     qps	        
 
- 
+
+i7-7700K(4.2GHZ) 4核8线程
+win10  ApiClientAsync 8/8	      140万 
+
+
 CentOs8(2x24核) ApiClient      4/4           6-9万(6%)
 CentOs8(2x24核) ApiClientAsync 16/32	     24-36万(12%)   
  
-i7 7700K 4核8线程
-win10(4.2GHZ)  ApiClientAsync 16/32	      33万(90%)
-win10(vr)      ApiClientAsync 8/16	      38万(90%)
-win10(vr)      ApiClientAsync 8/8	      37万(90%)
-win10(vr)      ApiClientAsync 4/8	      32万(50%)
-win10(vr)      ApiClientAsync 4/4	      33万(50%)
 
 
-4/8   55万   52%
-4/16  53万   53%
-8/8   65万   88%
-8/16  63万   86%
-
-
-i7 7700K 4核8线程  ApiClientAsync 
-win10(4.2GHZ)   16/32	      33万(90%)
+ 
+