Learning Apache Thrift

Make applications cross-communicate using Apache Thrift!
Preview in Mapt

Learning Apache Thrift

Krzysztof Rakowski

1 customer reviews
Make applications cross-communicate using Apache Thrift!

Quick links: > What will you learn?> Table of content> Product reviews

Mapt Subscription
FREE
$29.99/m after trial
eBook
$19.60
RRP $27.99
Save 29%
Print + eBook
$34.99
RRP $34.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$19.60
$34.99
$29.99 p/m after trial
RRP $27.99
RRP $34.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Learning Apache Thrift Book Cover
Learning Apache Thrift
$ 27.99
$ 19.60
Getting Started with TensorFlow Book Cover
Getting Started with TensorFlow
$ 27.99
$ 19.60
Buy 2 for $35.00
Save $20.98
Add to Cart

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

Recommended for You

Getting Started with TensorFlow Book Cover
Getting Started with TensorFlow
$ 27.99
$ 19.60
Python: Master the Art of Design Patterns Book Cover
Python: Master the Art of Design Patterns
$ 67.99
$ 47.60
Smart Internet of Things Projects Book Cover
Smart Internet of Things Projects
$ 31.99
$ 22.40
Python 2.6 Graphics Cookbook Book Cover
Python 2.6 Graphics Cookbook
$ 26.99
$ 18.90
Building Machine Learning Projects with TensorFlow Book Cover
Building Machine Learning Projects with TensorFlow
$ 43.99
$ 30.80
Building Applications with Scala Book Cover
Building Applications with Scala
$ 39.99
$ 28.00