Dubbo Classic Questions

1. What is the difference between "read interface" and "write interface" in dubbo?

2. Talk about the load balancing algorithm and characteristics in dubbo?

3. How to calculate the active number in the minimum active number algorithm?

4. Briefly talk about your understanding of the consistent hash algorithm?

5. What did you do during the service release process?

6. What protocols does dubbo have, what are their characteristics, and what is the default value?

7. What are local exposure and remote exposure, and their differences?

8. What is the basis for the service provider to realize failure kicking?

9. Tell me about the local exposure in the dubbo service exposure, and draw pictures to help explain?

10. What registration center do you usually choose, and are there other options?

11. Zookeeper in dubbo is used as the registration center. If the registration center cluster is down, can publishers and subscribers still communicate? (Interview frequently asked questions)

12. Do you use too many threads in the project? If so, tell me where you used multithreading? (Interview frequently asked questions)

13. Which zookeeper java clients have you used?

14. What is the principle that the service provider can realize invalidation? (high frequency questions)

15. What are the nodes of zookeeper, and what is the difference between them? Tell me about the application scenario.

16. Draw a flow chart of service registration and discovery.

17. In dubbo, when will the local zookeeper information cache file be updated? What is the overall process of subscribing to zookeeper information?

18. Talk about your project architecture design (many people tend to answer SSH or SSM when answering this question. Note that the so-called SSH is technical selection, not architecture design)

19. Since dubbo is used in your project, can you tell us how you downgrade the service through dubbo, what are the ways of downgrading, and what are the differences?

20. The dubbo monitoring platform can dynamically change some settings of the interface. What is the principle?

21. Since you said that you have seen the source code of dubbo, tell me if you have encountered any pitfalls? (The degree of distinction is high, and it is also a touchstone to test whether you have seen the source code)

22. What is the principle of dubbo? Please talk briefly

23. Have you ever considered implementing a dubbo-like RPC framework by yourself? If so, how would you implement it? (Interview frequent questions, highly differentiated)

24. You said that you have used mybatis, do you know the principle of the Mapper interface? (If the answer is good, and the keyword of dynamic proxy is mentioned, you will continue to ask, how does this dynamic proxy inject into Mapper through dependency injection? interface?)

25. Describe the process and principle of dubbo service reference

26. Since you mentioned that dynamic proxies are used to encapsulate communication details in dubbo’s service reference, what are the common ways to create dynamic proxies, and what are the differences between them? Which one is used in dubbo? (High-frequency question )

27. In addition to JDK dynamic proxy and CGLIB dynamic proxy, do you know other ways to implement proxy? (high degree of distinction)

28. Do you know about spi, tell me what is spi, why use spi?

29. Do you know about the class loading mechanism? Tell me what is the parent delegation model, what are its disadvantages, is there any familiar case of this disadvantage, and what is the principle to solve this disadvantage?

30. Since you have a certain understanding of spi, is there any difference between dubbo's spi and jdk's spi? If yes, what is the difference?

31. You mentioned that spi in dubbo also adds IoC, then you will talk about Spring's IoC first, and then talk about how it is done in dubbo?

32. You mentioned that AOP is also added to spi in dubbo, so what design pattern is used in this, and how does dubbo do it?

Guess you like

Origin blog.csdn.net/zy_jun/article/details/122451724