Design Mode 20 - Observer
Design Mode 20 - Observer
Summary
Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
Define a one-to-many dependency between objects. When an object's state changes, all dependent objects are notified and updated automatically. Also known as publish ...
Posted by zbee on Wed, 01 Dec 2021 11:02:34 -0800
C # program memory has been leaking. It turned out to be an asynchronous loop!
1: Background1. Tell a storyLast month, a friend came to me and said that there was a memory leak in his program. I don't know how to further analyze it. The screenshot is as follows:My friend, this paragraph has been very concise and comprehensive. Let's talk to windbg.2: Windbg analysis1. What is the leakageAccording to my friend's descript ...
Posted by savetime on Wed, 01 Dec 2021 10:38:05 -0800
Track Cart based on GA, Controller: Xilinx-Ego1
Record the pits and Bug solutions encountered in debugging on the Xilinx-Ego1, and Vivado's code-writing skills for developing the GA, so as to leave a background for future review. The whole article uses the development idea of single-chip computer to develop the field-bus, only to help readers get started quickly, and the development language ...
Posted by aebstract on Wed, 01 Dec 2021 10:37:06 -0800
Spring framework's solution to circular dependency -- three-level cache mechanism
------------Restore content start------------
Recently, I reviewed the basic knowledge related to the Spring framework. The Spring framework often appears in the interview questions to solve the problem of circular dependency. I also read many online blogs. The following is my learning record. If there is anything unreasonable, please correct i ...
Posted by jesirose on Wed, 01 Dec 2021 10:36:21 -0800
etcd backup and recovery in K8S cluster
Etcd is a very important Service of kubernetes cluster. It stores all data information of kubernetes cluster, such as Namespace, Pod, Service, routing and other status information. In case of etcd cluster disaster or etcd cluster data loss, it will affect k8s cluster data recovery. Therefore, it is very important to backup etcd data to realize ...
Posted by whitchman on Wed, 01 Dec 2021 10:13:38 -0800
openstack-M version, learning notes 4
The notes are learned according to the old boy Video + official documents and recorded. If there are mistakes and omissions, those in a good mood can point out them. Video address: https://www.bilibili.com/video/BV1LJ411Y7og?p=12
Mirror service (GRACE)
The mirroring service (GRACE) allows users to discover, register and obtain virtu ...
Posted by quickstopman on Wed, 01 Dec 2021 09:35:01 -0800
Internal class of Java learning notes & API
0x00 overview
This article covers Java knowledge points, internal classes, and API s
0x01 parameter transfer
1.1 class name as formal parameter and return value
The class name is used as the formal parameter of the method
The formal parameter of the method is the class name. In fact, what is needed is the object of the class
What is actuall ...
Posted by pitn on Wed, 01 Dec 2021 09:25:51 -0800
The Spring Cloud Gateway filter precisely controls the exception return (actual combat, fully customized return body)
Welcome to my GitHub
Here we classify and summarize all the original works of Xinchen (including supporting source code): https://github.com/zq2599/blog_demos
Overview of this article
In the Spring Cloud Gateway application, if an exception is not caught when processing a request, the response received by the requester is the default conten ...
Posted by rrn on Wed, 01 Dec 2021 09:14:19 -0800
Detailed explanation of agency mode
1. Agent mode
Agent pattern is a design pattern that is easy to understand. Simply put, we use proxy objects instead of accessing real objects, so that we can provide additional function operations and expand the functions of the target object without modifying the original target object.
The agent mode contains three roles:
Abstract topic r ...
Posted by PC Nerd on Wed, 01 Dec 2021 08:59:27 -0800
Consul is a distributed and highly available system
Consul user manual (feels quite complete)
Using consumer
introduce
Consul contains multiple components, but as a whole, it provides tools for service discovery and service configuration for your infrastructure. It provides the following key features:
Service discovery Consul clients can provide a service, such as api or mysql. Other cl ...
Posted by sherone on Wed, 01 Dec 2021 08:36:24 -0800