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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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 moduleioredis
.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 recommendfastify
over express.js today. most of the modules will be compatible when switching to fastify.