Designing Resilient REST APIs with Node.js and MongoDB