Will change the endpoint configuration as suggested by @Pubudu Gunatilaka <pubu...@wso2.com> . It seems to be more convenient in terms of user experience.
Thank you, Viraj On Thu, Mar 21, 2019 at 3:49 PM Viraj Gamage <vir...@wso2.com> wrote: > Hi Pubudu, > > IMO, It doesn't seem possible to bring all three fields into one generic > type. If I elaborate further, > > > - For loadbalance type > - there should be an array of endpoints > - For failover type > - single url and a set of failover endpoints > - For default type > - single url > > we can bring default type and loadbalance into one generic type (ignoring > that there has to be single url in default type) but we cannot bring > failover type into that. We can say that the first element in the array is > the default url and others are failover endpoints. As I think it won't be > convenient but still possible since we do not allow user to edit the file. > WDYT? > > Thank you, > Viraj > > On Thu, Mar 21, 2019 at 3:30 PM Viraj Gamage <vir...@wso2.com> wrote: > >> Hi Pubudu, >> >> This is a sample endpoint configuration generated by publisher API for >> failover type. In that case, There is a single URL, and for failover >> endpoints, there is an array. >> Shouldn't that be the case, when it comes to failover type? >> >> --- >> production_endpoints: >> url: https://localhost:9443/am/sample/pizzashack/v1/api/ >> endpoint_type: http >> template_not_supported: false >> sandbox_endpoints: >> url: https://localhost:9443/am/sample/pizzashack/v1/api/ >> endpoint_type: http >> template_not_supported: false >> endpoint_type: failover >> production_failovers: >> - url: http://api.worldbank.org >> endpoint_type: http >> template_not_supported: false >> >> Thank you, >> Viraj >> >> >> On Thu, Mar 21, 2019 at 3:17 PM Pubudu Gunatilaka <pubu...@wso2.com> >> wrote: >> >>> Hi Viraj, >>> >>> For endpoints, we should have a generic endpoint configuration as >>> follows. >>> >>> For Load balancing: >>> type: "load_balance" >>> endpoints: >>> - "<EP_1>" >>> - "<EP_2>" >>> >>> For fail over: >>> type: "fail over" >>> endpoints: >>> - "<EP_1>" >>> - "<EP_2>" >>> >>> >>> For default case: >>> type: "default" >>> endpoints: >>> - "<EP_1>" >>> >>> Thank you! >>> -- >>> *Pubudu Gunatilaka* >>> Committer and PMC Member - Apache Stratos >>> Associate Technical Lead >>> WSO2, Inc.: http://wso2.com >>> mobile : +94774078049 <%2B94772207163> >>> >>> >> >> -- >> *Viraj Salaka Gamage* | Software Engineer | WSO2 Inc. >> +94 710 618 178 >> GET INTEGRATION AGILE >> Integration Agility for Digitally Driven Business >> > > > -- > *Viraj Salaka Gamage* | Software Engineer | WSO2 Inc. > +94 710 618 178 > GET INTEGRATION AGILE > Integration Agility for Digitally Driven Business > -- *Viraj Salaka Gamage* | Software Engineer | WSO2 Inc. +94 710 618 178 GET INTEGRATION AGILE Integration Agility for Digitally Driven Business
_______________________________________________ Architecture mailing list Architecture@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture