{"id":15032571,"url":"https://github.com/johnlui/pphc","last_synced_at":"2025-04-11T05:13:59.798Z","repository":{"id":65856506,"uuid":"600293436","full_name":"johnlui/PPHC","owner":"johnlui","description":"📙《高并发的哲学原理》开源图书（CC BY-NC-ND）https://pphc.lvwenhan.com","archived":false,"fork":false,"pushed_at":"2024-09-06T05:30:07.000Z","size":2639,"stargazers_count":3865,"open_issues_count":7,"forks_count":345,"subscribers_count":38,"default_branch":"main","last_synced_at":"2025-04-11T05:13:55.595Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pphc.lvwenhan.com","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnlui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-11T03:20:59.000Z","updated_at":"2025-04-10T05:46:47.000Z","dependencies_parsed_at":"2024-01-12T01:14:27.342Z","dependency_job_id":"f7cfd082-9905-42e9-8e21-eab62280b467","html_url":"https://github.com/johnlui/PPHC","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnlui%2FPPHC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnlui%2FPPHC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnlui%2FPPHC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnlui%2FPPHC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnlui","download_url":"https://codeload.github.com/johnlui/PPHC/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345268,"owners_count":21088245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T20:18:44.944Z","updated_at":"2025-04-11T05:13:59.780Z","avatar_url":"https://github.com/johnlui.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/Pinatra/Pinatra\"\u003e\u003cimg src=\"./assets/banner.jpg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch3 align=\"center\"\u003e《高并发的哲学原理 Philosophical Principles of High Concurrency》\u003c/h3\u003e\n\u003ch3 align=\"center\"\u003e简称 \u003ccode\u003ePPHC\u003c/code\u003e\u003c/h3\u003e\n\u003chr\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://trendshift.io/repositories/4395\" target=\"_blank\"\u003e\u003cimg src=\"https://trendshift.io/api/badge/repositories/4395\" alt=\"johnlui%2FPPHC | Trendshift\" style=\"width: 250px; height: 55px;\" width=\"250\" height=\"55\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n### 阅读地址：https://pphc.lvwenhan.com\n\n**pdf 下载链接在网站右上角。**\n\n### 写作目标\n\n本书的目标是在作者有限的认知范围内，讨论一下高并发问题背后隐藏的一个哲学原理——找出单点，进行拆分。\n\n### 内容梗概\n\n我们将从动静分离讲起，一步步深入 Apache、Nginx、epoll、虚拟机、k8s、异步非阻塞、协程、应用网关、L4/L7 负载均衡器、路由器(网关)、交换机、LVS、软件定义网络(SDN)、Keepalived、DPDK、ECMP、全冗余架构、用户态网卡、集中式存储、分布式存储、PCIe 5.0、全村的希望 CXL、InnoDB 三级索引、内存缓存、KV 数据库、列存储、内存数据库、Shared-Nothing、计算存储分离、Paxos、微服务架构、削峰、基于地理位置拆分、高可用等等等等。并最终基于地球和人类社会的基本属性，设计出可以服务地球全体人类的高并发架构。\n\n全书共有 12 章，83 篇文章，总计 167547 字。\n\n### 读者评价\n\n\u003e 会上一谈到架构和 I/O，我都想到你的文章。主讲解答清楚和没解答清楚的，都没你的文章清楚。\n\u003e\n\u003e —— 秋收，于 RubyConf 2023\n\n---\n\n\u003e 像看小说一样把文章都看完了，全程无尿点，作者的脑袋是在哪里开过光，知识储备竟如此扎实\n\u003e\n\u003e —— 观东山\n\n---\n\n\u003e 非常棒的技术分享！深入浅出，娓娓道来，让我想起了那本 csapp。\n\u003e\n\u003e —— drhrchen\n\n---\n\n\u003e 写得真好，膜拜！作者愿意出书吗，一定买！\n\u003e\n\u003e —— bean\n\n---\n\n\u003e 拜读了！应该算是架构顶级总结！！\n\u003e\n\u003e —— 雨山前\n\n---\n\n\u003e 看完了 博主好厉害 学习到了各种骚技巧 和知识 膜拜\n\u003e\n\u003e —— evanxian\n\n---\n\n\u003e 写的太好了，不仅充满了理工科的严谨较真，也充满了文科的浪漫\n\u003e\n\u003e —— 一秒\n\n---\n\n\u003e 写得很好，视角也是我喜欢的，站在地球表面，述事宏大，思维自信。\n\u003e\n\u003e —— 纳秒时光\n\n---\n\n\u003e 全部看完，博主太强了，很受启发\n\u003e\n\u003e —— Bruce\n\n---\n\n\u003e 棒\n\u003e\n\u003e —— JuniaWonter\n\n\n### 作者信息：\n\n1. 姓名：吕文翰\n2. GitHub：[johnlui](https://github.com/johnlui)\n3. 职位：住范儿创始成员，CTO，监事\n\n![公众号](https://lvwenhan.com/content/uploadfile/202301/79c41673579170.jpg)\n\n#### 高并发系统处理经验\n\n1. 2017 年维护的单体 CMS 系统顶住了每日两百万 PV 的压力\n2. 2020 年优化一个单机 PHP 商城顶住了 QPS 1000+ 的压力\n3. 2021 年设计的分布式电商秒杀系统在实际业务中跑到了最高一分钟 GMV 500 万，QPS 10000+\n\n\n### 目录\n\n\u003cimg src=\"./assets/table.jpg\"\u003e\n\n### 精彩图片摘录\n\n\u003cimg src=\"./assets/p0.jpg\"\u003e\n\n\u003cimg src=\"./assets/p1.jpg\"\u003e\n\n\u003cimg src=\"./assets/p2.jpg\"\u003e\n\n\u003cimg src=\"./assets/p3.jpg\"\u003e\n\n\u003cimg src=\"./assets/p4.jpg\"\u003e\n\n\u003cimg src=\"./assets/p5.jpg\"\u003e\n\n\n### 版权声明\n\n本书版权归属于[吕文翰](https://github.com/johnlui)，采用 [CC BY-NC-ND 4.0](https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode.zh-Hans) 协议开源，供 GitHub 平台用户免费阅读。\n\n\u003ca rel=\"license\" href=\"https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode.zh-Hans\"\u003e\u003cimg alt=\"Creative Commons License\" style=\"border-width:0\" src=\"https://i.creativecommons.org/l/by-nc-nd/4.0/88x31.png\" /\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnlui%2Fpphc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnlui%2Fpphc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnlui%2Fpphc/lists"}