Real-Time Notification Implementation

Hi All,

I am going to create an application using yii framework that requires real-time notification. I am planning to use the usual way where I will check the database for any changes in a given time interval. Do you have a better way to implement this?

Thanks in advance!

Check out my nfy extension. It provides an interface for notifications with a simple database implementation. I think it matches what you described.

It’s build in a way that allow you to switch to websockets easily. Also, it’s modeled like log router, so it’s easy to add filtering of messages.

I’ve put up a demo where I use an external service to provide a websocket server. In the demo, notifications are only enabled for logged in users.