Learning Apache Thrift
暫譯: 學習 Apache Thrift

Krzysztof Rakowski

  • 出版商: Packt Publishing
  • 出版日期: 2015-12-24
  • 售價: $1,670
  • 貴賓價: 9.5$1,587
  • 語言: 英文
  • 頁數: 204
  • 裝訂: Paperback
  • ISBN: 1785882740
  • ISBN-13: 9781785882746
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Make applications cross-communicate using Apache Thrift!

About This Book

  • Leverage Apache Thrift to enable applications written in different programming languages (Java, C++, Python, PHP, Ruby, and so on) to cross-communicate.
  • Learn to make your services ready for real-world applications by using stepwise examples and modifying code from Industry giants.
  • Be a crackerjack at solving Apache Thrift-related issues.

Who This Book Is For

If you have some experience of developing applications in one or more languages supported by Apache Thrift (C++, Java, PHP, Python, Ruby, and others) and want to broaden your knowledge and skills in building cross-platform, scalable applications, then this book is for you.

What You Will Learn

  • Understand the need for cross-language services and the basics of Apache Thrift.
  • Learn how Apache Thrift works and what problems it solves.
  • Determine when to use Apache Thrift instead of other methods (REST API), and when not to use it.
  • Create and run an example application using Apache Thrift.
  • Use Apache Thrift in your applications written in different languages supported by Apache Thrift (PHP, Python, Ruby, Java, and C++).
  • Handle exceptions and deal with errors.
  • Modify code in different languages.
  • Use Apache Thrift in the production environments of big applications.

In Detail

With modern software systems being increasingly complex, providing a scalable communication architecture for applications in different languages is tedious. The Apache Thrift framework is the solution to this problem! It helps build efficient and easy-to-maintain services and offers a plethora of options matching your application type by supporting several popular programming languages, including C++, Java, Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, JavaScript, Node.js, Smalltalk, OCaml, and Delphi.

This book will help you set aside the basics of service-oriented systems through your first Apache Thrift-powered app. Then, progressing to more complex examples, it will provide you with tips for running large-scale applications in production environments.

You will learn how to assess when Apache Thrift is the best tool to be used. To start with, you will run a simple example application, learning the framework's structure along the way; you will quickly advance to more complex systems that will help you solve various real-life problems. Moreover, you will be able to add a communication layer to every application written in one of the popular programming languages, with support for various data types and error handling. Further, you will learn how pre-eminent companies use Apache Thrift in their popular applications.

This book is a great starting point if you want to use one of the best tools available to develop cross-language applications in service-oriented architectures.

Style and approach

A stepwise guide to learning Apache Thrift, with ready-to-run examples explained comprehensively. Advanced topics supply the inspiration for further work.

商品描述(中文翻譯)

使用 Apache Thrift 讓應用程式之間互相通訊!

本書簡介



  • 利用 Apache Thrift 使用不同程式語言(如 Java、C++、Python、PHP、Ruby 等)編寫的應用程式能夠互相通訊。

  • 透過逐步範例和修改業界巨頭的程式碼,學習如何讓您的服務適用於實際應用。

  • 成為解決 Apache Thrift 相關問題的高手。

本書適合誰閱讀


如果您在一種或多種 Apache Thrift 支援的語言(如 C++、Java、PHP、Python、Ruby 等)中有開發應用程式的經驗,並希望擴展在構建跨平台、可擴展應用程式方面的知識和技能,那麼這本書適合您。

您將學到什麼



  • 了解跨語言服務的需求及 Apache Thrift 的基本概念。

  • 學習 Apache Thrift 的運作方式及其解決的問題。

  • 判斷何時應使用 Apache Thrift 而非其他方法(如 REST API),以及何時不應使用。

  • 創建並運行一個使用 Apache Thrift 的範例應用程式。

  • 在使用 Apache Thrift 支援的不同語言(如 PHP、Python、Ruby、Java 和 C++)編寫的應用程式中使用 Apache Thrift。

  • 處理例外情況和錯誤。

  • 修改不同語言的程式碼。

  • 在大型應用程式的生產環境中使用 Apache Thrift。

詳細內容


隨著現代軟體系統日益複雜,為不同語言的應用程式提供可擴展的通訊架構變得繁瑣。Apache Thrift 框架是解決此問題的方案!它幫助構建高效且易於維護的服務,並通過支援多種流行的程式語言(包括 C++、Java、Python、PHP、Ruby、Erlang、Perl、Haskell、C#、Cocoa、JavaScript、Node.js、Smalltalk、OCaml 和 Delphi)提供與您的應用程式類型相匹配的眾多選項。


本書將幫助您通過第一個基於 Apache Thrift 的應用程式來掌握服務導向系統的基本概念。然後,隨著進入更複雜的範例,它將為您提供在生產環境中運行大型應用程式的技巧。


您將學會如何評估何時使用 Apache Thrift 是最佳工具。首先,您將運行一個簡單的範例應用程式,並在此過程中學習框架的結構;您將迅速進入更複雜的系統,幫助您解決各種現實問題。此外,您將能夠為每個使用流行程式語言編寫的應用程式添加通訊層,並支援各種數據類型和錯誤處理。此外,您還將學習知名公司如何在其流行應用程式中使用 Apache Thrift。


如果您想使用可用的最佳工具之一來開發服務導向架構中的跨語言應用程式,這本書是一個很好的起點。

風格與方法


逐步指南學習 Apache Thrift,提供可立即運行的範例,並進行全面解釋。進階主題提供進一步工作的靈感。