Big talk design pattern -- strategy pattern

Strategy model Now, let's take a look at one of the most useful design patterns: the strategy pattern. definition The policy pattern defines the algorithm family and encapsulates them separately so that they can replace each other. This pattern makes the algorithm change independent of the custUTF-8...

Posted by mastercool on Fri, 28 May 2021 03:54:52 +0930

Micro service registry: Consul -- service discovery

Article series: Microservice registry: Consul -- concept and basic operation Micro service registry: Consul - service registration I. overview With Consul's service registration finished, it's time for service discovery. If you have experience in using RPC framework, such as nacos, eureka, dubbUTF-8...

Posted by burfo on Sun, 30 May 2021 03:35:44 +0930

Learning notes for mca architect and Java Architect of horse soldier

Principle of thread pool thread reuse First of all, let me talk about a basic concept. After calling the start method, the thread enters the Runnable state. Once it gets the cup time slice, it starts to execute the run method. Once the business execution of the run method is completed, the threUTF-8...

Posted by SlyOne on Sun, 30 May 2021 05:30:52 +0930

Beauty of design patterns (c + +) - notes-44-interface

When the creation logic is complex and it is a "big project", we will consider using factory mode to encapsulate the creation process of objects and separate the creation and use of objects. Why is the creation logic more complex? I summarize the following two situations. The first case: similaUTF-8...

Posted by phpfreakjav on Tue, 08 Jun 2021 06:49:04 +0930

The importance of the correct use of exceptions in the microservice architecture is ranked in the top three, don't you have any opinions

The importance of the correct use of exceptions in the microservice architecture is ranked in the top three, don't you have any opinions I haven't seen you for a long time. I wish you a happy Dragon Boat Festival. Recently, I want to talk about the abnormality. My thinking seems to form a closeUTF-8...

Posted by mick_otoole on Wed, 16 Jun 2021 03:20:51 +0930

Interview asked Java static agent / dynamic agent? Don't be afraid, it's OK!!

Understanding Java Dynamic Proxy requires a certain understanding of java reflection mechanism What is the agency model # In some cases, a client can't or doesn't want to directly access another object, so it needs to find an intermediary to help complete a task. This intermediary is the proxy UTF-8...

Posted by cody44 on Thu, 01 Jul 2021 03:30:36 +0930

Java interview will ask -- array, declaration, initialization, bubble, multidimensional array, sparse array

array Array is an ordered collection of data of the same typeArray describes a number of data of the same type, arranged and combined in a certain orderEach data is called an array element, and each array element can be accessed by a subscript. Array declaration creation You must first declare UTF-8...

Posted by soniared2002 on Sun, 11 Jul 2021 06:40:09 +0930

Istio inlet traffic routing

Undertake the above Service mesh - kubernetes & istio development environment setup (Mac OS) , the above describes the construction of the development environment k8s+Istio and the deployment of official examples, but through the above examples, we still can't understand how the traffic flows UTF-8...

Posted by prometheos on Mon, 02 Aug 2021 09:25:26 +0930

Introduction, Principle and HelloWorld of Vert.x

Introduction to Vert.x Official Documents http://vertx.io/docs/vertx-core/java/ About Vert.x Vertx, a JVM-based, lightweight, high-performance application platform, is ideal for mobile backend, internet, enterprise application architecture. Vertx, based on Netty full asynchronous communication,UTF-8...

Posted by robertvideo on Tue, 10 Aug 2021 02:34:23 +0930

Scenario Solution for Distributed Cluster Architecture

Distribution and clustering are different. Distribution must be a cluster, but clusters are not necessarily distributed (because clusters work together with multiple instances, and distributed splits a system into multiple instances;Clusters are not necessarily distributed because replicated clUTF-8...

Posted by PnHoPob on Wed, 11 Aug 2021 01:35:42 +0930