{"id":16412255,"url":"https://github.com/waylau/cloud-native-book-demos","last_synced_at":"2026-07-05T09:30:16.238Z","repository":{"id":42552630,"uuid":"136338333","full_name":"waylau/cloud-native-book-demos","owner":"waylau","description":"Cloud Native Samples. Cloud Native 案例大全/《Cloud Native 分布式架构原理与实践》示例源码","archived":false,"fork":false,"pushed_at":"2022-12-16T00:43:37.000Z","size":304,"stargazers_count":15,"open_issues_count":16,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-06T06:22:33.271Z","etag":null,"topics":["cloud-native","micorservice","rest","rest-api"],"latest_commit_sha":null,"homepage":"https://waylau.com/books/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/waylau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-06T14:11:59.000Z","updated_at":"2022-05-12T06:31:29.000Z","dependencies_parsed_at":"2023-01-29T06:45:46.279Z","dependency_job_id":null,"html_url":"https://github.com/waylau/cloud-native-book-demos","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/waylau%2Fcloud-native-book-demos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waylau%2Fcloud-native-book-demos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waylau%2Fcloud-native-book-demos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waylau%2Fcloud-native-book-demos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waylau","download_url":"https://codeload.github.com/waylau/cloud-native-book-demos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240427263,"owners_count":19799470,"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":["cloud-native","micorservice","rest","rest-api"],"created_at":"2024-10-11T06:48:17.169Z","updated_at":"2026-07-05T09:30:16.067Z","avatar_url":"https://github.com/waylau.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloud Native Samples（Cloud Native 案例大全）/《Cloud Native 分布式架构原理与实践》示例源码\n\n\n## 内容简介\n\nCloud Native（云原生）是以云架构为优先的应用开发模式。目前，越来越多的企业已经开始大规模地“拥抱云”——在云环境下开发应用、部署应用及发布应用等。未来，越来越多的开发者也将采用 Cloud Native 来开发应用。本书是国内 Java 领域关于 Cloud Native 的著作。\n\n本书全面讲解了基于 Cloud Native 来构建应用需要考虑的设计原则和实现方式，涵盖 REST 设计、测试、服务注册、服务发现、安全、数据管理、消息通信、批处理、任务调度、运营、容器部署、持续发布等方面的 Cloud Native 知识。同时，书中所讲解的技术方案皆为业界主流的技术，极具前瞻性。最后，本书除了讲解 Cloud Native 的理论知识，还会在每个知识点上辅以大量的代码案例，使理论可以联系实践，具备更强的可操作性。\n\n本书主要面向对分布式系统、微服务、Cloud Native 开发感兴趣的计算机专业的学生、软件开发人员和系统架构师。\n\n技术版本如下：\n\n* Apache Maven 3.5.2\n* Jersey 2.27\n* JUnit 4.12\n* Apache CXF 3.2.4\n* Spring 5.0.7.RELEASE\n* Eclipse Jetty 9.4.10.v20180503\n* Jackson JSON 2.9.5\n* Gradle 4.5.1\n* Spring Boot 2.0.3.RELEASE\n* Spring Cloud Finchley.RELEASE\n* Spring Security 5.0.6.RELEASE\n* Spring Cloud Security 2.0.0.RELEASE\n* Spring Security OAuth 2.3.3.RELEASE\n* MongoDB 3.6.4\n* Spring Data MongoDB 2.0.8.RELEASE\n* Thymeleaf 3.0.9.RELEASE\n* Thymeleaf Layout Dialect 2.2.0\n* Embedded MongoDB 2.0.2\n* Axon Framework 3.2\n* Spring Cloud Stream Elmhurst.RELEASE\n* RabbitMQ 3.7.2\n* H2 Database Engine 1.4.197\n* Spring Batch 4.0.1.RELEASE\n* Servlet 4.0.0\n* Eclipse Jetty 9.4.11.v20180605\n* Jackson JSON 2.9.6\n* Apache HttpClient 4.5.5\n* Logback Classic Module 1.2.3\n* Quartz Scheduler 2.3.0\n* Spring Cloud Starter Netflix Hystrix 2.0.0.RELEASE\n* Elasticsearch 6.0\n* Logstash 6.0\n* Kibana 6.0\n* Logstash Logback Encoder 5.1\n* Spring Cloud Config Client 2.0.0.RELEASE\n* Spring Cloud Config Server 2.0.0.RELEASE\n* Spring Boot Actuator 2.0.3.RELEASE\n* Docker 17.09.1-ce-win42\n* Gradle Docker 0.17.2\n* ...\n\n## 写作背景\n\n未来越来越多的企业将会“拥抱云”。特别是对于中小企业及个人开发者而言，以云架构为优先的 Cloud Native 应用开发模式将会深入人心。Cloud Native 能帮助企业快速推出产品，同时节省成本。\n笔者结合自身的云计算工作经验，以及对于 Cloud Native 的思考，将这方面的知识整理成册，内容涵盖 REST 设计、测试、服务注册、服务发现、安全、数据管理、消息通信、批处理、任务调度、运营、\n容器部署、持续发布等方面的知识，希望帮助读者从理论和实践两方面来深刻理解 Cloud Native。\n\n## Code 源码\n\n所有示例源码，移步至\u003chttps://github.com/waylau/cloud-native-book-demos/\u003e  `samples` 目录下\n \n内容如下：\n\n* ch02/Jersey-rest：基于 Jersey 构建 REST 服务\n* ch02/cxf-rest：基于 Apache CXF 构建 REST 服务\n* ch02/spring-rest：基于 Spring MVC 构建 REST 服务\n* ch02/initializr-start：初始化 Spring Boot 原型\n* ch02/boot-rest：基于 Spring Boot 的第一个微服务\n* ch04/eureka-client、ch04/eureka-server：实现服务的注册与发现\n* [ch06/mongodb-file-server](https://github.com/waylau/mongodb-file-server)：文件服务器的实现\n* ch07/axon-cqrs：实现 CQRS\n* ch07/cloud-stream：基于 Spring Cloud Stream 的消息通信\n* ch08/jdbc-batch：使用 JDBC Batch 的例子\n* ch08/spring-batch：使用 Spring Batch 的例子\n* ch09/quartz-scheduler：基于 Quartz Schedule 天气预报系统\n* ch10/hello-service、ch10/circuit-breaker：实现微服务的熔断机制\n* ch10/elastic-log：基于 Elastic Stack 的集中化日志管理\n* ch10/config-client、ch10/config-server：基于 Config 实现的配置中心\n* ch10/hello-actuator：基于 Spring Boot Actuator 监测的例子\n* ch11/hello-docker：使用 Docker 来构建、运行、发布微服务\n* ch11/hello-heroku：发布应用到云\n\n## 配套书籍《Cloud Native 分布式架构原理与实践》\n\n\n与该源码配套的书籍《Cloud Native 分布式架构原理与实践》已经出版，内容详见全书[目录](SUMMARY.md)。\n\n\n![](images/cloud-native-book-demos-logo.jpg)\n\n\n本书如有勘误，会在\u003chttps://github.com/waylau/cloud-native-book-demos/issues\u003e上进行发布。由于笔者能力有限，时间仓促，难免错漏，欢迎读者批评指正。\n\n您也可以上[豆瓣](https://book.douban.com/subject/30476287/)给老卫打Call。\n\n\n\n## 如何获取本书\n\n实体店及各大网店有售。据我所知有如下网站供应：\n\n* [京东](https://search.jd.com/Search?keyword=%E6%9F%B3%E4%BC%9F%E5%8D%AB%20Cloud%20Native%20%E5%88%86%E5%B8%83%E5%BC%8F%E6%9E%B6%E6%9E%84%E5%8E%9F%E7%90%86%E4%B8%8E%E5%AE%9E%E8%B7%B5\u0026enc=utf-8\u0026wq=%E6%9F%B3%E4%BC%9F%E5%8D%AB%20Cloud%20Native%20%E5%88%86%E5%B8%83%E5%BC%8F%E6%9E%B6%E6%9E%84%E5%8E%9F%E7%90%86%E4%B8%8E%E5%AE%9E%E8%B7%B5\u0026pvid=eb51cddd78e34081b875aad66e1f3112)\n* [1号店](http://search.yhd.com/c0-0/k%25E6%259F%25B3%25E4%25BC%259F%25E5%258D%25AB%2520Cloud%2520Native%2520%25E5%2588%2586%25E5%25B8%2583%25E5%25BC%258F%25E6%259E%25B6%25E6%259E%2584%25E5%258E%259F%25E7%2590%2586%25E4%25B8%258E%25E5%25AE%259E%25E8%25B7%25B5/)\n* [淘宝](https://s.taobao.com/search?q=%E6%9F%B3%E4%BC%9F%E5%8D%AB+Cloud+Native+%E5%88%86%E5%B8%83%E5%BC%8F%E6%9E%B6%E6%9E%84%E5%8E%9F%E7%90%86%E4%B8%8E%E5%AE%9E%E8%B7%B5\u0026imgfile=\u0026js=1\u0026stats_click=search_radio_all%3A1\u0026initiative_id=staobaoz_20190126\u0026ie=utf8)\n* [当当](http://search.dangdang.com/?key=%C1%F8%CE%B0%CE%C0%20Cloud%20Native%20%B7%D6%B2%BC%CA%BD%BC%DC%B9%B9%D4%AD%C0%ED%D3%EB%CA%B5%BC%F9\u0026act=input\u0026noresult=1)\n* [亚马逊](https://www.amazon.cn/s/ref=nb_sb_noss?__mk_zh_CN=%E4%BA%9A%E9%A9%AC%E9%80%8A%E7%BD%91%E7%AB%99\u0026url=search-alias%3Daps\u0026field-keywords=%E6%9F%B3%E4%BC%9F%E5%8D%AB+Cloud+Native+%E5%88%86%E5%B8%83%E5%BC%8F%E6%9E%B6%E6%9E%84%E5%8E%9F%E7%90%86%E4%B8%8E%E5%AE%9E%E8%B7%B5\u0026rh=i%3Aaps%2Ck%3A%E6%9F%B3%E4%BC%9F%E5%8D%AB+Cloud+Native+%E5%88%86%E5%B8%83%E5%BC%8F%E6%9E%B6%E6%9E%84%E5%8E%9F%E7%90%86%E4%B8%8E%E5%AE%9E%E8%B7%B5)\n\n\n\n想低于市价得到本书？来[二手书集市](https://github.com/waylau/second-hand-books)试试看。\n\n\n也可以直接关注我博客（\u003chttps://waylau.com/\u003e）或者我的开源书（\u003chttps://waylau.com/books/\u003e）了解更多免费咨询。\n\n\n\n## 联系作者\n\n您也可以直接联系我：\n\n* 博客：https://waylau.com\n* 邮箱：[waylau521(at)gmail.com](mailto:waylau521@gmail.com)\n* 微博：http://weibo.com/waylau521\n* 开源：https://github.com/waylau\n\n## 其他书籍\n\n若您对本书不感冒，笔者还写了其他方面的超过一打的书籍（可见\u003chttps://waylau.com/books/\u003e），多是开源电子书。\n\n本人也维护了一个[books-collection](https://github.com/waylau/books-collection)项目，里面提供了优质的专门给程序员的开源、免费图书集合。\n\n## 开源捐赠\n\n\n![开源捐赠](https://waylau.com/images/showmethemoney-sm.jpg)\n\n捐赠所得所有款项将用于开源事业！见[捐赠列表](https://waylau.com/donate/)。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaylau%2Fcloud-native-book-demos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaylau%2Fcloud-native-book-demos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaylau%2Fcloud-native-book-demos/lists"}