[Dev] Do we have Load Balancing Data Publisher sample?

2015-08-26 Thread Chanaka Fernando
Hi Sinthuja, We have decided to use the datapublisher agent code in the carbon-analytics-common repo for the ESB data publishing use cases. In the previous implementation, we had a separate Data Publisher for Load Balancing scenario. But with the new API, I couldn't find a sample to achieve the

Re: [Dev] Do we have Load Balancing Data Publisher sample?

2015-08-26 Thread Chanaka Fernando
Hi Sinthuja, Thanks for the quick response. We'll have a look into the sample. Regards, Chanaka On Wed, Aug 26, 2015 at 8:48 PM, Sinthuja Ragendran sinth...@wso2.com wrote: Hi Chanaka, Now there are no different APIs exist for loadbalancing endpoint and single endpoint, and same

Re: [Dev] Do we have Load Balancing Data Publisher sample?

2015-08-26 Thread Sinthuja Ragendran
Hi Chanaka, Now there are no different APIs exist for loadbalancing endpoint and single endpoint, and same DataPublisher API will be used to both. For example, if you need loadbalancing endpoints, then you can pass the URL as comma separated as before to the DataPublisher API, then it will

Re: [Dev] Do we have Load Balancing Data Publisher sample?

2015-08-26 Thread Sinthuja Ragendran
Hi Chanaka, Further more, you may need to let the user to select which mode of the publishing he/she requires based on his/her usecase. There are blocking - publish() and non-blocking - tryPublish() methods provided in the DataPublisher to publish an event. Depending on the importance of the data