Stack implemented with mongo. You need to store a stack?, Do not worry about memory, save it in mongo.