5

有大佬熟悉高并发技术吗?有空进来交流一下

 1 year ago
source link: https://www.v2ex.com/t/896200
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  程序员

有大佬熟悉高并发技术吗?有空进来交流一下

  hxysnail · 2 小时 32 分钟前 · 972 次点击

各位大佬,事情是这样的:前几天有个初学者朋友问我关于高并发的技术,这个话题有点大,在微信上简单跟他介绍了一些,然后想着周末抽个时间详细写出来,我列了一个提纲,大概这样展开:

应用程序本身:

  • 套接字编程技巧
  • 经典多进程、多线程并发
  • IO 多路复用:select => poll => epoll
  • 内核参数:fs.file-max 以及 ulimit fileno
  • 跟操作系统和处理器架构相关的,比如 SMP MUMA CPU 缓存等

负载均衡架构:

  • 为什么要负载均衡
  • nginx
  • haproxy
  • 均衡手段和策略

数据库优化:

  • SQL 调优、索引调优
  • 数据分片(分表分库)

关于高并发方面,我目前知道的套路基本就是以上列的这些。我自己工作后这类场景涉及不太多的,肯定有疏漏,有经验的大佬帮忙补充一下,帮我补全知识面

另外,由于我遇到的业务场景都不怎么牛逼,感觉也写不出彩,各位大佬有什么典型的应用场景也请不吝分享一下

我梳理完毕,把文章整理好后,也会回来分享

不胜感激~


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK