Java 17 Backend Development: Design backend systems using Spring Boot, Docker, Kafka, Eureka, Redis, and Tomcat
暫譯: Java 17 後端開發:使用 Spring Boot、Docker、Kafka、Eureka、Redis 和 Tomcat 設計後端系統
Drevyn, Elara
- 出版商: Gitforgits
- 出版日期: 2024-12-10
- 售價: $2,470
- 貴賓價: 9.5 折 $2,347
- 語言: 英文
- 頁數: 184
- 裝訂: Quality Paper - also called trade paper
- ISBN: 8197950458
- ISBN-13: 9788197950452
-
相關分類:
Java 程式語言
海外代購書籍(需單獨結帳)
相關主題
商品描述
This book offers beginners and backend developers with practical guidance on developing robust server-side applications with Java 17. Each chapter is structured around hands-on examples, real-world challenges, and step-by-step solutions tailored to Java professionals aiming to elevate their expertise in backend systems. It seamlessly transitions through essential development phases, covering foundational elements like from object-oriented design and basic REST endpoints to advanced microservices architecture and container orchestration.
It covers from wiring up databases with Hibernate to managing asynchronous communication with Apache Kafka and securing endpoints with Spring Security. You will explore caching strategies with Redis and diving into techniques to boost performance and reduce database load. It also covers Spring Cloud concepts like Eureka for service discovery and Config Server for centralized management, showing how microservices function cohesively. The book also covers testing and debugging topics, highlighting modern tools and practices such as JUnit, Mockito, integration tests, and distributed tracing. The book clearly encourages consistent coding standards, efficient concurrency patterns, and a layered approach for verifying logic.
As the book moves forward, it clearly illustrates how to maintain code quality and automate deployment workflows using continuous integration and delivery pipelines. Towards the book's end, you will know how to run Java 17 backend applications in simple production environments, and you will be applying best practices for logging, monitoring, security, and scalability. You will witness how all of these pieces fit together in a coherent ecosystem, whether they are deploying on Tomcat or containerizing with Docker.
Key LearningsSet up RESTful APIs and data mappings.
Use Spring Security for robust user authentication and role-based access control.
Employ Redis caching techniques to offload databases and enhance performance.
Integrate Kafka to establish asynchronous, high-throughput communication among microservices.
Adopt Spring Cloud tools for configuration, discovery, and gateway-based microservice architectures.
Employ Docker containerization for portable deployments across environments.
Construct CI/CD pipelines to automate testing, building, and delivery of microservices.
Conduct thorough integration testing with real databases, brokers, and external dependencies.
Use debugging tools, logs, and distributed tracing to isolate production issues.
Optimize concurrency, resource usage, and monitoring to handle large-scale backend demands.
Table of ContentIntroduction to Java 17 and Backend Development
Setting up Development Environment
Introduction to Spring and Spring Boot
Building RESTful APIs with Spring Boot
Data Persistence with Hibernate ORM and JPA
Managing Database Interactions
User Authentication and Authorization with Spring Security
Caching with Redis
Messaging with Apache Kafka
Microservices Architecture with Spring Cloud
Testing and Debugging Backend Applications
Deploying Java Backend Applications
商品描述(中文翻譯)
這本書為初學者和後端開發人員提供了有關使用 Java 17 開發穩健伺服器端應用程式的實用指導。每一章都圍繞著實作範例、現實挑戰和逐步解決方案進行結構設計,旨在幫助希望提升後端系統專業知識的 Java 專業人士。書中無縫地過渡於各個重要的開發階段,涵蓋了從物件導向設計和基本 REST 端點到進階微服務架構和容器編排等基礎要素。
內容涵蓋了如何使用 Hibernate 連接資料庫、如何使用 Apache Kafka 管理非同步通訊,以及如何使用 Spring Security 確保端點安全。您將探索使用 Redis 的快取策略,並深入了解提升性能和減少資料庫負載的技術。書中還介紹了 Spring Cloud 的概念,如 Eureka 用於服務發現和 Config Server 用於集中管理,展示微服務如何協同運作。書中還涵蓋了測試和除錯主題,強調現代工具和實踐,如 JUnit、Mockito、整合測試和分散式追蹤。書中明確鼓勵一致的程式碼標準、高效的併發模式,以及驗證邏輯的分層方法。
隨著書籍的進展,清楚地說明了如何維護程式碼質量並使用持續整合和交付管道自動化部署工作流程。在書籍的結尾,您將了解如何在簡單的生產環境中運行 Java 17 後端應用程式,並應用最佳實踐來進行日誌記錄、監控、安全性和可擴展性。您將見證這些元素如何在一個連貫的生態系統中協同運作,無論是部署在 Tomcat 上還是使用 Docker 進行容器化。
關鍵學習
- 設置 RESTful API 和資料映射。
- 使用 Spring Security 進行穩健的用戶身份驗證和基於角色的存取控制。
- 採用 Redis 快取技術來減輕資料庫負擔並提升性能。
- 整合 Kafka 以建立微服務之間的非同步高吞吐量通訊。
- 採用 Spring Cloud 工具進行配置、發現和基於閘道的微服務架構。
- 使用 Docker 容器化進行跨環境的可攜式部署。
- 構建 CI/CD 管道以自動化微服務的測試、構建和交付。
- 與實際資料庫、代理和外部依賴進行徹底的整合測試。
- 使用除錯工具、日誌和分散式追蹤來隔離生產問題。
- 優化併發、資源使用和監控,以應對大規模後端需求。
目錄
- Java 17 和後端開發簡介
- 設置開發環境
- Spring 和 Spring Boot 簡介
- 使用 Spring Boot 建立 RESTful API
- 使用 Hibernate ORM 和 JPA 進行資料持久化
- 管理資料庫互動
- 使用 Spring Security 進行用戶身份驗證和授權
- 使用 Redis 進行快取
- 使用 Apache Kafka 進行消息傳遞
- 使用 Spring Cloud 進行微服務架構
- 測試和除錯後端應用程式
- 部署 Java 後端應用程式