Distributed queuing system using leveldb