Still using SimpleDateFormat? Java 8 has been released for N years. Turn to Local DateTime.
Preface
Java 8 has been released for several years, but it has been found that many people still insist on using Simple Date Format and Date for time manipulation. The SimpleDateFormat class is not thread-safe and can cause fatal problems if it is ...
Posted by marian on Sat, 17 Aug 2019 12:09:13 +0200
Kafka Network Layer Resolution, or someone has made it clear
We know that kafka is based on TCP connections. It does not use netty as a TCP server like many middleware. Instead, I wrote a set based on Java NIO.
Several Important Classes
Look at Kafka Client's network architecture first.
This paper mainly analyses the Network layer.
The Network layer has two important classes: Selector and Kaf ...
Posted by TeddyKiller on Fri, 16 Aug 2019 10:19:26 +0200
16. kafka cluster monitoring
kafka cluster monitoring
1. Introduction to Kafka Offset Monitor
Install and deploy Kafka Offset Monitor
Install and deploy the kafka-mamager tool
There are many Kafka cluster monitoring tools, and here we will only describe monitoring for Ka ...
Posted by khushbush on Fri, 16 Aug 2019 05:40:23 +0200
Generate SSL certificates and configure SSL authentication for Kafka
1. Generating relevant SSL certificates
Relevant knowledge points:
Java SSL authentication: SSL (Secure Socket Layer Secure Socket Layer) and its successor Transport Layer Security (TLS) are security protocols that provide security and data integ ...
Posted by evdawg80 on Tue, 13 Aug 2019 15:47:51 +0200
Summary of Spring Cloud Stream
concept
1,group:
There is only one instance consumption in the group. If no group is set, stream automatically creates anonymous and independent groups for each instance -- and each instance consumes them.
There is only one instance consumed per group and load balancing is polled. Usually, when binding an application to a given target, it's ...
Posted by selenin on Sun, 11 Aug 2019 16:10:38 +0200
Python-32-Multithread 2
Synchronization, Asynchronization, Multithreading, Single Thread, Concurrent, Parallel
Multi-threading (asynchronism) needs to solve synchronization problem, and single-threading (synchronization) needs to solve asynchronism problem.
Parallel (without common resources, i.e. multiple CPUs, one CPU per ...
Posted by voitek on Sat, 10 Aug 2019 08:50:06 +0200
nginx lua integrated kafka
NGINX lua integrated kafka
Step 1: Enter the opresty directory
[root@node03 openresty]# cd /export/servers/openresty/
[root@node03 openresty]# ll
total 356
drwxr-xr-x 2 root root 4096 Jul 26 11:33 bin
drwxrwxr-x 44 1000 1000 4096 Jul 26 11:31 build
drwxrwxr-x 43 1000 1000 4096 Nov 13 2017 bundle
-rwxrwxr-x 1 1000 1000 45908 Nov 13 20 ...
Posted by damdempsel on Sat, 03 Aug 2019 10:05:15 +0200
broker expansion of kafka operation and maintenance
Background:
Recently, the company's three-node kafka cluster found that there are two nodes in the cutter box switch failure risk, will randomly appear port up/down situation. Therefore, it is necessary to temporarily migrate these two broker s, and then migrate back after the switch is repaired.
Here is the whole process of the simulation (e ...
Posted by nmreddy on Fri, 26 Jul 2019 15:28:49 +0200
The process of kafka noun interpretation and principle analysis
A Noun Interpretation of Kafka
1.topic
Topic is equivalent to a queue in the MQ of a traditional messaging system. The message sent by the producer side must specify which topic to send to. In a large application system, different topics can be distinguished according to their functions (topic of order, topic of login, topic of amount, e ...
Posted by dudeddy on Wed, 26 Jun 2019 18:45:47 +0200
LocalMQ: Building RocketMQ-like high-performance message queues from scratch
This paper records the design and implementation process of message queue with persistence function which I participated in Aliyun middleware competition a month ago. It should be noted that LocalMQ draws on the core design idea of RocketMQ in Broker. The earliest source code is also based on RocketMQ source code modification. This article cove ...
Posted by Buddha443556 on Mon, 17 Jun 2019 02:06:45 +0200