Example use Thrift to create server and client