Private toolset 3 - JSON assembly class

Confucius said, "if you want to do well, you must sharpen your tools first." github address: https://github.com/redAntCpp/CSharpTools When dealing with web requests, it is inevitable to deal with data. The common data interaction methods are XML and JSON. In C #, XML has systematic help classes, so records are no longer described. ...

Posted by wilzy1 on Sun, 06 Feb 2022 19:47:09 +0100

. Net project template advanced

      Friendly tips: This article is a little long and winding. Come on!   The last article briefly explained net project template is created mainly through the project file * csproj is added under the same directory template.config folder and template JSON, and then use dotnet new -i to install the project template. This article continues to ...

Posted by Lukey on Fri, 04 Feb 2022 09:34:17 +0100

Single responsibility lies in NET

Single responsibility is the guiding ideology of reducing coupling, which is applicable to a micro service, a type and a method. Micro service layer: Microservices are generally divided according to business areas: Pharmacy microservices are pharmacy businesses, and nurse station microservices are nurse station businesses. In a broad sense, the ...

Posted by wilku on Thu, 03 Feb 2022 03:05:59 +0100

『AgileConfig』. NET lightweight configuration center agileconfig

describe The lightweight configuration center developed based on NetCore is simple to deploy, configure and use. It can be adopted according to the needs of individuals or companies. Deployment brief answer: at least one data node is required to support docker deploymentSupport multi node distributed deployment to ensure high availabilityIn a ...

Posted by CorfuVBProgrammer on Wed, 02 Feb 2022 12:15:09 +0100

. NET architecture tips - reflection, architect magic weapon I

For example, this is my voice. The frequency of reflection in my development is still relatively high. It feels like a lot of money. A piece of complex code can save a lot of time; However, it brings a problem that the performance is relatively poor, so we should choose a suitable scenario to use. The basic usage of reflection in C # is not des ...

Posted by jdaura on Wed, 02 Feb 2022 09:09:49 +0100

(update time) June 3, 2021 mall high concurrency spike system (. NET Core version) 24 - Performance Optimization - nginx load balancing optimization

1, On the load balancing of Nginx In the server cluster, Nginx acts as a proxy server (i.e. reverse proxy). In order to avoid excessive pressure on a single server, it forwards requests from users to different servers. 2, Nginx load balancing strategy Load balancing is used to select a server from the list of back-end servers defined in the ...

Posted by jpbox on Wed, 02 Feb 2022 07:06:43 +0100

GraphQL: facing complex types

GraphQL is not only a query language for API, but also a runtime to meet your data query. GraphQL provides an easy to understand and complete description of the data in your API, so that the client can accurately obtain the data it needs without any redundancy. It also makes it easier for the API to evolve over time and can be used to build pow ...

Posted by 2005 on Wed, 02 Feb 2022 00:00:53 +0100

How to automatically feed in Docker environment NET program to generate Dump

preface Previously, the "first-line code farmer" wrote an article on how to dump automatically under windows. It happened that he had a demand for dump under the docker environment. Therefore, this article is based on the article of the boss. tool dotnet-dump (https://docs.microsoft.com/en-us/dotnet/core/diagnostics/dotnet-dump) Pr ...

Posted by Pantho on Mon, 31 Jan 2022 15:26:44 +0100

. NET architecture tips - reflection, architect magic weapon I

For example, this is my voice. The frequency of reflection in my development is still relatively high. It feels like a lot of money. A piece of complex code can save a lot of time; However, it brings a problem that the performance is relatively poor, so we should choose a suitable scenario to use. The basic usage of reflection in C # is not des ...

Posted by kc11 on Sun, 30 Jan 2022 19:31:33 +0100

. NET architecture tips - reflection, architect magic weapon III

Through two blog posts, we learned that reflection accesses objects and members in objects through non instantiation (new). Not only that, reflection can also break through the restriction of access modifiers and spy on all members (fields, attributes and methods) inside objects from the perspective of God, including private members, It provide ...

Posted by koopmaster on Sat, 29 Jan 2022 15:43:21 +0100