What does Ali say about n+ 1

We should mainly rely on ourselves, and a firm attitude is more important.

The following is the interview method and process.

1 Step 1, introduce yourself:

Personal answer: briefly say what university you graduated from and when you graduated; [Undergraduate], self-study, usually learning java methods, what middleware and technology are good at; Some highlight projects involved in my own work, two projects of github, tcc, are divided into library and table.

Keep it for about 2 minutes, get familiar with what you are good at, and then you will probably cut in based on your project.

Step 2: Interview questions

The sub-library and sub-table components independently developed by the project I participated in are cut into people.

1 my routing algorithm: hash consistency

How to implement the consistency algorithm of 1. 1 project?

How to implement 1 Hash consistency algorithm, what's good?

? Will 1.3 have a hash collision problem? Issues related to hash conflict in hashmap.

What other routing algorithms: modulus, time slice, etc.

2. 1 Why not take the module?

2.2? Advantages of modulo: [The algorithm is simpler, omitting the loading of hash ring], and modulo is easier to unfold smoothly.

2.3? How many algorithms realize some conceptual problems brought by many routing algorithms: abstract programming oriented and dependency inversion.

3 design mode: [choose a few familiar ones and I will say the following three]

template method

factory

Singleton: Singleton scenario: [Large objects are loaded at one time, reducing memory, io, bandwidth, etc ]|[spring Singleton reduces memory consumption] Lazy Singleton realizes the security of both [synchronous and static inner classes].

4. Introducing mysql into different libraries and tables.

1 mysql design architecture

2 innodb storage engine related issues

3 b+ tree, query complexity, how to balance the b+ tree, how to prevent the tree from becoming a linked list, and the realization of the b+ tree.

4 How to create an index:

5 how to adjust the index:

5 finally:

The basis of interviewer's suggestion needs to be strengthened, and the design mode needs to be deepened systematically.

Can you face the scene? The answer is yes.

————————————————

Copyright statement: This article is the original article of CSDN blogger "Time Man", which follows the CC 4.0 BY-SA copyright agreement. Please attach the original source link and this statement.

Original link: /QQ _ 35529969/ article/details/102556534