Hi guys, I want to implement chat in my app, with database persistent messages but that don't slow down the communication by waiting a database write on every single message before emitting it to the other user/s.I'm trying to figure it out on my own as I don't know of any guide of this type. I was thinking of making some sort of redis write on every message before doing it on the database only as one of the users disconnectsSo, I just needed some sort of help on how to implement it, or some guide who can help me out especially with the redis stuff (I'm still not that much familiar with redis, so I'm probably missing some useful features for this scenario)PS: my plan is to do that in NestJS (a good way to learn it), but I've always used plain Express, any kind of code help is appreciated :D
Submitted November 05, 2019 at 03:12PM by Mautriz
No comments:
Post a Comment