Scanning gateway between Scan server and Mongo-RocksDB