use thrift to serialize and http to transport