October Ali agency recruit Java interview questions: Distributed Database + + + JVM + Spring high concurrency

October Ali agency recruit Java interview questions: Distributed Database + + + JVM + Spring high concurrency

Today I share with you, "Ali, a senior Java interview questions", namely, database, library sub-sub-table, distributed cache, distributed service framework, distributed message queuing, distributed search engine, complicated by high availability architecture design, JVM, Ali, a senior java face questions Spring, algorithms, data structures, etc. Read on to find together with the small series.

A Database

  • Use mysq1 index What are the principles? What index data structure? B + tree and what is the difference Btree?
  • mysq What storage engine ah? detail are what's the difference ?? !!
  • High-level design system database concurrency how to design a database lock ??? What type? How to achieve it?
  • Database transaction What?

II. Sub-library sub-table

  • How to design sub-library sub-table scheme can be dynamically expansion volume reduction of?
  • Which sub-library sub-table used middleware, so what advantages and disadvantages,
  • Talk about your understanding of the underlying sub-library sub-table middleware implementation principle?
  • I now have a non-system sub-library sub-table, the system needs after sub-library sub-table, how to design,
  • Let not sub-library sub-table system to dynamically switch to the system of sub-library sub-table?
  • Distributed Transaction know? How do you solve? TCC? The reason that if network, network unreasonable even how to do ah
  • Why sub-library sub-table ah?
  • What are addressing distributed algorithm? Consistency hash know it?
  • Handwritten about java implementation code? If you take userId touch slice, then I want to check how a continuous period of time, the data do?
  • How to solve the sub-library sub-table primary key problem? What implementations?

III. Distributed Cache

  • What is the difference redis and memcheched? Why single-threaded redis higher than memched efficient multi-threaded ah?
  • redis what type of data? Under what scenarios use ah?
  • How reids from the master copy is how to achieve? Redis cluster model is to achieve it? Redis addressing the key is how ah?
  • How to use redis design distributed lock? Zk can use it? How ah? Which of these two higher efficiency ah?
  • Redis persistence you know? What are the disadvantages has specific advantages ah ?? underlying achieve it?
  • ? Redis expiration policy LRU write what are -? Under java version of the code, right?
  • Dubbo talk about the implementation process? Hung up the registry may continue to communicate it?

IV. Distributed Service Framework

  • zk principle know? zk can do? Paxos algorithm know? talk about principle and ??
  • dubbo支持哪些序列化协议?hessian?说一Fhessian的数据结构?PB知道吗?为啥PB效率是最高的啊??
  • 知道netty吗?netty可以干嘛呀NIO,BIO,AIO都是什么啊?有什么区别啊?
  • dubbo复制均衡策略和高可用策略都有哪些啊?动态代理策略呢?

五. 分布式消息队列

  • 为什么要进行系统拆分啊?拆分不用dubbo可以吗?dubbo和thrift什么区别啊?
  • 为什么使用消息队列啊?消息队列有什么优点和缺点啊?
  • 如何保证消息队列的高可用啊?如何保证消息不被重复消费啊?
  • kafka,activemq,rabbitmq,rocketmq都有什么优点,缺点啊?
  • 如果让你写一个消息队列,该如何进行架构设计啊?说-下你的思路

六. 分布式搜索引擎

  • es的工作过程实现是如何的?如何实现分布式的啊
  • es在数据量很大的情况下(数十亿级别)如何提高查询效率啊?
  • es的查询是个怎么的工作过程?底层的lucence介绍一下呗?倒排索引知道吗?
  • es和mongdb什么区别啊?都在什么场景下使用啊?

七. 高并发高可用架构设计

  • 如何设计一个高并发高可用系统?
  • 如何限流?工程中怎么做的,说一下具体实现?
  • 缓存如何使用的?缓存使用不当会造成什么后果?
  • 如何熔断啊?熔断框架都有哪些?具体实现原理知道吗?
  • 如何降级?如何进行系统拆分,如何数据库拆分?

八. JVM

  • 请介绍一下JVM内存模型??用过什么垃圾回收器?都说说呗?
  • 线上发送频繁ful1gc如何处理??CPU使用率过高怎么办?
  • 如何定位问题?如何解决?说下解决思路和处理方法.
  • 知道字节码吗?字节码都有哪些?
  • IntegerX5,inty=5,比较x=y都经过哪些步骤?
  • 讲讲类加载机制呗?都有哪些类加载器,这些类加载器都加载哪些文件?
  • 手写一下类加载Demo
  • 知道osgi吗?他是如何实现的?
  • 请问你做过哪些JVM优化?使用什么方法?达到什么效果?
  • class.forName ( "java.langString") and String.class.getClassLoader (). LoadClass ( "java.lang.String") What is the difference ah?

Nine. Spring

  • What are the mechanisms spring ah? AOP bottom of how to achieve ah? I0C it ??
  • cglib know? What is the difference between him and jdk dynamic proxy? handwriting a jdk dynamic proxy chant?
  • Talk about TCP / IP four?
  • http workflow specific ah ??? http1.0http1.1http2.0 What is the difference?
  • TCP three-way handshake, four break workflow? Draw a flow chart about? Why not four or five times a second ah?
  • Painting at the workflow https? Specifically how ah? How to prevent get caught ah?

X. algorithm

  • Relatively simple, I'm a file, there are 4.5 billion digits, how to re-ah? How to find the largest number ah?

XI. Data Structure

  • Binary Tree and red-black trees

Written in the last

Welcome to forward comments, there are different opinions welcome message below. The thumbs up is the support of the greatest authors, thanks!

Guess you like

Origin blog.51cto.com/14295162/2445609