Recently received feedback from a fan! This fan has successfully joined Ali xiaobian is very envious ah!

Today I will share this 30W word Java interview notes with you. It happens that this information is also compiled by an Ali technical officer. This is not considered “shooting oneself in the foot” haha!

Java Interview Notes

The content of this information is very comprehensive and detailed, there are Java entry, foundation, string, advanced, project, virtual machine, database, micro services, algorithms, concurrency, threading, collection, Linux, interview questions and so on Java related technical points, I hope you can rely on this information to point to offer!Content Overview:

Detailed display of contents

Internet Java engineer interview questions

MyBatis interview questions

  1. What is Mybatis?
  2. The advantages of Mybaits
  3. Disadvantages of MyBatis framework
  4. MyBatis framework for applications
  5. What are the differences between MyBatis and Hibernate?
  6. What’s the difference between #} and $}?
  7. What if the attribute names in the entity class are different from the field names in the table?
  8. How to write fuzzy query like statement?
  9. Usually an Xml mapping file will write a Dao interface corresponding to it. What is the working principle of this Dao interface? Can methods in the Dao interface be overloaded if their parameters are different?
  10. How does Mybatis paginate? Paging? How does paging plug-ins work?
  11. Mybatis how sq | execution results encapsulated in the target object and returns? What are the mappings?
  12. How do I perform a batch insert?
  13. How do I get automatically generated (primary) key values?
  14. How do I pass multiple parameters in Mapper?
  15. What’s the use of Mybatis dynamic sq |? How does it work? What dynamic SQL is there?
  16. Xml mapping file, in addition to the common select | insert | updae | delete tags, what other tags?
  17. Mybatis semi-automatic ORM mapping tool What’s the difference between it and automatic?
  18. One-to-one, -to – many associative query?
  19. MyBatis implementation – How many ways are there for one? How does it work?
  20. MyBatis implementation – there are several ways, how to operate?
  21. Does Mybatis support lazy loading? If so, how does it work?
  22. Mybatis level 1, level 2 cache
  23. What is interface binding for MyBatis? What are the implementation methods?
  24. What are the requirements when using MyBatis mapper interface?
  25. How can YOU write a Mapper?
  26. Brief introduction of Mybatis plug-in operation principle, and how to write a plug-in.

They are the interview questions

  1. ZooKeeper?
  2. What does ZooKeeper offer?
  3. Zookeeper file system
  4. ZAB agreement?
  5. Four types of data nodes zNodes
  6. Zookeeper Watcher mechanism – Data change notification
  7. The client registers the Watcher implementation
  8. The server handles the Watcher implementation
  9. The client calls back Watcher
  10. ACL permission control mechanism
  11. Chroot feature
  12. Session management
  13. Server role
  14. Zookeeper Server running status
  15. Data synchronization
  16. How does ZooKeeper keep the order of transactions consistent?
  17. Why is there a Master in a distributed cluster?
  18. What can I do if the ZK node is down?
  19. Zookeeper load balancing differs from NGINx load balancing
  20. What are the deployment modes of Zookeeper?
  21. How many machines are required for a cluster? What are the clustering rules?
  22. Does the cluster support dynamic addition of machines?
  23. Is Zookeeper’s watch listening notification on a node permanent? Why not permanent?
  24. What are the Java clients of Zookeeper?
  25. What is Chubby and how does it compare to Zookeeper?
  26. Here are some common ZooKeeper commands.
  27. The relation and difference between ZAB and Paxos?
  28. Typical application scenarios of Zookeeper

Dubbo interview questions

  1. Why Dubbo?
  2. What are the layers of Dubbo’s overall architectural design?
  3. What communication framework is used by default, and what other options are there?
  4. Is the service invocation blocking?
  5. What registry is commonly used? Is there any other option?
  6. What serialization framework is used by default, and what else do you know?
  7. What is the mechanism by which service providers can implement fail-kick?
  8. Service. How to go online does not affect the old version?
  9. How to solve the problem of long service invocation chains?
  10. What are the core configurations?
  11. What protocol does Dubbo recommend?
  12. Can a service be directly connected to multiple registrations of the same service?
  13. Draw 1 – Flowchart for service registration and discovery?
  14. How many options are there for Dubbo cluster fault tolerance?
  15. Dubbo service degraded, failed to retry what to do?
  16. What are some of the problems with Dubbo?
  17. How does Dubbo Monitor work?
  18. What design patterns does Dubbo use?
  19. How is the Dubbo configuration file loaded into Spring?
  20. What is the difference between Dubbo SPI and Java SPI?
  21. Does Dubbo support distributed transactions?
  22. Can Dubbo cache the results?
  23. How can the service be compatible with the old version?
  24. What packages must Dubbo rely on?
  25. What does the Dubbo Telnet command do?
  26. Is Dubbo support service degraded?
  27. How does Dubbo stop gracefully?

Elasticsearch interview questions

  1. How about your es cluster architecture, index data size, how many shards there are, and some tuning methods?
  2. What is the inverted index of ElasticSearch?
  3. Select * from elasticSearch; select * from elasticSearch;
  4. How does ElasticSearch implement master voting?
  5. Elasticsearch indexing documents
  6. How does Elasticsearch search work?
  7. What are the optimizations for Linux Settings when Elasticsearch is deployed?
  8. What is the internal structure of Lucence?
  9. How does Elasticsearch implement Master voting?
  10. What if 10 of the 20 Elasticsearch nodes select one master and the other 10 select another master?
  11. How do clients select specific nodes to execute requests when connecting to a cluster?
  12. The process of indexing a document under Elasticsearch.
  13. Details – Update for Elasticsearch
  14. Details: Searches for Elasticsearch
  15. How to find an inverted index based on a word in Elasticsearch?
  16. What are the optimizations for Linux Settings when Elasticsearch is deployed?
  17. For the GC side, what should I look out for when using Elasticsearch?
  18. How to implement Elasticsearch aggregation for large data (tens of millions of magnitude)?
  19. How does Elasticsearch guarantee read/write consistency in concurrent cases?
  20. How do I monitor the Status of the Elasticsearch cluster
  21. Describe the overall technical architecture of your e-commerce search.
  22. What about your personalized search solution?
  23. Do you know dictionary trees?
  24. How is spelling correction implemented?

Memcached interview questions

  1. What is Memcached and what does it do?
  2. How to implement distributed cluster of Memcached service?
  3. What are the features of the Memcached service and how it works?
  4. How does Memcached memory management work?
  5. How does memcached work?
  6. What is memcached’s biggest advantage?
  7. Memcached and MySQL query?
  8. How does memcached compare to a server’s local cache, such as PHP APC, Mmap files, etc.?
  9. How does memcached cache work?
  10. How does memcached implement redundancy?
  11. How does memcached handle fault tolerance?
  12. How to import and export memcached items in batches?
  13. What do you do with cached data if it expires between exports and imports?
  14. How does memcached do authentication?
  15. What are threads in Memcached?
  16. What is the maximum length of a key that memcached will accept?
  17. How many items can memcached store?
  18. Can memcached use memory more efficiently?
  19. What is binary protocol, and should I care?
  20. How does memcached’s memory allocator work?
  21. Why not malloc/ Free! ?
  22. Why use Slabs /
  23. Is memcached atomic?
  24. How to implement session shared storage in a cluster?
  25. The difference between Memcached and Redis?

Redis interview questions

  1. What is Redis?
  2. Redis data type?
  3. What are the benefits of using Redis?
  4. What advantages does Redis have over Memcached?
  5. What are the differences between Memcache and Redis?
  6. Is Redis single process single thread?
  7. – What is the maximum size of a string value?
  8. What is the persistence mechanism of Redis? What are their strengths and weaknesses?
  9. Redis Common Performance Issues and Solutions Redis Expiration key deletion strategy?
  10. Redis’ recycling strategy?
  11. Why does Edis need to put all the data in memory?
  12. How about Redis synchronization?
  13. What are the benefits of pipelines and why do you use them?
  14. Have you used Redis clustering? How does clustering work?
  15. When does the Redis cluster solution cause the entire cluster to become unavailable?
  16. What Java clients are supported by Redis?
  17. Which is the official recommendation?
  18. What are the pros and cons of Jedis versus Redisson?
  19. How to set and verify a password in Redis?
  20. What is the concept of a Redis hash slot?
  21. What is the master-slave replication model for Redis clusters?
  22. Will there be write losses in the Redis cluster? Why is that?
  23. How are Redis clusters replicated?
  24. What is the maximum number of nodes in Redis cluster?
  25. How do Redis clusters select databases?
  26. How do I test Redis connectivity?
  27. How to understand Redis transactions?
  28. What are the Redis transaction related commands?

MySQL interview questions

  1. What types of locks are available in MySQL?
  2. What are the different tables in MySQL?
  3. Describe the difference between MyISAM and InnoDB in MySQL database
  4. InnoDB supports four transaction isolation levels in MySQL, and what are the differences between them?
  5. The difference between CHAR and VARCHAR?
  6. What’s the difference between primary keys and candidate keys?
  7. What is Myisamchk used for?
  8. What happens if a table has a column defined as TIMESTAMP?
  9. How do you see all the indexes defined for the table?
  10. What do % and _ mean in the LIKE declaration?
  11. What is the column comparison operator?
  12. What’s the difference between BLOB and TEXT?
  13. What is the difference between MySQL_fetch_array and MySQL_fetch_object?
  14. Where will the MyISAM table be stored and its storage format provided?
  15. How does MySQL optimize DISTINCT?
  16. How do I display the first 50 lines?
  17. How many columns can be used to create an index?
  18. What’s the difference between NOW() and CURRENT_DATE()?
  19. What is a nonstandard string type?
  20. What are generic SQL functions?
  21. Does MySQL support transactions?
  22. What is the best field type in MySQL to record currency
  23. MySQL > select * from ‘MySQL’ where ‘privileges’ are stored.
  24. What can be the string type of a column?
  25. MySQL database is used as the storage of the release system, with more than 50,000 increments per day. It is expected to be operated and maintained for three years. How to optimize?
  26. Optimization strategies for locking
  27. The underlying implementation principles and optimizations of indexes
  28. When is an index set but not available
  29. How to optimize MySQL in practice
  30. Methods to optimize the database
  31. MySQL > select key (s), primary key (s), unique index (s), and joint index (s)
  32. What are transactions in a database?
  33. What is the cause of SQL injection vulnerability? How to prevent it?
  34. Select the appropriate data type for the fields in the table
  35. Storage period
  36. Indexes are an important concept for relational databases. Please answer some questions about indexes:
  37. Explain the difference between external join, inner join and self-join in MySQL
  38. Overview of the transaction rollback mechanism in Myql
  39. What are the parts of SQL? What are the operation keys for each section?

Java Concurrent Programming (part 1)

  1. Is there a difference between daemon threads and local threads in Java?
  2. What’s the difference between thread and process?
  3. What is context switching in multithreading?
  4. The difference between a deadlock and a live lock, a deadlock and starvation?
  5. What is the thread scheduling algorithm used in Java?
  6. What is a thread group and why is it not recommended in Java?
  7. Why use the Executor framework?
  8. The difference between Executor and Executors in Java?
  9. How do I find which thread is using the most CPU time on Windows and Linux?
  10. What is atomic operation? What atomic classes are available in the Java Concurrency API?
  11. What is the Java Concurrency API’s Lock interface? What are the advantages over synchronization?
  12. What is Executors Framework?
  13. What is a blocking queue? What is the implementation principle of blocking queues? How to implement the producer-consumer model using blocking queues?
  14. What are Callable and Future?
  15. What is a FutureTask? Start tasks using the ExecutorService.
  16. What is the implementation of concurrent containers?
  17. There are several ways to implement multithreaded synchronization and mutex. What are they?
  18. What are the competitive conditions? How do you find and solve competition?
  19. How would you use Thread dump? How would you analyze Thread dump?
  20. Why do we call the run() method when we call the start() method, and why can’t we call the run() method directly?
  21. How do you wake up a blocked thread in Java?
  22. What is the difference between CycliBarriar and CountdownLatch in Java?
  23. What are immutable objects, and how does it help write concurrent applications?
  24. What is context switching in multithreading?
  25. What is the thread scheduling algorithm used in Java?
  26. What is a thread group and why is it not recommended in Java?
  27. Why is using the Executor framework better than using applications to create and manage threads?
  28. How many ways can you implement a thread in Java?
  29. How do I stop a running thread?
  30. What’s the difference between notify() and notifyAll()?
  31. What are Daemon threads? What does it mean?
  32. How does Java implement communication and collaboration between multiple threads?
  33. What is a ReentrantLock?
  34. When a thread accesses a synchronized instance of an object, can other threads access other synchronized methods of that object?
  35. The understanding of optimistic lock and pessimistic lock and how to achieve, what are the implementation methods?
  36. What is the difference between SynchronizedMap and ConcurrentHashMap?
  37. In what application scenarios can CopyOnWriteArrayList be used?
  38. What is thread safety? Are servlets thread-safe?
  39. What is volatile good for? Can you explain in one sentence how volatile is used?
  40. Why is the code being reordered?
  41. What is the difference between wait and sleep in Java?
  42. Implement blocking queues in Java
  43. What happens when a thread runs with an exception?
  44. How do I share data between two threads?
  45. What is the difference between notify and notifyAll in Java?
  46. Why are wait, notify, and notifyAll not in thread?
  47. What are ThreadLocal variables?
  48. What is the difference between the interrupted and isInterrupted methods in Java?

Concurrent Programming in Java (2)

  1. Three elements of concurrent programming?
  2. What are the ways to achieve visibility?
  3. The value of multithreading?
  4. What are the ways to create a thread?
  5. How do you compare the three ways to create threads?
  6. Thread state flow diagram
  7. Java threads have five basic states
  8. What is a thread pool? What are the ways to create it?
  9. There are four types of thread pool creation:
  10. What are the advantages of thread pools?
  11. What are the common concurrency utility classes?
  12. CyclicBarrier and CountDownLatch
  13. The role of synchronized?
  14. The role of the volatile keyword
  15. What is the CAS
  16. The problem of the CAS
  17. What is Future?
  18. What is the AQS
  19. AQS supports two synchronization modes:
  20. What is the ReadWriteLock
  21. What is FutureTask
  22. The difference between synchronized and ReentrantLock
  23. What are optimistic locks and pessimistic locks
  24. How does thread B know that thread A changed A variable
  25. Synchronized, volatile, CAS comparison
  26. What is the difference between the sleep method and the wait method?
  27. What is a ThreadLocal? What’s the use?
  28. Why are wait() and notify()/notifyAll() called in synchronous blocks
  29. What are the methods of multithreaded synchronization?
  30. Scheduling policy for threads
  31. What is the concurrency of ConcurrentHashMap
  32. How do I find which thread is using the longest CPU in Linux
  33. Java deadlocks and how to avoid them?
  34. Cause of deadlock
  35. How do I wake up a blocked thread
  36. How can immutable objects help multithreading
  37. What is multithreaded context switching
  38. What happens if the thread pool queue is full when you submit a task
  39. What is the thread scheduling algorithm used in Java
  40. What are Thread schedulers and Time Slicing?
  41. What is spin
  42. What is the Java Concurrency API’s Lock interface
  43. Thread safety in singleton mode
  44. What does Semaphore do
  45. Executors?
  46. The constructor of the thread class, the static block, is called by which thread
  47. Which is a better choice, synchronous method or synchronous block?
  48. What exceptions can be caused by too many Java threads?

Java Interview Questions (1)

  1. What are the characteristics of object orientation?
  2. What are the differences between access modifiers public, private, protected, and do not write (default)?
  3. Is String the most basic data type?
  4. Float f = 3.4; Is that correct?
  5. short s1 = 1; s1 = s1 + 1; Didn’t you? short s1 = 1; s1 += 1; Didn’t you?
  6. Does Java have a Goto?
  7. What’s the difference between int and Integer?
  8. The difference between & and &&?
  9. Explain the use of stack, heap, and method area in memory.
  10. Math.round(11.5) equals what? What is math.round (-11.5)?
  11. Can switch work on byte, can switch work on long, and can switch work on String?
  12. What’s the most efficient way to calculate 2 times 8?
  13. Does an array have a length() method? Does String have a length() method?
  14. How do I get out of the current multiple nested loops in Java?
  15. Can the constructor be overridden?
  16. Two objects with the same value (x.equals(y) == true) can have different hash codes.
  17. Can I inherit from the String class?
  18. When an object is passed as an argument to a method that changes the object’s properties and returns the changed result, is it value passing or reference passing?
  19. What’s the difference between String and StringBuilder?
  20. The difference between Overload and Override. Can overloaded methods be differentiated by return type?
  21. Describe how the JVM loads class files.
  22. Can a char variable hold a Chinese character? Why?
  23. What are the similarities and differences between abstract classes and interfaces?
  24. The difference between a Static Nested Class and an Inner Class?
  25. Is there a memory leak in Java? Please describe it briefly.
  26. Can abstract methods be static, native, and synchronized at the same time?
  27. Explain the difference between static variables and instance variables.
  28. Can calls to non-static methods be made from within a static method?
  29. How to implement object cloning?
  30. What is GC? Why GC?
  31. String s = new String(” xyz “); How many string objects are created?
  32. Does an interface extend an interface? Does an abstract class implement an interface? Can an abstract class inherit a Concrete class?
  33. Can a “.java “source file contain multiple classes (not inner classes)? What are the restrictions?
  34. Can Anonymous Inner classes inherit from other classes? Can interfaces be implemented?
  35. Can an inner class reference a member of its containing class (the outer class)? Are there any restrictions?
  36. What are the uses of the final keyword in Java?
  37. Indicate the results of the following program
  38. Conversion between data types:
  39. How to reverse and replace strings?
  40. How to convert GB2312 encoded string to ISO-8859-1 encoded string?
  41. Date and Time:
  42. Print the current moment from yesterday.
  43. Compare Java with javascript.
  44. When do you use assertions?
  45. What is the difference between Error and Exception?
  46. If there is a return statement ina try{}, will the code in finally{} immediately following the try be executed and when, before or after the return?
  47. How to handle exceptions in Java language? How to use keywords: throws, throw, try, catch, finally?
  48. What are the similarities and differences between runtime exceptions and checked exceptions?
  49. List some of your common runtime exceptions?
  50. Explain the differences between final, finally and Finalize.
  51. The ExampleA class inherits Exception, and the ExampleB class inherits ExampleA.
  52. Do List, Set, and Map inherit from the Collection interface?
  53. Describes the storage performance and features of ArrayList, Vector and LinkedList.
  54. What’s the difference between Collections and Collections?
  55. What are the features of the List, Map, and Set interfaces when accessing elements?

Java Interview Questions (2)

The topics covered in this list of Java interview questions are listed below

  • Multithreading, concurrency and threading basics
  • Basic principles of data type conversion
  • Garbage Collection (GC)
  • Java Collections Framework
  • An array of
  • string
  • GOF design patterns
  • SOLID
  • Abstract classes and interfaces
  • Java basics such as Equals and HashCode
  • Generics and enumerations
  • Java IO and NIO
  • Common Network Protocols
  • Data structures and algorithms in Java
  • Regular expression
  • The JVM the underlying
  • Java Best Practices
  • JDBC
  • The Date, Time and Calendar
  • The Java XML processing
  • JUnit
  • programming

There are 133 questions in total. Due to space problems, I will not list them one by one. Here are some screenshots.

Spring Interview Question (1)

① General problems

  1. What are the main features of the different versions of the Spring Framework?
  2. What is the Spring Framework?
  3. List the advantages of the Spring Framework.
  4. What are the different features of the Spring Framework?
  5. How many modules are there in the Spring Framework, and what are they?
  6. What is a Spring configuration file?
  7. What are the different components of a Spring application?
  8. What are some ways to use Spring?

② Dependency injection (Ioc)

  1. What is the Spring IOC container?
  2. What is dependency injection?
  3. How many ways can dependency injection be accomplished?
  4. Distinguish constructor injection from setter injection.
  5. How many IOC containers are available in Spring?
  6. Distinguish between BeanFactory and ApplicationContext.
  7. List some of the benefits of IoC.
  8. Implementation mechanism of Spring IoC.

(3) Beans

  1. What are Spring beans?
  2. What configuration options does Spring provide?
  3. Spring supports centralized bean scopes?
  4. What is the lifecycle of the Spring Bean container?
  5. What are Spring’s internal beans?
  6. What is Spring assembly
  7. What are the methods of automatic assembly?
  8. What are the limitations of autowiring?

(4) annotations

  1. What is annotation-based container configuration
  2. How do I start annotation assembly in Spring?
  3. What is the difference between @Component, @Controller, @repository, and @service?
  4. What’s the use of the @required annotation?
  5. What are the @autowired annotations for?
  6. What is the use of the @qualifier annotation?
  7. What are the @requestMapping annotations for?

⑤ Data access

  1. What does the Spring DAO do?
  2. List exceptions thrown by the Spring DAO.
  3. What classes exist in the Spring JDBC API?
  4. What are the ways to access Hibernate using Spring?
  5. List the transaction management types supported by Spring
  6. Which ORM frameworks spring supports

6. AOP

  1. What is AOP?
  2. What is Aspect?
  3. What is JoinPoint?
  4. What is Advice?
  5. What types of Advice are there?
  6. Point out the difference between Concern and cross-cutting concern in Spring AOP.
  7. What are the implementations of AOP?
  8. What is the difference between Spring AOP and AspectJ AOP?
  9. How do you understand proxies in Spring?
  10. What is Weaving?

All landowners MVC

  1. What is the use of the Spring MVC framework?
  2. Describe the workflow of the DispatcherServlet
  3. Introduce WebApplicationContext

Spring Interview Question (2)

  1. What is spring?
  2. What are the benefits of using the Spring framework?
  3. What modules does Spring consist of?
  4. Core container (application context) module.
  5. BeanFactory – Example of a BeanFactory implementation.
  6. XMLBeanFactory
  7. Explain AOP modules
  8. Explains the JDBC abstraction and DAO modules.
  9. Explains the object/relational mapping integration module.
  10. Explain the WEB module.
  11. Spring configuration file
  12. What is the Spring IOC container?
  13. What are the advantages of IOC?
  14. What is the usual implementation of ApplicationContext?
  15. What is the difference between Bean Factory and Application Contexts?
  16. What does a Spring application look like?

① Dependency injection

  1. What is Spring’s dependency injection?
  2. What are the different types of IOC (dependency injection) approaches?
  3. Which dependency injection method do you recommend, constructor injection or Setter injection?

(2) Spring Beans

  1. What are Spring beans?
  2. What does a Spring Bean definition contain?
  3. How do I provide configuration metadata to the Spring container?
  4. How do you define the scope of a class?
  5. Explains the scope of several beans supported by Spring.
  6. Are singleton beans in the Spring framework thread-safe?
  7. Explains the life cycle of beans in the Spring framework.
  8. What are the important bean lifecycle methods? Can you reload them?
  9. What are Spring’s internal beans?
  10. How do I inject a Java collection in Spring?
  11. What is bean assembly?
  12. What is bean autowiring?
  13. Explain the different ways of automatic assembly.
  14. What are the limitations of autowiring?
  15. Can you inject a null and an empty string into Spring?

(3) the Spring annotations

  1. What is the Java-based Spring annotation configuration? Give some examples of annotations.
  2. What is annotation-based container configuration?
  3. How to start annotation assembly?
  4. @ Required annotations
  5. The @autowired annotation
  6. @ the Qualifier annotations

④Spring data access

  1. How can I use JDBC more effectively in the Spring framework?
  2. JdbcTemplate
  3. Spring support for DAOs
  4. How do YOU access Hibernate using Spring?
  5. ORM supported by Spring
  6. How to combine Spring and Hibernate with Hibernateda Support?
  7. The type of transaction management supported by Spring
  8. What are the advantages of transaction management in the Spring framework?
  9. Which transaction management style do you prefer?

⑤Spring Faceted Programming (AOP)

  1. Explain the AOP
  2. The Aspect Aspect
  3. What is the difference between concerns and crosscutting concerns in Spring AOP?
  4. The join
  5. notice
  6. Point of tangency
  7. What is introduction?
  8. What is the target object?
  9. What is agency?
  10. How many different types of automatic agents are there?
  11. What is weaving in. What are the differences in weaving applications?
  12. Explains the implementation of aspects based on XML Schema.
  13. Explains annotation-based aspect implementations

6. The Spring MVC

  1. What is Spring’s MVC framework?
  2. DispatcherServlet
  3. WebApplicationContext
  4. What is the Spring MVC framework controller?
  5. @ Controller annotations
  6. @ RequestMapping annotations

Micro service interview questions

Linux interview questions

Spring Boot interview question

Spring Cloud interview question

  1. What is Spring Cloud?
  2. What are the advantages of using Spring Cloud?
  3. What do I mean by service registration and discovery? How is Spring Cloud implemented?
  4. What does load balancing mean?
  5. What is Hystrix? How does it achieve fault tolerance?
  6. What is Hystrix circuit breaker? Do we need it?
  7. What is Netflix Feign? What are its advantages?
  8. What is Spring Cloud Bus? Do we need it?

The RabbitMQ interview questions

  1. What is the rabbitmq
  2. Why use RabbitMQ
  3. Rabbitmq scenarios
  4. How do I ensure that messages are sent to RabbitMQ correctly? How do I ensure that message recipients consume messages?
  5. How can I avoid double-delivery or double-consumption of messages?
  6. What transport is the message based on?
  7. How are messages distributed?
  8. How are messages routed?
  9. How do I ensure that messages are not lost?
  10. What are the benefits of using RabbitMQ?
  11. The RabbitMQ cluster
  12. The disadvantage of mq

Kafka interview questions

  1. How do I get a list of topic topics
  2. What is the producer and consumer command line?
  3. Is consumer push or pull?
  4. Talk about how Kafka maintains consumption status tracking
  5. Talk about master-slave synchronization
  6. Why do you need a messaging system? Can’t mysql meet the requirements?
  7. What does Zookeeper do for Kafka?
  8. What are the three transaction definitions for data transfer?
  9. What are the two conditions for Kafka to determine if a node is still alive?
  10. There are three key differences between Kafka and traditional MQ messaging systems
  11. Talk about the three mechanisms for Kafka ack
  12. How do consumers not automatically submit offsets by application submission?
  13. How to solve the problem of consumer failure and live lock?
  14. How to control the location of consumption
  15. How can messages be consumed sequentially in a distributed (not stand-alone) Kafka scenario?
  16. What is kafka’s high availability mechanism?
  17. How does Kafka reduce data loss
  18. How does Kafka not consume duplicate data? For example, deduction, we can’t double deduction.

How to get information: JAVA Architecture Crash Notes