A rack middleware for thrift services