Inventory Application push notifications

Hello,

I’m developing an inventory application using Play Framework and Java and I would like to know how do I implement push notifications from couchbase server side. I need a mechanism to know whether new orders are placed (this operation inserts a document in the database) and based on this, discount stock items accordingly.

How do I implement something like GET {db}/changes in order to “subscribe” to a write event in the database?

Any help is welcomed!

Best Regards!