2021 latest advanced Java interview questions, stepping on the pit

Ali_ A cat that doesn't eat fish 2021-10-14 09:18:14
latest advanced java interview questions


01 Distributed current limitation :Nginx+ZooKeeper

1.1 Distributed current limiting Nginx

  • Please explain what is Nginx?

  • Please list x Nginx Some characteristics of .

  • Please list x Nginx and and Apache The difference between

  • Please explain x Nginx How to deal with it P HTTP request .

  • stay x Nginx in , How to use an undefined server name to prevent processing requests ?

  • Use “ Reverse proxy ”

  • Please list x Nginx The best use of the server .

  • Please explain x Nginx On the server r Master and and r Worker What are the processes ?

  • Please explain how you pass through different from 0 80 The port of is on Nginx?

  • Please explain whether it is possible to x Nginx The error of is replaced by 2 502 error ?

  • stay x Nginx in , Explain how in L URL Keep double slashes in ? ?

  • Please explain e ngx_http_upstream_module What is the role of ?

  • Please explain what is K C10K problem ?

  • Please state s stub_status and and r sub_filter What is the function of instruction ?

  • explain x Nginx Is it supported to compress the request to the upstream ?

  • Explain how in x Nginx Get the current time ?

  • use x Nginx Server explanation s -s What is the purpose ?

  • Explain how in x Nginx Add modules to the server ?

Distributed current limiting Nginx The answer is as follows :

2021 Latest intermediate and advanced Java Interview questions , Step on the pit _ The backend development

for:Nginx+ Common application technology guide [Nginx++Tips]+ The second edition

2021 Latest intermediate and advanced Java Interview questions , Step on the pit _Java_02

1.2 Distributed current limiting ZooKeeper

  • ZooKeeper What is it? ?

  • ZooKeeper What is offered ?

  • Zookeeper file system

  • Four types of znode

  • Zookeeper A notification mechanism

  • Zookeeper What did you do ?

  • zk The naming service ( file system )

  • zk Configuration management ( file system 、 A notification mechanism )

  • Zookeeper Cluster management ( file system 、 A notification mechanism )

  • Zookeeper Distributed lock ( file system 、 A notification mechanism )

  • The process of obtaining distributed locks

  • Zookeeper Queue management ( file system 、 A notification mechanism )

  • Zookeeper Data replication

  • Zookeeper working principle

  • zookeeper How to ensure the order consistency of transactions ?

  • Zookeeper Next Server Working state

  • zookeeper How to choose the master leader Of ?

  • Distributed notification and coordination

  • Why does the machine have leader?

  • zk How are node outages handled ?

  • Zookeeper Synchronization process

  • zookeeper Load balancing and nginx Load balancing difference

  • zookeeper watch Mechanism

Distributed current limiting ZooKeeper The answer is as follows

2021 Latest intermediate and advanced Java Interview questions , Step on the pit _ The backend development _03

for:ZK Development Manual

2021 Latest intermediate and advanced Java Interview questions , Step on the pit _Java_04

02 Distributed communication :ActiveMQ+Kafka+RabbitMQ

2.1 Distributed communication ActiveMQ

  • What is? ActiveMQ?

  • ActiveMQ What to do if the server goes down ?

  • What should I do if I lose the news ?

  • Persistent messages are very slow

  • Uneven consumption of news .

  • Dead letter queue .

  • ActiveMQ Is the message retransmission interval and number of times in ?

Distributed communication ActiveMQ The answer is as follows :

2021 Latest intermediate and advanced Java Interview questions , Step on the pit _Java_05

for: Handwriting RocketMQ note

2021 Latest intermediate and advanced Java Interview questions , Step on the pit _ The programmer _06

2.2 Distributed communication kafka

  • Kafka What is the design of ?

  • What are the three definitions of data transmission ?

  • Kafka There are two conditions for judging whether a node is still alive ?

  • producer Whether to send data directly to broker Of leader( Master node )?

  • Kafa consumer Whether the specified partition message can be consumed ?

  • Kafka The message is to adopt Pull Pattern , still Push Pattern ?

  • Kafka What is the message format stored on the hard disk ?

  • Kafka Design features of efficient file storage :

  • Kafka There are three key differences with traditional messaging systems

  • Kafka establish Topic How to place the partition in different Broker in

  • Kafka Under which directory will the new partition be created

  • partition How to save the data to the hard disk

  • kafka Of ack Mechanism

  • Kafka How consumers consume data

  • Consumer load balancing strategy

  • Data order

  • kafaka Data grouping strategy when producing data

Distributed communication kafka The answer is as follows :

2021 Latest intermediate and advanced Java Interview questions , Step on the pit _Java_07

for:Kafka Source code analysis and actual combat

2021 Latest intermediate and advanced Java Interview questions , Step on the pit _Java_08

2.3 Distributed communication RabbitMQ

  • RabbitMQ Medium broker What is it? ?cluster What do you mean ?

  • What is metadata ? What are the types of metadata ? What is included ? And cluster What are the relevant metadata ? How metadata is stored ? Metadata is in cluster How is it distributed in ?

  • RAM node and disk node The difference between ?

  • RabbitMQ On the one queue Stored in message Is there a quantity limit ?

  • RabbitMQ In concept channel、exchange and queue These are logical concepts , Or the process entity ? What are the functions of these things ?

  • vhost What is it? ? What's the effect ?

  • In the single node System and multi node Composed of cluster The system states queue、exchange , And binding What would be different ?

  • The client connects to cluster Any of the node Is it all working ?

  • cluster in node The failure of consumer What is the impact ? If it's in cluster Created in mirrored queue , At this time node Failure will be right consumer What is the impact ?

  • It can be used in different data centers that are geographically separated RabbitMQ cluster Well ?

  • Why? heavy RPC It is not recommended to use disk node ?

  • To the nonexistent exchange Hair publish What will happen to the news ? To the nonexistent queue perform consume What happens to the action ?

  • routing_key and binding_key What's the maximum length of ?

  • RabbitMQ Allowed to send message What's the maximum ?

  • Under what circumstances producer Don't actively create queue Is safe ?

  • “dead letter”queue Use of ?

  • Why guarantee message The condition for reliable persistence is queue and exchange have durable attribute , meanwhile message have persistent Property is OK ?

  • Under what circumstances blackholed problem ?

  • How to prevent blackholed problem ?

  • Consumer Cancellation Notification What scenario is the mechanism used for ?

  • Basic.Reject What is the usage of ?

  • Why shouldn't all of message All use persistence mechanism ?

  • RabbitMQ Medium cluster、mirrored queue, as well as warrens What problems are the mechanisms used to solve ? What are the problems ?

Distributed communication RabbitMQ The answer is as follows :

2021 Latest intermediate and advanced Java Interview questions , Step on the pit _ The backend development _09

for:RabbitMQ Practical Study

2021 Latest intermediate and advanced Java Interview questions , Step on the pit _ The backend development _10

03 Distributed cache :memcached+MongoDB+Redis

3.1 Distributed cache memcached

  • memcached How does it work ?

  • memcached What is the biggest advantage ?

  • memcached And the server local cache ( such as PHP Of Of APC 、mmap Documents, etc. ) comparison , What are the advantages and disadvantages ?

  • memcached and and MySQL Of Of query cache comparison , What are the advantages and disadvantages ?

  • memcached Of Of cache What is the mechanism ?

  • memcached How to implement redundancy mechanism ?

  • I need to put memcached Medium item Batch export import , What do I do ?

  • memcached How to deal with fault tolerant ?

  • How to integrate memcached in in item Batch import and export ?

  • memcached How to do Authentication ?

  • memcached What is multithreading of ? How to use them ?

  • memcached Acceptable key What's the maximum length of ?

  • memcached Yes Yes item What are the restrictions on the expiration time of ?

  • memcached What is the maximum storage capacity of a single item ?

  • Why single item The size of is limited to 1M byte within ?

Distributed cache memcached The answer is as follows :

2021 Latest intermediate and advanced Java Interview questions , Step on the pit _ The backend development _11

3.2 Distributed cache MongoDB

  • What you said NoSQL What does database mean ?NoSQL And RDBMS What's the direct difference ? Why use and not use NoSQL database ? say NoSQL Several advantages of database ?

  • NoSQL What are the types of databases ?

  • MySQL And MongoDB What is the basic difference between ?

  • How do you compare MongoDB、CouchDB And CouchBase?

  • MongoDB Be the best NoSQL What's the reason for the database ?

  • 32 What are the nuances of the bit system ?

  • journal Play back in item (entry) When incomplete ( For example, there happened to be a midway fault ) Is there a problem ?

  • The analyzer is in MongoDB What is the role of ?

  • Namespace (namespace) What is it? ?

  • If the user removes the properties of the object , Whether the attribute is removed from the storage tier ?

  • Can I use the log feature for security backup ?

  • Allow null value null Do you ?

  • Update operation immediately fsync To disk ?

  • How to execute a transaction / Lock ?

  • Why is my data file so huge ?

  • How long does it take to enable backup recovery ?

  • What is? master or primary?

  • What is? secondary or slave?

  • I have to call getLastError To make sure that the write operation works ?

  • I should start a cluster partition (sharded) It's also a non cluster partition MongoDB Environmental Science ?

  • Fragmentation (sharding) And copy (replication) How it works ?

  • When will the data expand to multiple shards (shard) in ?

  • When I try to update a block that is being migrated (chunk) What happens when the document on ?

  • If in a shard (shard) When it stops or is very slow , What happens when I launch a query ?

  • I can put moveChunk Delete old files in the directory ?

  • How can I check Mongo Links in use ?

  • If the block moves (moveChunk) failed , Do I need to manually clear some of the transferred documents ?

  • If I'm using replication technology (replication), You can use part of the log (journaling) Other parts are not used ?

  • When updating a block that is being migrated (Chunk) What happens when the document on ?

  • MongoDB stay A:{B,C} Index on , Inquire about A:{B,C} and A:{C,B} Do you use indexes ?

  • If a slice (Shard) When it stops or is very slow , What happens when a query is launched ?

  • MongoDB Support stored procedures ? If you support it , How to use it? ?

  • How to understand MongoDB Medium GridFS Mechanism ,MongoDB Why use GridFS To store files ?

Distributed cache MongoDB The answer is as follows :

2021 Latest intermediate and advanced Java Interview questions , Step on the pit _Java_12

for:MongoDB Authoritative guide

2021 Latest intermediate and advanced Java Interview questions , Step on the pit _ The backend development _13

3.3 Distributed cache Redis

  • redis brief introduction

  • Why use redis / Why cache ( High performance 、 High concurrency )

  • Why use redis without map/guava Do the cache ?

  • redis and memcached The difference between

  • redis Common data structure and usage scenario analysis (String、Hash、List、Set、Sorted Set)

  • redis Set expiration time

  • redis Memory obsolescence mechanism (MySQL Are there in 2000w data ,Redis The only known 20w The data of , How to ensure Redis The data in is hot data ?)

  • redis Persistence mechanism ( How to guarantee redis Data can be recovered by restarting after being hung up )

  • redis Business

  • Redis Common exceptions and Solutions ( Cache penetration 、 Cache avalanche 、 Cache preheating 、 Cache degradation )

  • Common application scenarios in distributed environment ( Distributed lock 、 Distributed auto increment ID)

  • Redis Cluster pattern ( A master-slave mode 、 Sentinel mode 、Cluster Cluster pattern )

  • How to solve Redis The concurrent competition of Key problem

  • How to ensure the cache and database double write data consistency ?

Distributed cache Redis The answer is as follows :

2021 Latest intermediate and advanced Java Interview questions , Step on the pit _ The backend development _14

for:Redis Design and implementation

2021 Latest intermediate and advanced Java Interview questions , Step on the pit _ The programmer _15

Last

Share a set of interview dry goods I sorted out , This document combines my years of interviewer experience , From the interviewer's point of view to tell you , The questions asked by the interviewer, what would he most like to hear from you , Share and help those friends who are confused about their future .

Interview experience skills

  • Experience and skill 1 How to answer the interviewer's questions skillfully
  • Experience and skill 2 How to answer technical questions
  • Experience and skill 3 How to answer non-technical questions
  • Experience and skill 4 How to answer quick estimate questions
  • Experience and skill 5 How to answer the problem of algorithm design
  • Experience and skill 6 How to answer system design questions
  • Experience and skill 7 How to solve the time conflict in job hunting
  • Experience and skill 8 If the interview question has ever met , Do you want to inform the interviewer
  • Experience and skill 9 Can I apply again after being rejected by the enterprise
  • Experience and skill 10 How to deal with the questions you won't answer
  • Experience and skill 11 How to deal with the interviewer's “ The method of agitation ” Language
  • Experience and skill 12 How to deal with the problem of holding different views with the interviewer
  • Experience and skill 13 What is workplace metaphor

2021 Latest intermediate and advanced Java Interview questions , Step on the pit _ The backend development _16

Interview questions

  • Detailed explanation of the real topic 1 A well-known Internet download service provider Software Engineer written test question
  • Detailed explanation of the real topic 2 A well-known social platform software engineer's written test question
  • Detailed explanation of the real topic 3 A well-known security software service provider Software Engineer written test question
  • Detailed explanation of the real topic 4 A well-known Internet Financial Enterprise Software Engineer written test question
  • Detailed explanation of the real topic 5 A well-known search engine provider Software Engineer written test question
  • Detailed explanation of the real topic 6 A written test for software engineers of a start-up company
  • Detailed explanation of the real topic 7 Written test questions for software engineers of a well-known game software development company
  • Detailed explanation of the real topic 8 Written test questions for software engineers of a well-known e-commerce company
  • Detailed explanation of the real topic 9 A top consumer website Software Engineer written test question
  • Detailed explanation of the real topic 10 A well-known portal software engineer written test question
  • Detailed explanation of the real topic 11 A well-known Internet Financial Enterprise Software Engineer written test question
  • Detailed explanation of the real topic 12 A well-known domestic network equipment provider Software Engineer written test question
  • Detailed explanation of the real topic 13 Written test questions for software engineers of a top mobile phone manufacturer in China
  • Detailed explanation of the real topic 14 Written test questions for software engineers of a top big data integrated service provider
  • Detailed explanation of the real topic 15 Written test questions for software engineers of a well-known social listed company
  • Detailed explanation of the real topic 16 Written test questions for software engineers of a well-known Internet company
  • Detailed explanation of the real topic 17 A well-known network security company campus recruitment technology pen test questions
  • Detailed explanation of the real topic 18 A well-known Internet game company campus recruitment, operation and maintenance development post pen test questions

2021 Latest intermediate and advanced Java Interview questions , Step on the pit _Java_17

It's not easy to sort out the data , Pay attention before you go

This article has been  CODING Open source project :【 A big factory Java Analysis of interview questions + Core summary learning notes + The latest explanation video + Actual project source code 】 Included

版权声明
本文为[Ali_ A cat that doesn't eat fish]所创,转载请带上原文链接,感谢
https://javamana.com/2021/10/20211002162114698r.html

  1. Usage relations and differences of count (1), count (*) and count (a field) in MySQL
  2. 2021 Ali Java advanced interview questions sharing, Java Architect interview materials
  3. Mybatis - dynamic SQL statement - if usage - MySQL series learning notes
  4. [go to Dachang series] deeply understand the use of where 1 = 1 in MySQL
  5. [secret room escape game theme ranking list] Based on spring MVC + Spring + mybatis
  6. Redis log: the killer mace of fearless downtime and rapid recovery
  7. 5 minutes to build redis cluster mode and sentinel mode with docker
  8. Java小白入门200例106之遍历ArrayList的几种方式
  9. Java小白入门200例105之Java ArrayList类
  10. Java小白入门200例104之JDK自带记录日志类logging
  11. Practice of high availability architecture of Tongcheng travel network based on rocketmq
  12. Chapter 9 - Linux learning will - file archiving and compression tar --- zip
  13. Java小白入門200例104之JDK自帶記錄日志類logging
  14. JDK avec journalisation de classe dans 200 cas 104
  15. Java ArrayList Class for Introduction to Java LITTLE WHITE 200 example 105
  16. Plusieurs façons de traverser ArrayList à partir de 200 exemples 106
  17. Provectus / Kafka UI: open source Apache Kafka's Web GUI Graphical interface management tool
  18. Design pattern series: Singleton pattern
  19. Java小白入門200例105之Java ArrayList類
  20. Understanding Java record types
  21. Five load balancing algorithms implemented in Java
  22. Data structure must be an example to understand dynamic programming (with universal Python code)
  23. The idea and implementation of recursion in data structure (Python)
  24. The idea and implementation of linked list (Python)
  25. Data structure must be queue and double ended queue (Python)
  26. Idea and implementation of data structure must be able stack (Python)
  27. Data structure | time complexity (with video explanation)
  28. 20 flutter libraries you should know
  29. Case sharing: Online failure caused by Dubbo 2.7.12 bug
  30. Open source | didi open source, general functional components for Java authentication, authentication, management and task scheduling
  31. Flutter multi engine supports platformview and thread merging solution
  32. In depth understanding of netty: viewing netty traffic control from occasional downtime
  33. Spring AOP internal skill cultivation
  34. Interviewer: is Tomcat a symbolic parent delegation mechanism?
  35. Expérimentez la première tablette de consommation Linux. La puce et le système d'origine sont tous faits maison
  36. 2021 summary of the latest Java common open source libraries, Java interview handwritten code
  37. 2021 latest Java factory interview true questions, Kafka introduction video
  38. 01 javase - première connaissance de l'installation de Java et de l'environnement de développement
  39. The sales volume in September broke the record: Weilai and Xiaopeng both exceeded 10000, with an ideal month on month decrease of 24.7%
  40. Required for interview: HBase block cache
  41. Redis core principle and practice: implementation principle of hash type and dictionary structure
  42. MySQL deep dive: analyzing performance schema memory management
  43. Redis cache: kill interviewer 25 asked
  44. Solution of Chinese garbled code in idea integrated Tomcat console
  45. 2021 the latest java development interview, 46 interview questions take you to understand the advanced Java interview
  46. 2021 spring recruitment bat interview questions are explained in detail and explained clearly
  47. 2021 latest java developer learning route, 2021 latest Ali Java advanced interview questions and answers
  48. 2021 summary of the latest Java common open source libraries, the top java development tools necessary for developers
  49. Java communique avec les capteurs industriels via socket et DTu, RTU
  50. Does Hadoop have to run on Linux? (the root cause is the permission opening advantage of the operating system Linux)
  51. Java communique avec les capteurs industriels via socket et DTu, RTU
  52. 2021 summary of the latest java knowledge system. It took 8 days to finally understand JVM tuning
  53. Introduction au tissu de service Azure
  54. 【.Net vs Java? 】 先来看一下Java和C#的数据类型区别。
  55. 2021 summary of the latest java knowledge system, will you only have the technology of junior engineers
  56. 【.Net vs Java? 】 先來看一下Java和C#的數據類型區別。
  57. [.NET vs Java?] regardez d'abord les différences de type de données entre Java et C #.
  58. 2021 latest Java interview questions and answers, Java interviewer's favorite garbage collection mechanism
  59. 2021 latest Java interview written test, distributed ID generation algorithm in Seata project of source code analysis
  60. 2021 latest Java experience sharing, what java knowledge do we need to learn