Building RESTful Web Services with .NET Core: Developing Distributed Web Services to improve scalability with .NET Core 2.0 and ASP.NET Core 2.0

Gaurav Aroraa, Tadit Dash

  • 出版商: Packt Publishing
  • 出版日期: 2018-05-31
  • 定價: $1,380
  • 售價: 6.0$828
  • 語言: 英文
  • 頁數: 334
  • 裝訂: Paperback
  • ISBN: 1788291573
  • ISBN-13: 9781788291576
  • 相關分類: .NETASP.NETJVM 語言
  • 立即出貨 (庫存=1)

買這商品的人也買了...

商品描述

Building Complete E-commerce/Shopping Cart Application

Key Features

  • Follow best practices and explore techniques such as clustering and caching to achieve a reactive, scalable web service
  • Leverage the .NET Framework to quickly implement RESTful endpoints.
  • Learn to implement a client library for a RESTful web service using ASP.NET Core.

Book Description

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 ASP.NET Core makes it a breeze for developers to work with for building robust web APIs. This book takes you through the design of RESTful web services and leverages the ASP.NET Core framework to implement these services. This book begins by introducing you to the basics of the philosophy behind REST. You'll go through the steps of designing and implementing an enterprise-grade RESTful web service. This book takes a practical approach, that you can apply to your own circumstances. This book brings forth the power of the latest .NET Core release, working with MVC. Later, you will learn about the use of the framework to explore approaches to tackle resilience, security, and scalability concerns. You will explore the steps to improve the performance of your applications. You'll also learn techniques to deal with security in web APIs and discover how to implement unit and integration test strategies. By the end of the book, you will have a complete understanding of Building a client for RESTful web services, along with some scaling techniques.

What you will learn

  • Add basic authentication to your RESTful API
  • Create a Carts Controller and Orders Controller to manage and process Orders
  • Intercept HTTP requests and responses by building your own middleware
  • Test service calls using Postman and Advanced REST Client
  • Secure your data/application using annotations

Who This Book Is For

This book is intended for those who want to learn to build RESTful web services with the latest .NET Core Framework. To make best use of the code samples included in the book, you should have a basic knowledge of C# and .NET Core.

Table of Contents

  1. Getting Started
  2. Build Initial Framework Layout Foundation of Application
  3. User registration and Administration
  4. Item catalogue Cart and Checkout
  5. Integrating external components and handling
  6. Testing RESTful Web Services
  7. Continuous Integration and Continuous Deployment
  8. Securing RESTful Web Services
  9. Scaling RESTful Services (Performance of Web Services)
  10. Building a Web Client (Consuming Web Services)
  11. Introduction to microservices

商品描述(中文翻譯)

建立完整的電子商務/購物車應用程式

關鍵特點:
- 遵循最佳實踐,探索如集群和緩存等技術,實現反應式、可擴展的網絡服務
- 利用.NET Framework 快速實現 RESTful 端點
- 學習使用 ASP.NET Core 實現 RESTful 網絡服務的客戶端庫

書籍描述:
REST 是一種應對構建可擴展網絡服務挑戰的架構風格。在當今互聯世界中,API 在網絡中扮演著核心角色。API 提供系統之間的交互接口,而 REST 已成為 API 的代名詞。ASP.NET Core 的深度、廣度和易用性使開發人員能夠輕鬆構建強大的 Web API。本書將引導您設計 RESTful 網絡服務並利用 ASP.NET Core 框架實現這些服務。本書首先介紹 REST 背後的基本理念,然後逐步設計和實現企業級 RESTful 網絡服務。本書採用實用方法,可應用於您自己的情況。本書展示了最新的 .NET Core 版本的強大功能,並使用 MVC 進行工作。隨後,您將學習使用框架來探索解決彈性、安全性和可擴展性問題的方法。您將探索提高應用性能的步驟。您還將學習處理 Web API 安全性的技巧,並了解如何實施單元測試和集成測試策略。通過閱讀本書,您將完全了解構建 RESTful 網絡服務的客戶端,以及一些擴展技術。

您將學到的內容:
- 將基本身份驗證添加到您的 RESTful API
- 建立購物車控制器和訂單控制器來管理和處理訂單
- 通過構建自己的中間件攔截 HTTP 請求和響應
- 使用 Postman 和 Advanced REST Client 測試服務呼叫
- 使用註釋保護您的數據/應用程式

本書適合對使用最新的 .NET Core 框架構建 RESTful 網絡服務感興趣的讀者。為了更好地使用書中提供的代碼示例,您應該具備基本的 C# 和 .NET Core 知識。

目錄:
1. 入門
2. 構建應用程式的初始框架佈局
3. 用戶註冊和管理
4. 商品目錄、購物車和結帳
5. 整合外部組件和處理
6. 測試 RESTful 網絡服務
7. 持續集成和持續部署
8. 保護 RESTful 網絡服務
9. 擴展 RESTful 服務(網絡服務性能)
10. 構建 Web 客戶端(使用網絡服務)
11. 微服務簡介