Learning Apache Thrift

Make applications cross-communicate using Apache Thrift!

Learning Apache Thrift

Learning
Krzysztof Rakowski

1 customer reviews
Make applications cross-communicate using Apache Thrift!
$27.99
$34.99
RRP $27.99
RRP $34.99
eBook
Print + eBook

Instantly access this course right now and get the skills you need in 2017

With unlimited access to a constantly growing library of over 4,000 eBooks and Videos, a subscription to Mapt gives you everything you need to learn new skills. Cancel anytime.

Preview in Mapt

Book Details

ISBN 139781785882746
Paperback204 pages

Book Description

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.

Table of Contents

Chapter 1: Introducing Apache Thrift
Distributed systems and their services
An introduction to Apache Thrift
Apache Thrift and others
When to choose Apache Thrift
Summary
Chapter 2: Installing and Running Apache Thrift
Installing Apache Thrift on Linux
Installing Apache Thrift on Mac OS X
Installing Apache Thrift on Windows
Testing the installation
Summary
Chapter 3: Running Your First Apache Thrift Service and Client
Creating necessary project files
Running the code
Analyzing the code
Summary
Chapter 4: Understanding How Apache Thrift Works
Prepare your tools
Apache Thrift's architecture
Apache Thrift's type system
IDL syntax
Summary
Chapter 5: Generating and Running Code in Different Languages
PHP
Java
Python
JavaScript
Ruby
C++
Summary
Chapter 6: Handling Errors in Apache Thrift
What are the type of errors that can occur?
What are exceptions and how to handle them?
Handling exceptions in Apache Thrift
Summary
Chapter 7: An Example Client-Server Application
Our example application
Planning out your work
Getting a general idea of the example application
A technical overview of the application
Preparing the Apache Thrift document
Implementing the server
Implementing and running clients
Further testing and other exercises
Summary
Chapter 8: Advanced Usage of Apache Thrift
Apache Thrift in production
Real-world examples of the usage of Apache Thrift
Summary

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.

Authors

Table of Contents

Chapter 1: Introducing Apache Thrift
Distributed systems and their services
An introduction to Apache Thrift
Apache Thrift and others
When to choose Apache Thrift
Summary
Chapter 2: Installing and Running Apache Thrift
Installing Apache Thrift on Linux
Installing Apache Thrift on Mac OS X
Installing Apache Thrift on Windows
Testing the installation
Summary
Chapter 3: Running Your First Apache Thrift Service and Client
Creating necessary project files
Running the code
Analyzing the code
Summary
Chapter 4: Understanding How Apache Thrift Works
Prepare your tools
Apache Thrift's architecture
Apache Thrift's type system
IDL syntax
Summary
Chapter 5: Generating and Running Code in Different Languages
PHP
Java
Python
JavaScript
Ruby
C++
Summary
Chapter 6: Handling Errors in Apache Thrift
What are the type of errors that can occur?
What are exceptions and how to handle them?
Handling exceptions in Apache Thrift
Summary
Chapter 7: An Example Client-Server Application
Our example application
Planning out your work
Getting a general idea of the example application
A technical overview of the application
Preparing the Apache Thrift document
Implementing the server
Implementing and running clients
Further testing and other exercises
Summary
Chapter 8: Advanced Usage of Apache Thrift
Apache Thrift in production
Real-world examples of the usage of Apache Thrift
Summary

Book Details

ISBN 139781785882746
Paperback204 pages
Read More
From 1 reviews

Read More Reviews