您的位置 首页 php

2021年后端研发工程师面试题汇总(PHP/JAVA/GO)

一、PHP基础知识面试题

1. php如何处理大文件上传?

2. 分片上传的原理是什么?

3. 如何避免表单重复提交?

4. PHP 7 的内存回收原理?请详细描述ZendMM的工作原理

5. PHP 7 的垃圾回收和 PHP 5 有什么区别?

6. PHP 7 中哪些变量类型在栈,哪些变量类型在堆?

7. PHP中创建多进程有哪些方式?

8. 互斥信号该如何实现?

9. 用PHP实现一个定时任务器,类似crontab,需要做到前一个任务不论运行时长、运行失败,都不能影响下一个任务的准点执行?

10. 说明 get 与 post 之间的区别

11. 说明session与cookie的区别?

参考文档

* [高级PHP(初级架构师)面试题](

## 二、MySQL面试题

索引相关

1. 什么是索引?

2. 索引是个什么样的数据结构呢?

3. Hash索引和B+树所有有什么区别或者说优劣呢?

4. 上面提到了B+树在满足聚簇索引和覆盖索引的时候不需要回表查询数据,什么是聚簇索引?

5. 非聚簇索引一定会回表查询吗?

6. 在建立索引的时候,都有哪些需要考虑的因素呢?

7. 联合索引是什么?为什么需要注意联合索引中的顺序?

8. 创建的索引有没有被使用到?或者说怎么才可以知道这条语句运行很慢的原因?

9. 那么在哪些情况下会发生针对该列创建了索引但是在查询的时候并没有使用呢?

事务相关

1. 什么是事务?

2. ACID是什么?可以详细说一下吗?

3. 同时有多个事务在进行会怎么样呢?

4. 怎么解决这些问题呢?MySQL的事务隔离级别了解吗?

5. Innodb使用的是哪种隔离级别呢?

6. 对MySQL的锁了解吗?

7. MySQL都有哪些锁呢?像上面那样子进行锁定岂不是有点阻碍并发效率了?

### 表结构设计

1. 为什么要尽量设定一个主键?

2. 主键使用自增ID还是UUID?

3. 字段为什么要求定义为not null?

4. 如果要存储用户的密码散列,应该使用什么字段进行存储?

### 存储引擎相关

1. MySQL支持哪些存储引擎?

2. MySQL中的varchar和char有什么区别.

3. varchar(10)和int(10)代表什么含义?

4. MySQL的binlog有有几种录入格式?分别有什么区别?

5. 超大分页怎么处理?

6. 关心过业务系统里面的sql耗时吗?统计过慢查询吗?对慢查询都怎么优化过?

7. 上面提到横向分表和纵向分表,可以分别举一个适合他们的例子吗?

8. 什么是存储过程?有哪些优缺点?

9. 说一说三个范式

10. MySQL的复制原理以及流程

11. MySQL中myisam与innodb的区别,至少5点

12. MySQL数据库cpu飙升到500%的话他怎么处理?

13. sql优化?explain原理

### 参考文档

* [100道MySQL常见面试题总结](

* [MySQL面试题全在这里了(下)](

* [【MySQL】20个经典面试题](

* [《高性能MySQL》](

* [《MySQL技术内幕:InnoDB存储引擎(第2版)》](

## 三、PHP框架相关

1. 你用过哪些PHP框架?各框架之前有没有做过对比?有没有自研发过框架

2. 什么是 Laravel ?

2. 定义 Composer.

3. 什么是 HTTP 中间件?

4. 聚合查询生成器的方法名称

6. 解释 Laravel 中 traits 的特征

7. 解释 Laravel 中契约的概念

8. 解释 Laravel 中事件的概念

9. 说一下依赖注入和依赖注入的类型

10. 如何减少 Laravel 中的内存使用?

11. 列出 Laravel 中的基础概念

12. 说明 CodeIgniter 和 Laravel 之间的区别

13. swoole原理

14. swoft原理

### 参考文档

* [91 个常见的 Laravel 面试题和答案](

* [swoft](

## 设计模式相关

1. 设计模式原则是什么?

2. 你在项目中用到了哪些设计模式?

3. 框架中有哪些设计模式?

### 参考文档

* [设计模式-菜鸟教程](

## Nginx相关

## Linux服务器相关

## 项目管理、代码管理相关

## 数据结构和算法相关

## Redis相关

1. Redis有哪些优缺点

2. 为什么要用 Redis /为什么要用缓存

3. 为什么要用 Redis 而不用 map/guava 做缓存?

4. Redis为什么这么快

5. Redis有哪些数据类型

6. Redis的应用场景

7. 什么是Redis持久化?

8. Redis 的持久化机制是什么?各自的优缺点?

9. 如何选择合适的持久化方式

10. Redis持久化数据和缓存怎么做扩容?

11. Redis的过期键的删除策略

12. Redis key的过期时间和永久有效分别怎么设置?

13. 我们知道通过expire来设置key 的过期时间,那么对过期的数据怎么处理呢?

14. Redis主要消耗什么物理资源?

15. Redis的内存用完了会发生什么?

16. Redis如何做内存优化?

17. Redis线程模型

18. 什么是事务?

19. Redis事务的概念

20. Redis事务的三个阶段

21. Redis事务相关命令

22. 事务管理(ACID)概述

23. Redis事务支持隔离性吗?

24. Redis事务保证原子性吗,支持回滚吗?

25. Redis事务其他实现

26. 哨兵模式

27. 官方Redis Cluster 方案(服务端路由查询)

28. Redis 主从架构

29. Redis集群的主从复制模型是怎样的?

30. 生产环境中的 redis 是怎么部署的?

31. 说说Redis哈希槽的概念?

32. Redis集群会有写操作丢失吗?为什么?

33. Redis集群之间是如何复制的?

34. Redis集群最大节点个数是多少?

35. Redis集群如何选择数据库?

36. Redis是单线程的,如何提高多核CPU的利用率?

37. 为什么要做Redis分区?

38. 你知道有哪些Redis分区实现方案?

39. Redis分区有什么缺点?

40. Redis实现分布式锁

41. 如何解决 Redis 的并发竞争 Key 问题

42. 什么是 RedLock

43. 缓存雪崩

44. 缓存穿透

45. 布隆过滤器

46. 缓存击穿

47. 缓存降级

48. 热点数据和冷数据

49. 缓存热点key

50. Redis与Memcached的区别

51. Redis常见性能问题和解决方案?Redis如何做大量数据插入?

52. 使用Redis做过异步队列吗,是如何实现的?

53. Redis如何实现延时队列?

54. Redis回收进程如何工作的?

55. Redis回收使用的是什么算法?

### 参考文档

* [2020年最新版68道Redis面试题,20000字干货,赶紧收藏起来备用!](

## MongoDB相关

### 参考文档

* [MongoDB 教程](

## Java基础面试题

## Java多线程、线程池

## JVM面试题

## IO、网络编程面试题

## Spring、SpringCloud、SpringBoot面试题

### Spring Cloud面试题

1. 什么是 Spring Cloud?

2. 使用 Spring Cloud 有什么优势?

3. 服务注册和发现是什么意思?Spring Cloud 如何实现?

4. Spring Cloud 和dubbo区别?

5. SpringBoot和SpringCloud的区别?。

6. 负载平衡的意义什么?

7. 什么是 Hystrix?它如何实现容错?

8. 什么是 Hystrix 断路器?我们需要它吗?

9. 什么是 Netflix Feign?它的优点是什么?

10. 什么是 Spring Cloud

11. springcloud断路器的作用

12. 什么是SpringCloudConfig?

13. Spring Cloud Gateway?

### Spring Boot面试题

1. 什么是 Spring Boot?

2. Spring Boot 有哪些优点?

3. 什么是 JavaConfig?

4. 如何重新加载 Spring Boot

5. Spring Boot 中的监视器是什么?

6. 如何在 Spring Boot 中禁用 Actuator 端点安全性?

8. 什么是 YAML?

9. 如何实现 Spring Boot 应用程序的安全性?

10. 如何集成 Spring Boot 和 ActiveMQ?

12. 什么是 Swagger?

13. 什么是 Spring Profiles?

14. 什么是 Spring Batch?

15. 什么是 FreeMarker 模板?

18. 什么是 CSRF 攻击?

19. 什么是 WebSockets?

20. 什么是 AOP?

21. 什么是 Apache Kafka?

22. 我们如何监视所有 Spring Boot 微服务?

## 微服务面试题

1. 您对微服务有何了解?

2. 微服务架构有哪些优势?

3. 微服务有哪些特点?

4. 设计微服务的最佳实践是什么?

5. 微服务架构如何运作?

6. 微服务架构的优缺点是什么?

7. 单片,SOA 和微服务架构有什么区别?

8. 在使用微服务架构时,您面临哪些挑战?

9. SOA 和微服务架构之间的主要区别是什么?

10. 微服务有什么特点?

11. 什么是领域驱动设计?

12. 为什么需要域驱动设计(DDD)?

13. 什么是无所不在的语言?

14. 什么是凝聚力?

15. 什么是耦合?

16. 什么是 REST / RESTful 以及它的用途是什么?

17. 你对 Spring Boot 有什么了解?

18. 什么是 Spring 引导的执行器?

19. 什么是 Spring Cloud?

20. Spring Cloud 解决了哪些问题?

21. 在 Spring MVC 应用程序中使用 WebMvcTest 注释有什么用处?

22. 你能否给出关于休息和微服务的要点?

23. 什么是不同类型的微服务测试?

24. 您对 Distributed Transaction 有何了解?

25. 什么是 Idempotence 以及它在哪里使用?

26. 什么是有界上下文?

27. 什么是双因素身份验证?

28. 双因素身份验证的凭据类型有哪些?

29. 什么是客户证书?

30. PACT 在微服务架构中的用途是什么?

31. 什么是 OAuth?

32. 康威定律是什么?

33. 合同测试你懂什么?

34. 什么是端到端微服务测试?

35. Container 在微服务中的用途是什么?

36. 什么是微服务架构中的 DRY?

37. 什么是消费者驱动的合同(CDC)?

38. Web,RESTful API 在微服务中的作用是什么?

39. 您对微服务架构中的语义监控有何了解?

40. 我们如何进行跨功能测试?

41. 我们如何在测试中消除非决定论?

42. Mock 或 Stub 有什么区别?

43. 您对 Mike Cohn 的测试金字塔了解多少?

44. Docker 的目的是什么?

45. 什么是金丝雀释放?

46. 什么是持续集成(CI)?

47. 什么是持续监测?

48. 架构师在微服务架构中的角色是什么?

49. 我们可以用微服务创建状态机吗?

50. 什么是微服务中的反应性扩展?

### 参考文档

* [85道Java微服务面试题整理(助力2020面试)](

* [微服务架构体系](

分布式面试题

1. CAP原理

架构面试题

1. 中台是什么?

高并发面试题

消息中间件

1. 有哪些消息中间件?

2. kafka原理?

3. RabbitMQ原理?

Go基础知识

1. 协程是什么,GO如何实现协程?

2. Go的优势在哪里?

Go框架相关

## 主管面试:项目相关

1. 你在项目遇到过哪些困难?如何解决?

## HR面试:个人发展相关

1. 你对未来1年、3-5年的规划是什么?

文章来源:智云一二三科技

文章标题:2021年后端研发工程师面试题汇总(PHP/JAVA/GO)

文章地址:https://www.zhihuclub.com/79140.shtml

关于作者: 智云科技

热门文章

评论已关闭

39条评论

  1. Look for evidence of infection GI or genitourinary to weeks before the onset of symptoms. [url=http://buycialikonline.com]cialis 5 mg[/url]

  2. Effects of VIAGRA on Blood Pressure When Nitroglycerin is Subsequently Administered Based on the pharmacokinetic profile of a single 100 mg oral dose given to healthy normal volunteers, the plasma levels of sildenafil at 24 hours post dose are approximately 2 ng mL compared to peak plasma levels of approximately 440 ng mL

  3. Paradoxically, although Clomiphene Citrate is a synthetic estrogen it also works as an anti-estrogen. The Lown Declaration offers the potential to brighten our night clomid bula anvisa sky.

  4. If you regularly drink alcohol, it s best to talk to your healthcare provider about this before you start using any antibiotic, including doxycycline.

  5. How is it that with all the research I personally have done which is a pittance compared to the amount the Hubs has done I missed the data on soursoap The scarring makes the lungs stiff, which makes it difficult to breathe

  6. These findings suggest that epigenetic inactivation and regulation of the GPx3 pathway may be critical in the development and progression of different types of cancers Breast carcinoma specific overall survival OVS was defined as the time from the date of diagnosis to death if the patient died from breast carcinoma or to the last contact

  7. The HRs compared with ADH are adjusted for treatment arm 26 However, the role of SMC MR in cardiovascular stiffening with aging has not been explored

  8. Women with mutations in this gene also have an increased risk of invasive lobular breast cancer

  9. International consensus guidelines for treatment of metastatic breast cancer MBC were finally published in 2012 and are updated biannually 7, but treatment choices are still complex and based on factors related to the disease and to the patient

  10. 3 Drug Interactions Leading to QT Prolongation Monitoring thyroid hormone levels in patients receiving replacement therapy and perhaps in those with autonomous thyroid function is necessary after androgen therapy

  11. Monitor Closely 1 epinephrine racemic and voriconazole both increase QTc interval Scientists at Johns Hopkins University Medical Center, led by Dr

  12. Interestingly, TAM and EE exhibit similar gene expression profiles at 24 and 72 hrs, suggesting that the delay in some TAM elicited responses is not maintained at later time points

  13. Premenopausal or postmenopausal patient with elevated malignancy predictive score such as the multivariate index assay, risk of malignancy index, or the Risk of Ovarian Malignancy Algorithm, or one of the ultrasound- based scoring systems from the International Ovarian Tumor Analysis Group

  14. Weaknesses lack of connection, made to feel like just a number or that I should already know what to do what to expect, rarely communicate or meet face- to- face

  15. California restricts utilization to women ages 21 through 65 regardless of sexual history The pairs of carbon atoms and protons are separated in different groups and circled in Figure 42

  16. Similarly, radiation therapy for emergent situations such as spinal cord compression, symptomatic brain metastasis, bleeding, airway compromise, or uncontrollable pain were not delayed during the pandemic

  17. The effect in man of propranolol and racemic propranolol on renin secretion stimulated by orthostatic stress Many drugs can interact with NOLVADEX

  18. For qRT PCR analysis, 1 2 ug of RNA was reverse transcribed using the High Capacity cDNA Reverse Transcription Kit ABI With their strength, they do not have the qualifications to get involved

  19. PK R1 and PK R2 are expressed in many endocrine tissues, including testis, where they play a role in angiogenesis 40

  20. Severity is defined as quite a bit or very much on the QoL questionnaires In this study, cells treated with antagomirs demonstrated increased survival due to decreased tumorigenesis

  21. You re not wasting medication in the expiratory limb of the circuit, she said Your healthcare provider may need to change the dose of PEXEVA until it is the right dose for you

网站地图