2021batj 500 questions: redis + database + distributed + microservice

Mr. Ma Bing 2021-01-21 20:16:38
2021batj batj questions redis database


Interview questions 500 Avenue

What I share with you today is the most frequent interview question bank used by mainstream enterprises , All of them are Java After the version upgrade , Rearrange the latest answer to induction , Will let the interviewer walk many unnecessary detours . At the same time, each topic has done a detailed interview analysis document , To ensure that readers at each stage can understand , At the same time, this part of the interview documents can be provided free of charge for students in need to learn , If necessary, you can check the access method at the end of the article !

MySQL

  • Primary key, super key, candidate key, foreign key
  • Four characteristics and meanings of database transaction
  • The function of view , Can the view be changed ?
  • drop,delete And truncate The difference between
  • How the index works and what kind of index
  • The type of connection
  • Database paradigm
  • The idea of database optimization
  • The difference between stored procedure and trigger

MySQL Performance optimized 21 A good quantity is a poor one

2020 Interview questions of six manufacturers 500 Avenue :Redis+ database + Distributed + Microservices

 

MySQL55 Questions and answers

2020 Interview questions of six manufacturers 500 Avenue :Redis+ database + Distributed + Microservices

 

Redis

  • Use Redis What are the benefits ?
  • redis comparison memcached What are the advantages ?
  • redis Common performance problems and solutions
  • MySQL Are there in 2000w data , redis The only known 20w The data of , How to ensure redis The data in is hot data
  • Memcache And Redis What are the differences ?
  • Redis What are the common performance problems ? How to solve ?
  • redis The most appropriate scene
  • Redis Do you understand the synchronization mechanism of ?
  • Have you ever used Redis colony , What is the principle of clustering ?
  • redis How clusters ensure consistency ?

The most complete Redis Complete works of

2020 Interview questions of six manufacturers 500 Avenue :Redis+ database + Distributed + Microservices

 

Database interview questions analysis :

2020 Interview questions of six manufacturers 500 Avenue :Redis+ database + Distributed + Microservices

 

MongoDB

  • What is? MongoDB ?
  • MongoDB What language is it written in ?
  • MongoDB What are the advantages of ?
  • What is a database ?
  • What is a collection ?
  • What is a document ?
  • MongoDB Compare with relational database terms
  • What is? "mongod" ?
  • "mongod" What are the parameters ?
  • What is? "mongo”?
  • MongoDB Which command can switch the database ?
  • What is a non relational database ?
  • What are the types of non relational databases ?
  • Why MOngoDB ?
  • In which scenarios MongoDB ?
  • MongoDB What does a namespace in mean ?
  • Which languages support MongoDB?
  • stay MongoDB How to create a new database in ?
  • stay MongoDB How to view the database list in ?
  • MongoDB What do you mean by the fragment in ?
  • How to view and use MongoDB The connection of ?
  • What is replication ?
  • stay MongoDB How to insert - A document ?
  • stay MongoDB How to remove - A database ?
  • stay MongoDB How to create a collection in ?
  • stay MongoDB How to view a collection that has been created in ?
  • stay MongoDB How to delete a - A collection of ?
  • Why are you in MongoDB The analyzer is used in ?
  • MongoDB Do you support primary key foreign key relationships ?
  • MongoDB What data types are supported ?
  • Why are you in MongoDB of use "Code” data type ?
  • Why are you in MongoDB of use " Regular Expression" data type ?
  • Why is it MongoDB Use in "Object ID" data type ?
  • How to insert a document into a collection ?
  • "ObjectID" What are the components of ?
  • stay MongoDb What is index in ?
  • How to add indexes ?
  • MongoDB What are the alternatives ?
  • How to query documents in a collection ?
  • How to format the output ?
  • How to use " AND" or "OR" Conditional loop queries the documents in the collection ?
  • stay MongoDB How to update data in ?
  • How to delete a document ?
  • stay MongoDB How to sort ?
  • What is aggregation ?
  • stay MongoDB What is a replica set in ?
  • Mongodb Storage characteristics and internal principles ?

Mongodb Analysis of interview questions :

2020 Interview questions of six manufacturers 500 Avenue :Redis+ database + Distributed + Microservices

 

Zookeeper

  • zookeeper What is it? ?
  • zookeeper What is offered ?
  • zookeeper file system
  • zookeeper There are four types of znode
  • zookeeper A notification mechanism
  • zookeeper What are the application scenarios ?
  • zk The naming service
  • zk Configuration management services for
  • zk Cluster management of
  • zk Distributed locks for
  • zk Queue management
  • zk Data replication
  • zk How it works
  • zk It's how to keep things in order
  • zk Under Cluster server Working state
  • zk How to vote Leader Of ?
  • zk Synchronization process
  • Distributed notification and coordination
  • zk Of session Mechanism

zookeeper Analysis of interview questions

2020 Interview questions of six manufacturers 500 Avenue :Redis+ database + Distributed + Microservices

 

Ngnix

  • Please explain what yes Nginx?
  • Please list Nginx Some characteristics of ?
  • Please list Nginx and Apache The difference between ?
  • Please explain Nginx How to deal with it HTTP request .
  • stay Nginx in , How to use an undefined server name to prevent processing requests ?
  • Use “ Reverse proxy ” What are the advantages of ?
  • Please list Nginx The best use of the server .
  • Please explain Nginx On the server Master and Worker What are the processes ?
  • Please explain how you pass through different from 80 The port of is on Nginx?
  • Please explain whether it is possible to Nginx The error of is replaced by 502 error 、503?
  • stay Nginx in , Explain how in URL Keep double slashes in ?
  • Please explain ngx_ http_ upstream_ module What is the role of ?
  • Please explain what is C10K problem , How was it solved later ?
  • Please state stub_ status and sub_ filter What is the function of instruction ?
  • explain Nginx Is it supported to compress the request to the upstream ?
  • Explain how in Nginx Get the current time ?
  • use Nginx Server explanation -s What is the purpose ?
  • Explain how in Nginx Add modules to the server ?
  • nginx More than one of them work How does a process listen to - Ports of ? How to deal with the problem of customer connection ?
  • nginx How to do the hot update of the program ?

Nginx Analysis of interview questions

2020 Interview questions of six manufacturers 500 Avenue :Redis+ database + Distributed + Microservices

 

Nginx Full solution

2020 Interview questions of six manufacturers 500 Avenue :Redis+ database + Distributed + Microservices

 

Concurrent programming :

  • What is multithreading concurrency and parallelism ?
  • What is thread safety ?
  • What is memory visibility of shared variables ?
  • What is? Java Middle atomic operation ?
  • What is? Java Medium CAS operation ,AtomicLong Realization principle ?
  • What is? Java Instruction reordering ?
  • Java in Synchronized What is the memory semantics of keywords ?
  • Java in Volatile What is the memory semantics of keywords ?
  • What is pseudo sharing , Why does it appear , And how to avoid ?
  • What is reentrant lock 、 Optimism lock 、 Pessimistic locking 、 Fair lock 、 Not fair lock 、 An exclusive lock 、 Shared lock ?
  • Tell me about ThreadLocal Implementation principle of ?
  • ThreadLocal Thread isolation as a variable , How it's done internally ?
  • say something InheritableThreadLocal Implementation principle of ?
  • InheritableThreadLocal How to make up for ThreadLocal Inherited features are not supported ?
  • CyclicBarrier Internal realization and CountDownLatch What's the difference? ?
  • Random number generator Random How to use class CAS The algorithm guarantees the uniqueness of new seeds under multithreading ?
  • ThreadLocalRandom How to use ThreadLocal To solve the problem Random The limitations of ?
  • Spring How to use ThreadLocal Realization request scope Scope Bean?
  • And the implementation layer of lock in the contract ( Yes AQS The understanding of the )?
  • Talk about exclusive locks ReentrantLock principle ?
  • On the read-write lock ReentrantReadWriteLock principle ?
  • StampedLock Understanding of lock principle ?
  • Let's talk about non blocking and unbounded queue based on linked list ConcurrentLinkedQueue Understanding of principles ?
  • ConcurrentLinkedQueue How is the interior used CAS Non blocking algorithm to ensure the thread safety of multi-threaded queuing operation ?
  • Blocking queue based on linked list LinkedBlockingQueue principle .

Concurrent programming interview set

2020 Interview questions of six manufacturers 500 Avenue :Redis+ database + Distributed + Microservices

 

JVM

  • Java Memory allocation ?
  • Java What is the structure of the heap like ?
  • What is the permanent generation in the pile (Perm Gen space)?
  • Briefly describe the changes in the memory area of each version ?
  • Talk about the role of each area ?
  • Java Is there a memory leak in , Briefly ?
  • Java Class loading process ?
  • Describe the JVM load Class The principle and mechanism of documents ?
  • What is a class loader ?
  • What are the class loaders ?
  • What is? tomcat Class loading mechanism ?
  • The mechanism of parent delegation model of classloader ?
  • What is? GC? Why would there be GC?
  • Briefly Java Garbage collection mechanism ?
  • How to judge whether an object is alive ?
  • Advantages and principles of garbage collection , And think about 2 A recycling mechanism ?
  • What is the basic principle of garbage collector ?
  • Can the garbage collector reclaim memory immediately ? What is the way to inform virtual machine of garbage collection ?
  • Deep copy and light copy ?
  • System.gc() and Runtime.gc() What will be done ?
  • If a reference to an object is set to null, Whether the garbage collector will immediately release the memory occupied by objects ?
  • What is distributed garbage collection (DGC)? How it works ?

JVM Interview analysis

2020 Interview questions of six manufacturers 500 Avenue :Redis+ database + Distributed + Microservices

 

Please look at the wechat of the little assistant in the figure below after one click three times :(vip1024x) Add and you can get it for free

2020 Interview questions of six manufacturers 500 Avenue :Redis+ database + Distributed + Microservices

 

Spring

  • Why agent mode is needed ?
  • Talk about the advantages and bottlenecks of the static proxy model ?
  • Yes Java Understanding of the implementation principle of interface proxy pattern ?
  • How to use Java Reflection implements dynamic proxy ?
  • Java Specification enhancement of interface proxy pattern ?
  • Talk about right Cglib Class enhances the implementation of dynamic proxy ?
  • point cut,advice,Join point What is it? ?
  • join point and point cut The difference between ?
  • How to understand the facets of aspect oriented programming ?
  • Talk about right SpringAOP Weaving( Weaving ) The understanding of the ?
  • Talk about SpringAOP Introduction( introduce ) The understanding of the ?
  • Explain OOP And AOP Simple comparison of ?
  • Explain JDK Dynamic proxy sum CGLIB The principle of agency and the difference ?
  • Explain Spring The framework is based on Schema Of AOP Realization principle ?
  • Explain Spring How the framework is based on AOP Implemented transaction management ?
  • How to understand the design idea of inversion of control ?
  • How to understand Spring IOC Containers ?

Spring Interview book

2020 Interview questions of six manufacturers 500 Avenue :Redis+ database + Distributed + Microservices

 

cache

  • redis What are the data structures ?
  • Redis Cache penetration , Cache avalanche ?
  • How to use Redis To implement distributed locking ?
  • Redis How to solve the problem of concurrent competition ?
  • Redis Several ways of persistence , What are the advantages and disadvantages , How to achieve ?
  • Redis The cache invalidation strategy of ?
  • Redis colony , High availability , principle ?
  • Redis Cache fragmentation ?
  • Redis Data elimination strategy ?
  • redis Queue application scenario ?
  • Distributed usage scenarios ( Store session)?

Network programming

  • TCP The process of connecting and disconnecting ?
  • HTTP Protocol interaction process ,HTTP and HTTPS The difference of ,SSL The interaction process of ?
  • TCP What's the use of sliding window protocol ?
  • HTTP What are the methods of agreement ?
  • Socket The basic process of interaction ?
  • Tell me about tcp agreement ( The process of building a company , Slow start , The sliding window , Seven layer model )?
  • webservice agreement (wsdl/soap Format , And restt What's the difference )?
  • say something Netty Threading model , What is zero copy ?
  • TCP Three handshakes 、 Four waves ?
  • DNS Analytic process ?
  • TCP How to ensure the reliable transmission of data ?

Distributed

  • What is? CAP Theorem ?
  • say something CAP Theory and BASE theory ?
  • What is ultimate consistency ? Finally, the way to achieve consistency ?
  • What is consistency Hash?
  • Talk about distributed transactions ?
  • How to implement distributed locks ?
  • How to achieve distributed Session?
  • How to ensure message consistency ?
  • Understanding of load balancing ?
  • Forward and reverse proxies ?
  • CDN Realization principle ?
  • How to improve the system QPS And huff and puff ?
  • Dubbo The underlying implementation principle and mechanism of ?
  • Describes the detailed process of a service from publication to consumption ?
  • How do distributed systems do service governance ?
  • How does message middleware address message loss ?
  • Dubbo What if the service request fails ?
  • Understanding of distributed transactions ?
  • How to realize load balancing , What algorithms can be implemented ?
  • Zookeeper Use of , What are the principles of voting ?
  • Talk about vertical splitting of data, horizontal splitting ?

Partial screenshots :

Please look at the wechat of the little assistant in the figure below after one click three times :(vip1024x) Add and you can get it for free

2020 Interview questions of six manufacturers 500 Avenue :Redis+ database + Distributed + Microservices

 

2020 Interview questions of six manufacturers 500 Avenue :Redis+ database + Distributed + Microservices

 

How to get information ?

Please look at the wechat of the little assistant in the figure below after one click three times :(vip1024x) Add and you can get it for free

版权声明
本文为[Mr. Ma Bing]所创,转载请带上原文链接,感谢
https://javamana.com/2021/01/20210121201516060i.html

  1. 【计算机网络 12(1),尚学堂马士兵Java视频教程
  2. 【程序猿历程,史上最全的Java面试题集锦在这里
  3. 【程序猿历程(1),Javaweb视频教程百度云
  4. Notes on MySQL 45 lectures (1-7)
  5. [computer network 12 (1), Shang Xuetang Ma soldier java video tutorial
  6. The most complete collection of Java interview questions in history is here
  7. [process of program ape (1), JavaWeb video tutorial, baidu cloud
  8. Notes on MySQL 45 lectures (1-7)
  9. 精进 Spring Boot 03:Spring Boot 的配置文件和配置管理,以及用三种方式读取配置文件
  10. Refined spring boot 03: spring boot configuration files and configuration management, and reading configuration files in three ways
  11. 精进 Spring Boot 03:Spring Boot 的配置文件和配置管理,以及用三种方式读取配置文件
  12. Refined spring boot 03: spring boot configuration files and configuration management, and reading configuration files in three ways
  13. 【递归,Java传智播客笔记
  14. [recursion, Java intelligence podcast notes
  15. [adhere to painting for 386 days] the beginning of spring of 24 solar terms
  16. K8S系列第八篇(Service、EndPoints以及高可用kubeadm部署)
  17. K8s Series Part 8 (service, endpoints and high availability kubeadm deployment)
  18. 【重识 HTML (3),350道Java面试真题分享
  19. 【重识 HTML (2),Java并发编程必会的多线程你竟然还不会
  20. 【重识 HTML (1),二本Java小菜鸟4面字节跳动被秒成渣渣
  21. [re recognize HTML (3) and share 350 real Java interview questions
  22. [re recognize HTML (2). Multithreading is a must for Java Concurrent Programming. How dare you not
  23. [re recognize HTML (1), two Java rookies' 4-sided bytes beat and become slag in seconds
  24. 造轮子系列之RPC 1:如何从零开始开发RPC框架
  25. RPC 1: how to develop RPC framework from scratch
  26. 造轮子系列之RPC 1:如何从零开始开发RPC框架
  27. RPC 1: how to develop RPC framework from scratch
  28. 一次性捋清楚吧,对乱糟糟的,Spring事务扩展机制
  29. 一文彻底弄懂如何选择抽象类还是接口,连续四年百度Java岗必问面试题
  30. Redis常用命令
  31. 一双拖鞋引发的血案,狂神说Java系列笔记
  32. 一、mysql基础安装
  33. 一位程序员的独白:尽管我一生坎坷,Java框架面试基础
  34. Clear it all at once. For the messy, spring transaction extension mechanism
  35. A thorough understanding of how to choose abstract classes or interfaces, baidu Java post must ask interview questions for four consecutive years
  36. Redis common commands
  37. A pair of slippers triggered the murder, crazy God said java series notes
  38. 1、 MySQL basic installation
  39. Monologue of a programmer: despite my ups and downs in my life, Java framework is the foundation of interview
  40. 【大厂面试】三面三问Spring循环依赖,请一定要把这篇看完(建议收藏)
  41. 一线互联网企业中,springboot入门项目
  42. 一篇文带你入门SSM框架Spring开发,帮你快速拿Offer
  43. 【面试资料】Java全集、微服务、大数据、数据结构与算法、机器学习知识最全总结,283页pdf
  44. 【leetcode刷题】24.数组中重复的数字——Java版
  45. 【leetcode刷题】23.对称二叉树——Java版
  46. 【leetcode刷题】22.二叉树的中序遍历——Java版
  47. 【leetcode刷题】21.三数之和——Java版
  48. 【leetcode刷题】20.最长回文子串——Java版
  49. 【leetcode刷题】19.回文链表——Java版
  50. 【leetcode刷题】18.反转链表——Java版
  51. 【leetcode刷题】17.相交链表——Java&python版
  52. 【leetcode刷题】16.环形链表——Java版
  53. 【leetcode刷题】15.汉明距离——Java版
  54. 【leetcode刷题】14.找到所有数组中消失的数字——Java版
  55. 【leetcode刷题】13.比特位计数——Java版
  56. oracle控制用户权限命令
  57. 三年Java开发,继阿里,鲁班二期Java架构师
  58. Oracle必须要启动的服务
  59. 万字长文!深入剖析HashMap,Java基础笔试题大全带答案
  60. 一问Kafka就心慌?我却凭着这份,图灵学院vip课程百度云