Interview Topic: Prosperity Optimizing Two Sides

  1. JVM memory model? What garbage collection algorithm was used in the old age? Talk about the generational algorithm? What objects does GC Roots contain?

Which objects are included in GC Roots
(1) Referenced objects in the virtual machine (JVM) stack
(2) Class static properties referenced in the
method area (3) Constant referenced objects in the method area (final constant value)
(4) Local methods Reference object of stack JNI

  1. What is the difference between Spring BeanFactory and FactoryBean? What are the implementation classes of BeanFactory? ApplicationContext is an interface or an implementation class

  2. Which design pattern is BeanFactory? The six principles of design patterns? What design patterns does Spring use?

3.1 Simple factory pattern What other design patterns does Spring use?

3.2 SOLID
1) Single Responsibility Principle: Single Responsibility Principle
2) Open Closed Principle: Open and Closed Principle
3) Liskov Substitution Principle: Liskov Substitution Principle
4) Law of Demeter: Dimit's Rule
5) Interface Segregation Principle: Interface Segregation Principle
6 ) Dependence Inversion Principle: Dependence Inversion Principle

  1. The transaction isolation level of the database? How does MySQL achieve a repeatable read transaction isolation level?

  2. What is the difference between B-tree and B+-tree? Can B-tree non-leaf nodes store data? What is the difference between a clustered index and a non-clustered index? What is a covering index?

  3. How to realize the idempotence of the interface

  4. How do microservices communicate through Consul? Consul architecture model? Feign's interaction principle

  5. What are the architectural considerations of the system? What aspects need to be involved in the architecture review?

  6. What aspects should be considered in API interface design? How to consider interface performance design? How to ensure safety

Guess you like

Origin blog.csdn.net/lxn1023143182/article/details/115081433