Craft GraphQL APIs in Elixir with Absinthe: Flexible, Robust Services for Queries, Mutations, and Subscriptions
暫譯: 使用 Absinthe 在 Elixir 中構建 GraphQL API:靈活、穩健的查詢、變更和訂閱服務

Bruce Williams, Ben Wilson

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2018-05-01
  • 售價: $1,630
  • 貴賓價: 9.5$1,549
  • 語言: 英文
  • 頁數: 304
  • 裝訂: Paperback
  • ISBN: 1680502557
  • ISBN-13: 9781680502558
  • 相關分類: Functional-programmingWeb API
  • 立即出貨 (庫存 < 3)

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

相關主題

商品描述

Your domain is rich and interconnected, and your API should be too. Upgrade your web API to GraphQL, leveraging its flexible queries to empower your users, and its declarative structure to simplify your code. Absinthe is the GraphQL toolkit for Elixir, a functional programming language designed to enable massive concurrency atop robust application architectures. Written by the creators of Absinthe, this book will help you take full advantage of these two groundbreaking technologies. Build your own flexible, high-performance APIs using step-by-step guidance and expert advice you won't find anywhere else.

GraphQL is a new way of structuring and building web services, and the result is transformational. Find out how to offer a more tailored, cohesive experience to your users, easily aggregate data from different data sources, and improve your back end's maintainability with Absinthe's declarative approach to defining how your API works.

Build a GraphQL-based API from scratch using Absinthe, starting from core principles. Learn the type system and how to expand your schema to suit your application's needs. Discover a growing ecosystem of tools and utilities to understand, debug, and document your API. Take it to production, but do it safely with solid best practices in mind. Find out how complexity analysis and persisted queries can let you support your users flexibly, but responsibly too. Along the way, discover how Elixir makes all the difference for a high performance, fault-tolerant API. Use asynchronous and batching execution, or write your own custom add-ons to extend Absinthe. Go live with subscriptions, delivering data over websockets on top of Elixir (and Erlang/OTP's) famous solid performance and real-time capabilities.

Transform your applications with the powerful combination of Elixir and GraphQL, using Absinthe.

What You Need:

To follow along with the book, you should have Erlang/OTP 19+ and Elixir 1.4+ installed. The book will guide you through setting up a new Phoenix application using Absinthe.

商品描述(中文翻譯)

您的領域是豐富且互聯的,您的 API 也應該如此。將您的網頁 API 升級到 GraphQL,利用其靈活的查詢來賦能您的用戶,並利用其聲明式結構來簡化您的代碼。Absinthe 是 Elixir 的 GraphQL 工具包,Elixir 是一種功能性編程語言,旨在支持在穩健的應用架構上實現大規模的並發。這本書由 Absinthe 的創作者撰寫,將幫助您充分利用這兩種突破性技術。使用逐步指導和專家建議,構建您自己的靈活、高效能的 API,這些建議在其他地方無法找到。

GraphQL 是一種結構化和構建網路服務的新方式,其結果是變革性的。了解如何為您的用戶提供更量身定制、連貫的體驗,輕鬆地從不同數據來源聚合數據,並通過 Absinthe 的聲明式方法改善後端的可維護性,定義您的 API 如何運作。

從核心原則開始,使用 Absinthe 從零開始構建基於 GraphQL 的 API。學習類型系統以及如何擴展您的架構以滿足應用需求。發現一個不斷增長的工具和實用程序生態系統,以理解、調試和記錄您的 API。將其投入生產,但要安全地遵循穩固的最佳實踐。了解複雜性分析和持久化查詢如何讓您靈活但負責任地支持您的用戶。在此過程中,發現 Elixir 如何為高效能、容錯的 API 帶來所有不同之處。使用非同步和批次執行,或編寫您自己的自定義附加功能來擴展 Absinthe。使用訂閱功能上線,通過 websockets 傳遞數據,充分利用 Elixir(以及 Erlang/OTP)著名的穩定性能和實時能力。

使用 Absinthe,利用 Elixir 和 GraphQL 的強大組合來改變您的應用程序。

您需要的:

要跟隨本書,您應該安裝 Erlang/OTP 19+ 和 Elixir 1.4+。本書將指導您使用 Absinthe 設置新的 Phoenix 應用程序。