Single instance mode of creation mode

1 Overview The singleton pattern should be the simplest and most complex creation pattern. Because we all know this pattern: it is nothing more than to ensure that there is only one instance of an object in the system. However, it is not easy to realize a perfect singleton mode. 2 single case mode In general, the implementation of the singleton ...

Posted on Sat, 28 Mar 2020 09:40:49 -0700 by SkyRanger

Dubbo Source Analysis - Dubbo SPI gets extended interface instances through getExtension

Beginning Four previous articles have analyzed several uses of Dubbo SPI and how it can be used in Dubbo. Use of Dubbo SPI (1) - Extension point automatic packaging Usage of Dubbo SPI (2) - Extension point adaptive Dubbo SPI usage method (3) - automatic assembly of extension points Dubbo Source Code Analysis - Application of Dubbo SPI in Proto ...

Posted on Sat, 28 Mar 2020 09:31:38 -0700 by rem

SpringBoot learning notes-012

Five, Docker 5.1, introduction Docker is an open source application container engine and a lightweight container technology; Docker supports compiling software into an image, and then configures various software in the image to publish the image, which can be directly used by other users; The running image is called a container, and container s ...

Posted on Sat, 28 Mar 2020 04:19:06 -0700 by The MA

Detailed application of Singleton, Factory, Strategy in project

1. Preface The other day I read a framework document with a description like "From an object factory......"Prompted to write this article.Although some patterns are simple and simple, they are common and useful. In conjunction with a recent project scenario, review some of the patterns applied to Singleton, Factory, Strategy. Singlet ...

Posted on Sat, 28 Mar 2020 00:04:40 -0700 by Dave100

Build a simple SMM framework

SSM Framework Integration Spring + Spring MVC + MyBatis Spring MVC implements the MVC design pattern, MyBatis implements the data persistence layer, and Spring manages the creation and dependency injection of Spring MVC and MyBatis-related objects. Create a Maven project, pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns ...

Posted on Fri, 27 Mar 2020 09:13:42 -0700 by NME

Talk about skywalking's storage Zipkin plugin

order This paper focuses on the storage Zipkin plugin of skywalking ZipkinStorageModuleElasticsearchProvider skywalking-6.6.0/oap-server/server-storage-plugin/storage-zipkin-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/zipkin/elasticsearch/ZipkinStorageModuleElasticsearchProvider.java public class ZipkinStorageModuleElas ...

Posted on Fri, 27 Mar 2020 08:08:36 -0700 by brokenme

linux rpc case helloworld

Client code #include<stdio.h> #include<rpc/rpc.h> #include<string.h> #include<stdlib.h> #define PROGNUM 12345 #define PROGVER 1 #define PROGPRO 1 #define size 10 char* real_invoke(char *a) { static char b[20]={0}; if( strcmp(a,"hello") == 0) { memcpy(b,"world",6); return b; ...

Posted on Fri, 27 Mar 2020 07:09:56 -0700 by lady_bug

8. Chapter 8 of spring cloud, upgrade, service registration and discovery Eureka, Zookeeper and Consule

Chapter 7 of spring cloud, upgrade, service registration and discovery Eureka, Zookeeper and Consule 1, Basic concepts 1. Service governance In the traditional remote RPC remote call framework, it is very complex to manage the dependency between each service and service. So we need to use service governance to manage services and services ...

Posted on Fri, 27 Mar 2020 07:01:01 -0700 by threaders

How to use the ystrix component of SpringCloud

Circuit Breaker Solution Spring Cloud Hystrix Component. Take 2.2.0.release as an example to show you how to get started with this component. Core concepts hystrix: is commonly referred to as a circuit breaker component hystrix-dashboard: breaker monitoring statistics display panel component Turbo: Multi-node breaker statistics consolidation d ...

Posted on Thu, 26 Mar 2020 21:28:31 -0700 by ronverdonk

Python object-oriented (class, inheritance of class)

Python Object Oriented Remember one sentence: Classes are templates, while instances are objects created from classes. Class is literally understood in the beginning of school. It can be unilaterally thought to be a kind. It is a sampling of similar characteristics, that is, something similar, which can abstract similar characteristics of tran ...

Posted on Thu, 26 Mar 2020 11:21:52 -0700 by redhair