[Dev] Do we have Load Balancing Data Publisher sample?
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 same. Can you provide some insight into this? Thanks, Chanaka -- -- Chanaka Fernando Senior Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Do we have Load Balancing Data Publisher sample?
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 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 internally do the necessary job to loadbalance, failover, etc. Hence you just need to get the configs form the user and pass the params as it's without any processing to the API. You can find the sample usage of the new DataPublisher implementation at [1]. [1] https://github.com/wso2/product-bam/blob/master/modules/samples/publishers/httpd-logs/src/main/java/org/wso2/carbon/das/httpdlogs/sample/HttpdLogAgent.java Thanks, Sinthuja. On Wed, Aug 26, 2015 at 4:37 AM, Chanaka Fernando chana...@wso2.com wrote: 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 same. Can you provide some insight into this? Thanks, Chanaka -- -- Chanaka Fernando Senior Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com -- *Sinthuja Rajendran* Associate Technical Lead WSO2, Inc.:http://wso2.com Blog: http://sinthu-rajan.blogspot.com/ Mobile: +94774273955 -- -- Chanaka Fernando Senior Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Do we have Load Balancing Data Publisher sample?
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 internally do the necessary job to loadbalance, failover, etc. Hence you just need to get the configs form the user and pass the params as it's without any processing to the API. You can find the sample usage of the new DataPublisher implementation at [1]. [1] https://github.com/wso2/product-bam/blob/master/modules/samples/publishers/httpd-logs/src/main/java/org/wso2/carbon/das/httpdlogs/sample/HttpdLogAgent.java Thanks, Sinthuja. On Wed, Aug 26, 2015 at 4:37 AM, Chanaka Fernando chana...@wso2.com wrote: 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 same. Can you provide some insight into this? Thanks, Chanaka -- -- Chanaka Fernando Senior Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com -- *Sinthuja Rajendran* Associate Technical Lead WSO2, Inc.:http://wso2.com Blog: http://sinthu-rajan.blogspot.com/ Mobile: +94774273955 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Do we have Load Balancing Data Publisher sample?
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 being published, the user can use select the mode, and then internally you can use publish/tryPublish based on the input given for that. Thanks, Sinthuja. On Wed, Aug 26, 2015 at 8:20 AM, Chanaka Fernando chana...@wso2.com wrote: 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 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 internally do the necessary job to loadbalance, failover, etc. Hence you just need to get the configs form the user and pass the params as it's without any processing to the API. You can find the sample usage of the new DataPublisher implementation at [1]. [1] https://github.com/wso2/product-bam/blob/master/modules/samples/publishers/httpd-logs/src/main/java/org/wso2/carbon/das/httpdlogs/sample/HttpdLogAgent.java Thanks, Sinthuja. On Wed, Aug 26, 2015 at 4:37 AM, Chanaka Fernando chana...@wso2.com wrote: 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 same. Can you provide some insight into this? Thanks, Chanaka -- -- Chanaka Fernando Senior Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com -- *Sinthuja Rajendran* Associate Technical Lead WSO2, Inc.:http://wso2.com Blog: http://sinthu-rajan.blogspot.com/ Mobile: +94774273955 -- -- Chanaka Fernando Senior Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com -- *Sinthuja Rajendran* Associate Technical Lead WSO2, Inc.:http://wso2.com Blog: http://sinthu-rajan.blogspot.com/ Mobile: +94774273955 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev