Craft GraphQL APIs in Elixir with Absinthe: Flexible, Robust Services for Queries, Mutations, and Subscriptions

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 也應該如此。將您的 Web API 升級為 GraphQL,利用其靈活的查詢功能來增強使用者體驗,並利用其聲明式結構來簡化程式碼。Absinthe 是 Elixir 的 GraphQL 工具包,Elixir 是一種功能性程式語言,旨在在堅固的應用程式架構之上實現大規模並行處理。本書由 Absinthe 的創作者撰寫,將幫助您充分利用這兩項突破性技術。使用逐步指導和專家建議,建立自己靈活且高效的 API,這些資訊在其他地方難以找到。

GraphQL 是一種結構和構建 Web 服務的新方式,其結果是具有轉型性的。了解如何為您的使用者提供更個性化、連貫的體驗,輕鬆聚合來自不同資料來源的資料,並通過 Absinthe 的聲明式方法來改善後端的可維護性,以定義 API 的工作方式。

使用 Absinthe 從頭開始建立基於 GraphQL 的 API,從核心原則開始。了解類型系統以及如何擴展模式以滿足應用程式的需求。探索一個不斷增長的工具和實用程式生態系統,以了解、調試和記錄您的 API。安全地將其部署到生產環境中,並遵循堅實的最佳實踐。了解複雜性分析和持久化查詢如何讓您靈活地支援使用者,同時也負責任。在此過程中,發現 Elixir 在高效、容錯的 API 中的重要性。使用異步和批次執行,或編寫自己的自定義附加元件來擴展 Absinthe。通過訂閱功能上線,利用 Elixir(和 Erlang/OTP)著名的高效能和實時能力,通過 Websockets 傳遞資料。

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

您需要什麼:

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