smart streaming lossless log replication for distributed enviroments