Implement flow replication in the transport layer of Apache Thrift