Responsibility chain model

1, Introduction to responsibility chain model 1.1 definitions The Chain of Responsibility Pattern creates a chain of receiver objects for requests. This mode gives the type of request and decouples the sender and receiver of the request. This type of design pattern belongs to behavioral pattern.In this pattern, each recipient usually c ...

Posted by anauj0101 on Tue, 02 Nov 2021 10:35:42 -0700

Introduction to algorithm C-876. Intermediate node of linked list

LeetCode problem brushing - algorithm learning plan (Introduction) Title Description Introduction of ideas My idea: first obtain the length len of the linked list, and the len / 2 + 1 node is the intermediate node (starting from 1) The official provides the fast and slow pointer method. I think it's good. See the following for ...

Posted by BlaineSch on Tue, 02 Nov 2021 10:30:34 -0700

Shangyangge springcloud config

SpringCloud Config configuration center summary What is it? SpringCloud Config provides centralized external configuration support for microservices in the microservice architecture. The configuration server provides a centralized external configuration for all environments of different microservice applications. How do you play? Spring c ...

Posted by clapton on Tue, 02 Nov 2021 10:07:28 -0700

Collection Frame Notes

aggregate First: Set concept The container of the object, which implements the common operations on the object, similar to the array function. Two: Differences between sets and arrays (1) Array length is fixed, set length is not fixed. (2) Arrays can store basic types and reference types, and collections can only reference types. Collecti ...

Posted by alexscan on Tue, 02 Nov 2021 09:38:01 -0700

RocketMQ-Producer Start Process Decryption

The following is the RocketMQ - Producer series article index: 1: Start the process (this article) 2: Routing dynamic updates 3: Send Mode Analysis + Message Type Difference 4: Sending process of producer message 5: Routing queue selection, client redundancy policy (QA) Introduction to Producer Producer is the sender of the Ro ...

Posted by Pi_Mastuh on Tue, 02 Nov 2021 09:18:26 -0700

Istio installs and deploys sample microservices

install Prepare k8s environment in advance and download Istio installation package , I use version 1.6.14 here, and the k8s version is v1.19.8 tar zxvf istio-1.6.14-linux-amd64.tar.gz cd istio-1.6.14/ cp bin/istioctl /usr/bin View a list of profiles for different installation modes istioctl profile list You can print the contents of the confi ...

Posted by powelly on Tue, 02 Nov 2021 09:16:29 -0700

day01 first knowledge of C language and gcc compilation process

1, The solution prompt window flashes: 1. adopt system()Function solution: stay return 0;Previously added system("pause"); Function call. 2. With the help of VS Tool solution: On the project --->Right click ---> attribute ---> Configuration properties ---> Connector ---> system ---> Subsystem ---> Select con ...

Posted by sryder on Tue, 02 Nov 2021 09:00:54 -0700

751-C + + design pattern - singleton pattern

Design pattern concept In brief, the design pattern means that when solving a certain kind of problem scenario, there is an established and excellent code framework that can be used directly. Compared with the problem-solving method we have found out ourselves, it has the following advantages: 1. The code is easier to maintain, and the readabi ...

Posted by biffta on Tue, 02 Nov 2021 08:53:12 -0700

Learn Bash debugging in 10 minutes

Shell is a program for the interaction between users and the operating system. It is often used to perform some automated or repetitive and cumbersome tasks. Now all Linux systems basically bring this program. We only need to write shell scripts and execute them directly. There is no need to install additional software and configure the compi ...

Posted by bluwe on Tue, 02 Nov 2021 08:41:08 -0700

JavaScript summary [3] data type

JavaScript data type advanced Number type Common number types Decimal: 121 Binary: 01011 Octal: 0o377 Hex: 0xff Scientific counting method: 1.23e6 NaN Convert to string:. toString(base) Rounding Math.floorMath.ceilMath.roundMath.trunc: remove the content after the decimal point, which is not supported by IE browser 0.1+0.2 Sim ...

Posted by edkellett on Tue, 02 Nov 2021 08:34:05 -0700