DEV Community

Discussion on: Making A Really Simple Redis API with Node.js

Collapse
 
bias profile image
Tobias Nickel • Edited

thanks for this article.
I think today people rather use promises and not callbacks. When using the redis module you need promisify, I think a better option is the module ioredis.

When using the promises, using async/await syntax will make your code very clean.

The to use async await without the need for try/catch blocks in every handler, I recommend fastify over express.js today. most of the modules will be compatible when switching to fastify.