Thanks for your quick reply.
Let me clarify things a bit further. We have our own ERP system which is in production. Let me explain the use case in detail: We have e-commerce store front and our current java application have ShoppingCart class. When end user add items into the cart, shopping cart object is created and items are added in this object. Now in very high traffic this may not scale. So instead of using in-memory shopping cart object, we wanted to use No-sql (Couchbase) database. Now when user will add items into cart, we will create records in No-sql database and when order is finally placed, we will update status of document in No-sql database. Then we are planning to push these orders in our ERP system asynchronously, where fulfillment and other things will be managed.
So to push orders asynchronously we are thinking if we can call web-service (of our java application )or do a rest call to our java application which will take data in json format and process it and then save it in RDBMS of our ERP.
What should be best way to attack this problem ?
Do we need to implement some kind of listener plugin who will be continuously scooping to Couchbase Server for any changes in it using DCP.