Talk programming - bridge mode

Bridge Pattern Separate the abstract part from its implementation part so that they can all change independently. motivation When an abstraction can have multiple implementations, inheritance is usually used to coordinate them. Abstract classes define the interface of the object, while concrete subclasses are implemented in different ways. B ...

Added by Loki on Sat, 30 May 2020 18:36:09 +0300

Istio traffic hijacking process

Opening The article about Istio traffic hijacking can be found in a very detailed article in the servicemesher community at present. You can refer to: Sidecar injection and transparent traffic hijacking in Istio . In particular, the "traffic hijacking diagram" collated by the blogger can clearly see the hijacking process. Here I use ...

Added by river001 on Fri, 29 May 2020 09:27:35 +0300

Python basic-10 loop statement

10. Loop statement    for loop statements, Python only provides while and for, not for...each/do...while/while...do, etc. like other programming languages. 10.1 while cycle The basic format of   while in Python is as follows: while condition: doSomething The    example code is as follows: startNum,endNum=0,5 while ...

Added by hd_webdev on Wed, 27 May 2020 16:09:03 +0300

Consumption mode of consumer of pulsar

client processing logic ConnectionPool netty related configurations are available in com.yahoo.pulsar.client.impl.ConnectionPool public ConnectionPool(final PulsarClientImpl client, EventLoopGroup eventLoopGroup) { this.eventLoopGroup = eventLoopGroup; this.maxConnectionsPerHosts = client.getConfiguration().getConnection ...

Added by Nothsa on Wed, 27 May 2020 14:04:46 +0300

Alibaba SMS callback. net sdk bug causes 100% troubleshooting of production service CPU

1: Background 1. Story telling Last year, all the isv short message channels on the Jushi tower of Ali connected to Ali communication. We made a connection transformation and used the. net sdk provided by Ali. website: https://help.aliyun.com/document_detail/114480.html Colleagues used ons -. Net In v1.1.3, there will be a program crash a few ...

Added by youwh on Tue, 26 May 2020 14:08:29 +0300

Java Concurrent dry goods: let you understand the producer consumer problem

Source network, only for learning, if there is infringement, please contact delete. Producer consumer model is a very classic model of multithreading concurrent cooperation. Understanding the producer consumer problem can deepen our understanding of concurrent programming. The so-called producer consumer problem, in fact, mainly contains two ...

Added by duall on Tue, 26 May 2020 13:41:25 +0300

C ා data operation series - 16 SqlSugar conclusion

0. Preface In the previous article, we introduced the addition, deletion, modification and query of SqlSugar in detail, which has satisfied our use in daily engineering development. However, there are a few methods that are not commonly used in development, but are very useful. Let's see what else is interesting. 1. Unusual query Previously, we ...

Added by paullb on Tue, 26 May 2020 11:22:24 +0300

One key package / deployment scheme of Ctrip Apollo

Apollo-docker One click package / deployment scheme of Ctrip Apollo. Almost no need to modify any Apollo source code or configuration to build a rapid development / test environment. Project address: https://gitee.com/ellipse/apollo-docker 1. Download source code Apollo git clone https://gitee.com/nobodyiam/apollo.git Compile script git clone ...

Added by S A N T A on Sun, 24 May 2020 17:56:59 +0300

Multithreading to implement an accumulation (can be specific business) operation

Common practice Add 100 directly here public static void main(String[] args) throws Exception { long start = System.currentTimeMillis(); Integer count = 100; Integer sum = 0; for (int a = 0; a < count; a++) { sum += a; Thread.sleep(100); } System.out.println ...

Added by Mr.Shawn on Wed, 20 May 2020 17:08:55 +0300

Self timer 66 Python ffmpeg bulk compression video

Case story: Bug videos are found during the test, which need to be provided for reference in the development of Bug solution, However, after video shooting, it is too large to be transmitted on wechat client, Therefore, there have been testers using winzip to compress in batches (part1, part2, part3), Then transmit the "chaos" of vid ...

Added by ciaranmg on Tue, 19 May 2020 20:11:39 +0300