{"id":28756694,"url":"https://github.com/wx-chevalier/ha-notes","last_synced_at":"2025-07-09T12:07:45.566Z","repository":{"id":105126647,"uuid":"237747171","full_name":"wx-chevalier/HA-Notes","owner":"wx-chevalier","description":"高可用架构，涵盖了分布式系统（存储与计算）、微服务、数据库、Cloud 与 Kubernetes、Linux 与操作系统、DevOps 等多领域知识的融汇","archived":false,"fork":false,"pushed_at":"2025-06-10T09:44:05.000Z","size":255,"stargazers_count":31,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-17T17:54:44.763Z","etag":null,"topics":["wx-be","wx-code"],"latest_commit_sha":null,"homepage":"https://ng-tech.icu/books/HA-Series","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wx-chevalier.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,"zenodo":null}},"created_at":"2020-02-02T09:26:24.000Z","updated_at":"2025-06-10T09:44:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"80da6d03-3708-4186-9e58-8cdac6608439","html_url":"https://github.com/wx-chevalier/HA-Notes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wx-chevalier/HA-Notes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wx-chevalier%2FHA-Notes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wx-chevalier%2FHA-Notes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wx-chevalier%2FHA-Notes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wx-chevalier%2FHA-Notes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wx-chevalier","download_url":"https://codeload.github.com/wx-chevalier/HA-Notes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wx-chevalier%2FHA-Notes/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264455967,"owners_count":23611059,"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":["wx-be","wx-code"],"created_at":"2025-06-17T03:08:39.019Z","updated_at":"2025-07-09T12:07:45.540Z","avatar_url":"https://github.com/wx-chevalier.png","language":"HTML","readme":"[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![license: CC BY-NC-SA 4.0](https://img.shields.io/badge/license-CC%20BY--NC--SA%204.0-lightgrey.svg)][license-url]\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/wx-chevalier/HA-Notes\"\u003e\n    \u003cimg src=\"https://assets.ng-tech.icu/item/header.svg\" alt=\"Logo\" style=\"width: 100vw;height: 400px\" /\u003e\n  \u003c/a\u003e\n\n  \u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/wx-chevalier/HA-Notes\"\u003e速览手册\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/wx-chevalier/HA-Notes/issues\"\u003eBug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/wx-chevalier/HA-Notes/issues\"\u003e参考资料\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n# HA Series（高可用架构）\n\n![高可用题图](https://s2.ax1x.com/2019/11/18/M60zp4.png)\n\nQoS(Quality of Service)，顾名思义，QoS 就是服务质量的缩写。QoS 概念最初源于网络，指一个网络利用各种基础技术，提供更好网络通信服务能力, 是网络的一种安全保障机制，是用来解决网络延迟和阻塞等问题的一种技术。但是，如今 QoS 概念已经被范化，不仅用于网络，也用来标识应用服务、基础技术、资源保障的能力和质量。\n\n高可用架构并非基础架构本身，而是涵盖了多个维度，为了保障最终交付/部署可用性的策略、机制、技术架构的集合。质量保障应该是从团队组织，到开发，测试，发布，运维等全生命周期的工作，而不是某个孤立的技术突破点。\n\n![mindmap](https://assets.ng-tech.icu/item/20230418155710.png)\n\n## 高并发应对\n\n高并发系统的典型场景就是电商大促、12306 抢票等，瞬间洪峰超出最大负载，热点商品、票仓挤占正常流量，导致 CPU LOAD 居高不下，请求响应缓慢而损害用户体验。高并发场景下的挑战，首先是继承了我们在并发编程中讨论的挑战点，譬如共享资源的并发访问，计算型密集任务的分布式调度等。\n\n在本篇的高并发应对中，我们核心是关注于单一热点资源的峰值流量的架构与策略，对于分布式计算、调度等相关内容，我们将会在[分布式基础架构](https://ng-tech.icu/books/DistributedSystem-Notes/#/)系列中进行详细地讨论。\n\n\u003e 本书的精排目录导航版请参考 [https://ng-tech.icu/books/HA-Notes](https://ng-tech.icu/books/HA-Notes)。\n\n## Nav | 导航\n\n高可用架构是对于[分布式系统（存储与计算）、微服务、Cloud 与 Kubernetes、Linux 与操作系统、DevOps](https://ng-tech.icu/books-gallery/)等领域的综合运用，建议您先阅读各自领域的系列笔记。\n\n# About | 关于\n\n\u003c!-- CONTRIBUTING --\u003e\n\n## Contributing\n\nContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\u003c!-- ACKNOWLEDGEMENTS --\u003e\n\n## Acknowledgements\n\n- [Awesome-Lists](https://github.com/wx-chevalier/Awesome-Lists): 📚 Guide to Galaxy, curated, worthy and up-to-date links/reading list for ITCS-Coding/Algorithm/SoftwareArchitecture/AI. 💫 ITCS-编程/算法/软件架构/人工智能等领域的文章/书籍/资料/项目链接精选。\n\n- [Awesome-CS-Books](https://github.com/wx-chevalier/Awesome-CS-Books): :books: Awesome CS Books/Series(.pdf by git lfs) Warehouse for Geeks, ProgrammingLanguage, SoftwareEngineering, Web, AI, ServerSideApplication, Infrastructure, FE etc. :dizzy: 优秀计算机科学与技术领域相关的书籍归档。\n\n## Copyright \u0026 More | 延伸阅读\n\n笔者所有文章遵循[知识共享 署名 - 非商业性使用 - 禁止演绎 4.0 国际许可协议](https://creativecommons.org/licenses/by-nc-nd/4.0/deed.zh)，欢迎转载，尊重版权。您还可以前往 [NGTE Books](https://ng-tech.icu/books-gallery/) 主页浏览包含知识体系、编程语言、软件工程、模式与架构、Web 与大前端、服务端开发实践与工程架构、分布式基础架构、人工智能与深度学习、产品运营与创业等多类目的书籍列表：\n\n[![NGTE Books](https://s2.ax1x.com/2020/01/18/19uXtI.png)](https://ng-tech.icu/books-gallery/)\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n\n[contributors-shield]: https://img.shields.io/github/contributors/wx-chevalier/HA-Notes.svg?style=flat-square\n[contributors-url]: https://github.com/wx-chevalier/HA-Notes/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/wx-chevalier/HA-Notes.svg?style=flat-square\n[forks-url]: https://github.com/wx-chevalier/HA-Notes/network/members\n[stars-shield]: https://img.shields.io/github/stars/wx-chevalier/HA-Notes.svg?style=flat-square\n[stars-url]: https://github.com/wx-chevalier/HA-Notes/stargazers\n[issues-shield]: https://img.shields.io/github/issues/wx-chevalier/HA-Notes.svg?style=flat-square\n[issues-url]: https://github.com/wx-chevalier/HA-Notes/issues\n[license-shield]: https://img.shields.io/github/license/wx-chevalier/HA-Notes.svg?style=flat-square\n[license-url]: https://github.com/wx-chevalier/HA-Notes/blob/master/LICENSE.txt\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwx-chevalier%2Fha-notes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwx-chevalier%2Fha-notes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwx-chevalier%2Fha-notes/lists"}