The content is taken from my learning website: topjavaer.cn
Share a reader's interview experience with Meituan, which is more informative. If you are interested, you can take a look~
one side
- How message queues ensure reliability
- How does message queue guarantee message idempotency
- Pros and cons of message queues
- Why use b+ tree
- The difference between a clustered index and a primary key, how do other engines do it
- Usual database encoding
- explain parameter
- What are the http message parameters?
- To do the question, the linked list is output in an even and orderly manner
two sides
- Self introduction
- What sorting algorithms are there?
- Introduce fast sort/heap sort/merge sort.
- How should indexes in the database be designed?
- What are the situations where indexes fail?
- What submission method does the HTTP interface you use use?
- Difference between GET/POST?
- What else besides GET/POST?
- Object-oriented fundamentals? Let's talk about dependency inversion in detail.
- Introduce the strategy mode and observer mode?
- How to ensure the idempotence of user requests? Idempotency means that the user may submit payment requests three times in a row and return the same result (successful payment), but the actual backend is only executed once to maintain consistency.
- Introduce TCP four waved?
- Does the client close immediately after the fourth wave? What is the status?
- For two large files, store a url in each line, and find duplicate urls in the two files.
- In a large file, each line has an integer, how to find the 100th largest number?
- In a large file, each line has an integer, how to find the median?
- The basic data structure of redis?
- How is zset implemented? What are the commands?
- Algorithm Problem 221. Largest Square
Three sides
- Project-related (module division, project requirements, technical solutions, database design, table structure and relationships, roles)
- The key fields of the http protocol, such as the key fields of the request and response header information, and their meanings
- http status code: 100, 200, 502, 504
- The difference between http and https, what problem does https solve
- Three-way handshake, four-way wave (detailed process + state change)
- What may be the reason for a large number of close_wait, the solution, what tool can be used to see that there is a problem with the network, etc.
- What are the common collections in Java? Do you know the initial capacity loading factors of List, Set, and Map?
- What are the methods of thread communication in Java, and the general principles
- If MySQL encounters a problem with poor performance, such as slow query, what should I do?
- Database optimization scheme (index | sub-database and sub-table)
- What are the indexes, data structures, and the principles of indexing
- The principle of sub-database sub-table, talk about the scene (horizontal | vertical, hot data | cold data blabla)
- Algorithm problem: the sum of two numbers
four sides
- Self-introduction, project introduction, asked about the amount of data
- Do you understand microservices? (Did you do your own research while working on the project to understand the tools and methods commonly used by the company at present)
- Do you know spring cloud?
- What should I do if a machine cannot meet the delivery requirements? Answer: Build a few more machines, Q: How do multiple machines work together?
- explain mapreduce
- If there is a large file, TB level, and the numbers in the file are out of order, how to sort them? How is mapreduce implemented?
- Merge sort in the sorting process, please describe the process? time complexity
- The difference between process and thread, when using Java, what is the difference between the concept of multi-threading and the thread process in os? When actually used, how are threads and processes in Java scheduled?
- Multi-threaded method of synchronous mutual exclusion? Answered the semaphore, asked how to implement it, answered pv operation, gave a specific scenario, and asked how to initialize variables (equivalent to dictation code)
- What indexes are there? (mysql as an example)
- What kind of tree structures are b-trees and b+-trees, and what is the query complexity? Is it a balanced binary tree?
- Have you ever used redis? What to do?
- Hand torn code: LRU algorithm; forward and reverse sequence traversal binary tree
This article has been included in the Github warehouse, which includes core knowledge points such as computer foundation, Java foundation, multi-threading, JVM, database, Redis, Spring, Mybatis, SpringMVC, SpringBoot, distributed, microservices, design patterns, architecture, school recruitment and social recruitment sharing, welcome to star ~
If you can't access Github, you can access the gitee address.