Open Alice52 opened 4 years ago
reproduce, make sure it can produce in env.
find URL in this action
analysis each request time cost
find out where the time spend
look into why it spends so much time
look into which statement slow, why
_logger.LogError("send: zack 1"); await messageSender.SendAsync(message); _logger.LogError("send: zack 2")
do search for relevant syntax feature
analysis
2627.3842ms ------ buyin Send 2020-04-02 15:08:15.1928 2020-04-02 15:08:15.4540 2612 tool receive 2020-04-02 15:08:15.4540 2020-04-02 15:08:15.6398 1858 tool send 2020-04-02 15:08:15.6398 2020-04-02 15:08:15.8337 1939 buyin receive 2020-04-02 15:08:15.8337 2020-04-02 15:08:16.2407 4070 -------------------------------------------------------------------------------- 10479 buyin Send 2020-04-02 15:08:16.2407 2020-04-02 15:08:16.6921 4514 tool receive 2020-04-02 15:08:16.6921 2020-04-02 15:08:16.8956 2035 tool send 2020-04-02 15:08:16.8956 2020-04-02 15:08:17.1060 2104 buyin receive 2020-04-02 15:08:17.1060 2020-04-02 15:08:17.4967 3907 -------------------------------------------------------------------------------- 12560
services.AddSingleton<AzureServiceBusUtil>(); services.AddSingleton<TopicClient>(); services.AddSingleton(provider => { Func<string, string, TopicClient> func = (connectionString, entityName) => { return connectionString == null || entityName == null ? null:new TopicClient(connectionString, entityName); }; return func; });
_tableFillCreditRequestTopicClient = topicClientFactory(_tableFillCreditConnectionString, _tableFillCreditRequestTopic);
pool: every thing can be re-used should be pooled, such as Thread.
MER, NET, DIST IO
step
reproduce, make sure it can produce in env.
find URL in this action
analysis each request time cost
find out where the time spend
look into why it spends so much time
look into which statement slow, why
do search for relevant syntax feature
analysis
solution
concept
pool: every thing can be re-used should be pooled, such as Thread.
more
MER, NET, DIST IO
reference