On the second side of the Gaode Java post, I asked a bunch of source code, microservices, distributed, Redis, tired

Some time ago, a fan went to interview Ali's Gaode map, wow, that's a tiring heart...

On the second side of the Gaode Java post, I asked a bunch of source code, microservices, distributed, Redis, tired

 

After the first round of interviews, it was OK. Basically, they asked some basic things. In the second round of interviews, the interviewer asked a bunch of source code, middleware, and distributed things. The more they answered, the more confusing they were. ......

The thing is like this.....

Interviewer: Hello! Some of your information has been initially understood, let’s go directly to the topic!

Programmer: Okay!

Interviewer: Talk about your understanding of Spring IoC and AOP

Programmer: IoC is a design idea, which is to transfer the control of objects created manually in the program to the Spring framework to manage...

AOP can encapsulate the logic or responsibilities (such as transaction processing, log management, access control, etc.) that are not related to the business but are called by the business modules, which is convenient to reduce the duplication of the system code, reduce the coupling between modules, and have Conducive to future scalability and maintainability...

Interviewer: Well, the answer is pretty good, then you can talk about how to implement Spring security in Spring Boot applications?

Programmer: I lost it, I was unprepared, the chrysanthemum suddenly tightened! It's over.... This is not familiar...

Interviewer: If you are asked to write a message queue, how to design the architecture?

Programmer: Probably that's it... Let's talk about it

Interviewer: Okay, do you have anything to ask me?

Programmer: Hmm... Do you think I still have a chance?

Interviewer: If nothing else, it should be gone...

On the second side of the Gaode Java post, I asked a bunch of source code, microservices, distributed, Redis, tired

The interviewer confused me with questions. Obviously, Gothe's two sides are still dead. Let's just follow the principle of compensation.

After coming back, I made a classification of these topics and sorted out the answers (I am obsessive-compulsive ~ Crazy supplement knowledge~) divided into redis cache, high concurrency, distributed, microservice, source code, concurrency, etc., and then share my high Demianjing and some of my study notes, the full version of the notes can be obtained after [Like+Follow] and private message [Notes]!

Real questions about Spring source interview:

  • What is the spring framework? What are the main modules of the spring framework?
  • What are the benefits of using the spring framework?
  • What is Inversion of Control (IOC)? What is dependency injection?
  • Please explain the IOC in the spring framework?
  • What is the difference between BeanFactory and ApplicationContext?
  • How many ways to configure spring?
  • How to configure spring based on XML configuration?
  • Talk about your understanding of Spring IoC and AOP

Spring Mind Map

On the second side of the Gaode Java post, I asked a bunch of source code, microservices, distributed, Redis, tired

 

Spring source study notes

On the second side of the Gaode Java post, I asked a bunch of source code, microservices, distributed, Redis, tired

 

Interview questions about microservices:

  • Zookeeper in Dubbo acts as the registry. If the registry clusters are all down, can publishers and subscribers still communicate?
  • What are the layers of Dubbo's overall architecture design?
  • What is Spring Boot? And the advantages and disadvantages of Spring Boot?
  • How do you understand Starters in Spring Boot?
  • What does service registration and discovery mean? How to achieve Spring Cloud?
  • The role of Spring Cloud circuit breaker
  • What is a Hystrix circuit breaker? Do we need it?

Microservice study notes

On the second side of the Gaode Java post, I asked a bunch of source code, microservices, distributed, Redis, tired

 

On the second side of the Gaode Java post, I asked a bunch of source code, microservices, distributed, Redis, tired

 

About distributed interview questions:

  • Message idempotence: how to ensure that messages are not repeatedly consumed?
  • High availability: how to achieve HA for message queues?
  • Message queue selection: How does Kafka achieve high performance?
  • Message queue selection: Which scenarios does RocketMQ apply to?
  • How to achieve system current limit in high concurrency scenarios?
  • Downgrades and circuit breakers: how to enhance service stability?
  • How to choose a load balancing strategy suitable for the business?
  • Tell me about the working principle of dubbo? Can the registration center continue to communicate after hanging up? Tell me about the process of an rpc request?
  • What communication protocols does dubbo support? Which serialization protocols are supported? Talk about Hessian's data structure? Does PB know? Why is the efficiency of PB the highest?
  • What are the dubbo load balancing strategies and cluster fault tolerance strategies? What about dynamic proxy strategies?
  • How to perform service governance, service degradation, failure retry and timeout retry based on dubbo?
  • What are the solutions for distributed transactions?
  • Compared with the two-phase submission, what are the improvements of the three-phase agreement?

Distributed study notes

Distributed actual combat of major first-line factories:

On the second side of the Gaode Java post, I asked a bunch of source code, microservices, distributed, Redis, tired

 

On the second side of the Gaode Java post, I asked a bunch of source code, microservices, distributed, Redis, tired

 

On the second side of the Gaode Java post, I asked a bunch of source code, microservices, distributed, Redis, tired

 

Redis related interview questions

  • Why use Redis / Why use cache?
  • Why is Redis so fast?
  • What data types does Redis have?
  • What is the persistence mechanism of Redis? Their advantages and disadvantages?
  • We know that the expiration time of the key is set through expire, so how to deal with the expired data?
  • What are the memory elimination strategies of Redis?
  • Does Redis transaction guarantee atomicity and does it support rollback?
  • High availability of cache: How to ensure high availability of cache?
  • Can you talk about the working principle of redis cluster mode?
  • In cluster mode, how are redis keys addressed?
  • What are the algorithms for distributed addressing? Know the consistent hash algorithm?
  • What is the concurrency competition problem of redis? how to solve this problem? Do you know the CAS scheme of redis transactions?

Redis study notes

On the second side of the Gaode Java post, I asked a bunch of source code, microservices, distributed, Redis, tired

 

On the second side of the Gaode Java post, I asked a bunch of source code, microservices, distributed, Redis, tired

 

At last

Fans shared this with me. I shared some of the study notes, interview questions and study routes I compiled with him. I think these are very useful things. You can also follow along to learn and fill in the gaps.

Get the full version:

"Java Advanced Interview"

On the second side of the Gaode Java post, I asked a bunch of source code, microservices, distributed, Redis, tired

"Java Advanced Architecture Knowledge"

On the second side of the Gaode Java post, I asked a bunch of source code, microservices, distributed, Redis, tired

"Algorithm Knowledge"

On the second side of the Gaode Java post, I asked a bunch of source code, microservices, distributed, Redis, tired

Guess you like

Origin blog.csdn.net/m0_46757769/article/details/108812015