, MySQL Master-Slave Architecture
MySQL Master-Slave Architecture
11.1 mysql replication
In production environments, if data is read and written in the same database. It is completely impossible to meet the actual needs in terms of security, high availability, or high concurrency. Therefore, data synchronization is usually done by master-slave replication to ensure data secur ...
Added by Keaner on Fri, 04 Feb 2022 19:40:22 +0200
SpringCloud learning of java microservice architecture
The notes come from madness
1, Overview of microservices
1.1. What is micro service?
Microservice architecture is a popular architecture idea in recent years. It is difficult to sum up its concept.
What exactly is a micro service? We hereby quote Martin Fowler, chief scientist of ThoughtWorks, who put forward a paragraph in 2014:
Original ...
Added by dougmcc1 on Thu, 03 Feb 2022 08:50:45 +0200
The 35th day of working hard for a career change programmer - thread, queue
I woke up early today and was a little closer to my goal. The painful conversation time was almost over. All that remained was to finish the work and wait patiently. Although the result was not necessarily the same as I imagined, some changes were also good.
I finished a hard question for the first time. Although I spent a lot of time and look ...
Added by jredwilli on Sun, 30 Jan 2022 06:25:30 +0200
Deploy mysql Cluster of M-M architecture (M-M Architecture)
Deploy mysql Cluster with M-M architecture
The whole mysql5 7 database, and then do database master-slave synchronization, and then let the two database machines be master-slave to each other
Environment: CentOS 7, mysql5 7 (the version of MySQL used as the master and slave of the database must be consistent)
On the master database serv ...
Added by Archbob on Fri, 28 Jan 2022 08:42:59 +0200
True insight: NIO,epoll, multiplexing, better understanding of IO
There is a certain relationship between Java code and system call. Java is an interpretive language (Java is not valuable, but jvm is valuable). The Java code we write is finally compiled into bytecode, and then system call. In this paper, we still learn and understand io from a simple server program.
BIO
No matter which language, as long as ...
Added by ashishag67 on Thu, 27 Jan 2022 23:22:45 +0200
elasticsearch combined with canal to build master-slave replication architecture and integrate the actual battle of canal
catalogue
preface
Build canal
preface
Previously, we have built elasticsearch and elasticsearch head and integrated spring data elasticsearch. The following is the need to use canal to connect mysql and elasticsearch in series.
Build canal
First, we go to GitHub to find the warehouse of canal, and we can see the working principle of ca ...
Added by rgpayne on Thu, 27 Jan 2022 10:37:27 +0200
Understand the use of completable future
preface
There are only two ways to create a Thread: inherit the Thread or implement the Runnable interface. However, both methods have a defect that they do not return a value
After Java 1.5, you can obtain a Future object containing the return value by submitting a Callable to the thread pool
Limitations of Future interface
When the Future ...
Added by morphy@6deex on Mon, 24 Jan 2022 21:53:29 +0200
Logging framework Logback for Java interface testing
1, Introduction
For a mature interface testing framework, log management is essential. In the development and debugging phase, logs can help us locate problems faster; During the operation and maintenance of the test, the log system can help us record most of the abnormal information. Usually, many test frameworks collect log information to mo ...
Added by duk on Mon, 24 Jan 2022 10:01:57 +0200
It's about to grab red envelopes for the Chinese New Year. How to design a red envelope grabbing system
preface
Hello, I'm little P. this article is to share how to design a red envelope grabbing system. I hope it will be helpful to you. It mainly shows the design of the red envelope system. The red envelope algorithm is not the focus, so there is no implementation of double mean method. The scheme described below has been implemented. The code ...
Added by Iank1968 on Sun, 23 Jan 2022 13:27:09 +0200
The key reflection mechanism of salary increase attracts the project manager's attention to you, and the salary increase is within reach!!!!
preface
For example, I was asked by the interviewer a few days ago what is reflection???
And my answer is!!!
Reflection is the key of dynamic language. Reflection allows programs to obtain the internal information of any class with the help of Reflection API during execution, and can directly operate the internal properties and methods of ...
Added by pelleas on Wed, 19 Jan 2022 03:38:15 +0200