Modern API Development with Spring and Spring Boot: Design highly scalable and maintainable APIs with REST, gRPC, GraphQL, and the reactive paradigm

Sharma, Sourabh

商品描述

A developer's guide to designing, testing, and securing production-ready modern APIs with the help of practical ideas to improve your application's functionality


Key Features:

  • Build resilient software for your enterprises and customers by understanding the complete API development life cycle
  • Overcome the challenges of traditional API design by adapting to a new and evolving culture of modern API development
  • Use Spring and Spring Boot to develop future-proof scalable APIs


Book Description:

The philosophy of API development has evolved over the years to serve the modern needs of enterprise architecture, and developers need to know how to adapt to these modern API design principles. Apps are now developed with APIs that enable ease of integration for the cloud environment and distributed systems. With this Spring book, you'll discover various kinds of production-ready API implementation using REST APIs and explore async using the reactive paradigm, gRPC, and GraphQL.


You'll learn how to design evolving REST-based APIs supported by HATEOAS and ETAGs and develop reactive, async, non-blocking APIs. After that, you'll see how to secure REST APIs using Spring Security and find out how the APIs that you develop are consumed by the app's UI. The book then takes you through the process of testing, deploying, logging, and monitoring your APIs. You'll also explore API development using gRPC and GraphQL and design modern scalable architecture with microservices. The book helps you gain practical knowledge of modern API implementation using a sample e-commerce app.


By the end of this Spring book, you'll be able to develop, test, and deploy highly scalable, maintainable, and developer-friendly APIs to help your customers to transform their business.


What You Will Learn:

  • Understand RESTful API development, its design paradigm, and its best practices
  • Become well versed in Spring's core components for implementing RESTful web services
  • Implement reactive APIs and explore async API development
  • Apply Spring Security for authentication using JWT and authorization of requests
  • Develop a React-based UI to consume APIs
  • Implement gRPC inter-service communication
  • Design GraphQL-based APIs by understanding workflows and tooling
  • Gain insights into how you can secure, test, monitor, and deploy your APIs


Who this book is for:

This book is for inexperienced Java programmers, comp science, or coding boot camp graduates who have knowledge of basic programming constructs, data structures, and algorithms in Java but lack the practical web development skills necessary to start working as a developer. Professionals who've recently joined a startup or a company and are tasked with creating real-world web APIs and services will also find this book helpful. This book is also a good resource for Java developers who are looking for a career move into web development to get started with the basics of web service development.

商品描述(中文翻譯)

一本開發者指南:設計、測試和保護現代生產就緒的API的實用想法,以提升應用程式功能的功能

主要特點:
- 通過了解完整的API開發生命週期,為企業和客戶構建具有彈性的軟體
- 通過適應新興的現代API開發文化,克服傳統API設計的挑戰
- 使用Spring和Spring Boot開發具有未來擴展性的可擴展API

書籍描述:
多年來,API開發的理念已經演變,以滿足企業架構的現代需求,開發者需要知道如何適應這些現代API設計原則。現在的應用程式使用API進行開發,以實現雲環境和分散式系統的集成便利。通過這本Spring書,您將發現使用REST API實現各種生產就緒的API,並探索使用反應式範式、gRPC和GraphQL的異步處理。

您將學習如何設計基於HATEOAS和ETAG的不斷演進的REST API,並開發反應式、異步、非阻塞的API。之後,您將了解如何使用Spring Security保護REST API,並了解您開發的API如何被應用程式的UI使用。本書還將帶您進行API的測試、部署、日誌記錄和監控。您還將探索使用gRPC和GraphQL進行API開發,並設計具有微服務的現代可擴展架構。本書通過一個示例電子商務應用程式,幫助您獲得現代API實現的實用知識。

通過閱讀本書,您將能夠開發、測試和部署高度可擴展、易於維護和開發者友好的API,以幫助您的客戶轉型業務。

您將學到什麼:
- 了解RESTful API開發、設計範式及最佳實踐
- 熟悉Spring的核心組件,以實現RESTful網絡服務
- 實現反應式API,並探索異步API開發
- 使用JWT進行身份驗證和請求授權的Spring Security
- 開發基於React的UI來使用API
- 實現gRPC的服務間通信
- 通過了解工作流程和工具,設計基於GraphQL的API
- 獲得有關如何保護、測試、監控和部署API的見解

本書適合對Java編程不熟練的人、計算機科學或編碼營畢業生,他們具備Java基本編程結構、數據結構和算法的知識,但缺乏開發實際網絡應用程式所需的實踐技能。最近加入初創公司或公司並負責創建實際網絡API和服務的專業人士也會發現本書有用。對於希望轉向網絡開發並開始學習網絡服務開發基礎的Java開發人員來說,本書也是一個很好的資源。