I've been looking into creating a notification system in PHP. Much like the one Facebook has got.
The applications is primarily running MySQL for data storage, however MySQL is way to slow for handling something such as notifications.
Here I was thinking Redis, since it's blazingly fast and very simple, and it allow entries to be deleted by themselves after a little while (which is exactly what I want). However I do have so concerns. I read the article Redis Persistence.
As I don't want to lose data and still get a fast experience from Redis, I was wondering what method to use? RDB or AOF or maybe even both? The speed is very important.
So what I'm asking
- Is Redis a good choice for handling notifications?
- Can I rely solely on using Redis for notifications?
- Are there any better alternatives, apart from starting a new websever with node.js...?
- What method is best for this, RDB or AOF, or both?