Building a RESTful Web Service with Spring
Ludovic Dewailly
- 出版商: Packt Publishing
- 出版日期: 2015-10-16
- 售價: $1,440
- 貴賓價: 9.5 折 $1,368
- 語言: 英文
- 頁數: 115
- 裝訂: Paperback
- ISBN: 1785285718
- ISBN-13: 9781785285714
海外代購書籍(需單獨結帳)
相關主題
商品描述
A hands-on guide to building an enterprise-grade, scalable RESTful web service using the Spring Framework
About This Book
- Follow best practices and explore techniques such as clustering and caching to achieve a scalable web service
- Leverage the Spring Framework to quickly implement RESTful endpoints
- Learn to implement a client library for a RESTful web service using the Spring Framework
Who This Book Is For
This book is intended for those who want to learn to build RESTful web services with the Spring Framework. To make best use of the code samples included in the book, you should have a basic knowledge of the Java language. Previous experience with the Spring Framework would also help you get up and running quickly.
What You Will Learn
- Deep dive into the principles behind REST
- Expose CRUD operations through RESTful endpoints with the Spring Framework
- Devise response formats and error handling strategies, offering a consistent and flexible structure to simplify integration for service consumers
- Follow the best approaches for dealing with a service's evolution while maintaining backward compatibility
- Understand techniques to secure web services
- Comply with the best ways to test RESTful web services, including tips for load testing
- Optimise and scale web services using techniques such as caching and clustering
In Detail
REST is an architectural style that tackles the challenges of building scalable web services. In today's connected world, APIs have taken a central role on the web. APIs provide the fabric through which systems interact, and REST has become synonymous with APIs.
The depth, breadth, and ease of use of Spring makes it one of the most attractive frameworks in the Java ecosystem. Marrying the two technologies is therefore a very natural choice.
This book takes you through the design of RESTful web services and leverages the Spring Framework to implement these services. Starting from the basics of the philosophy behind REST, you'll go through the steps of designing and implementing an enterprise-grade RESTful web service. Taking a practical approach, each chapter provides code samples that you can apply to your own circumstances.
This book goes beyond the use of Spring and explores approaches to tackle resilience, security, and scalability concerns. You'll learn techniques to deal with security in Spring and discover how to implement unit and integration test strategies.
Finally, the book ends by walking you through building a Java client for your RESTful web service, along with some scaling techniques for it.
Style and approach
This book is a step-by-step, hands-on guide to designing and building RESTful web services. The book follows the natural cycle of developing these services and includes multiple code samples to help you.
商品描述(中文翻譯)
一本實用指南,教你如何使用 Spring Framework 建立企業級、可擴展的 RESTful 網路服務
關於本書
- 遵循最佳實踐,探索如叢集和快取等技術,以實現可擴展的網路服務
- 利用 Spring Framework 快速實現 RESTful 端點
- 學習如何使用 Spring Framework 為 RESTful 網路服務實作客戶端函式庫
本書適合誰
本書適合希望學習如何使用 Spring Framework 建立 RESTful 網路服務的人士。為了充分利用書中包含的程式碼範例,您應具備基本的 Java 語言知識。先前對 Spring Framework 的經驗也將幫助您快速上手。
您將學到什麼
- 深入了解 REST 背後的原則
- 通過 Spring Framework 透過 RESTful 端點公開 CRUD 操作
- 設計回應格式和錯誤處理策略,提供一致且靈活的結構,以簡化服務消費者的整合
- 遵循最佳方法處理服務的演進,同時保持向後相容性
- 理解保護網路服務的技術
- 遵循測試 RESTful 網路服務的最佳方法,包括負載測試的提示
- 使用快取和叢集等技術優化和擴展網路服務
詳細內容
REST 是一種架構風格,旨在解決建立可擴展網路服務的挑戰。在當今互聯的世界中,API 在網路上扮演了核心角色。API 提供了系統互動的基礎,而 REST 已經成為 API 的代名詞。
Spring 的深度、廣度和易用性使其成為 Java 生態系統中最具吸引力的框架之一。因此,將這兩種技術結合起來是一個非常自然的選擇。
本書將帶您了解 RESTful 網路服務的設計,並利用 Spring Framework 實作這些服務。從 REST 背後的基本哲學開始,您將逐步學習設計和實作企業級 RESTful 網路服務的步驟。每一章都採取實用的方法,提供可應用於您自身情況的程式碼範例。
本書不僅限於使用 Spring,還探討了應對韌性、安全性和可擴展性問題的方法。您將學習如何在 Spring 中處理安全性,並發現如何實作單元測試和整合測試策略。
最後,本書將指導您為您的 RESTful 網路服務建立 Java 客戶端,並介紹一些擴展技術。
風格與方法
本書是一本逐步的實用指南,教您設計和建立 RESTful 網路服務。本書遵循開發這些服務的自然循環,並包含多個程式碼範例以協助您。