Skip to content

j14159/erlang-and-thrift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

erlang-and-thrift

Dirt-simple example project showing Apache Thrift server and client in Erlang.

What

This is about as simple as an example project can get for using Thrift in both server- and client-side Erlang.

There are only three files that I wrote (everything else generated by Thrift) that you should care about:

To compile example.thrift, you'll need to download the necessary binary/source/whatever from the Thrift page. I'm on OSX and thus used homebrew to install it and this project assumes Thrift version 0.9.1.

This is nothing more than one service/function, one client function and a single unit test showing how it fits together.

Why

I spent an embarassingly long time this morning trying to brain how this all fits together and assumed that since I had trouble finding clear and concise examples on the interwebs, others might too. This is my minimal attempt to address that.

How

Clone the repo and make sure you have rebar installed:

rebar get-deps compile
rebar euint skip_deps=true

Corrections/improvements in the spirit of keeping things simple and complete most welcome.

About

Simple example of an Erlang Thrift service and client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages