I’m using rails-api to build a JSON API for a mobile social networking app. Basically, a user will receive a notification whenever other users like or make comments on their post. So a notification will contain information like “who”, “action”, “the post”, and “description”. I see some debates on using relational DB or Redis to implement this functionality. I ever use Redis for background jobs, but I never it for implementing like persistence data like relational DB.
- Could anyone share your experiences on implementing this functionality? How do you design in your apps?
- What’s pros and cons using either relational DB or Redis?
- Is there any gems that do similar jobs?