+Adding architecture On Thu, Jun 29, 2017 at 5:05 PM, Nuwan Dias <nuw...@wso2.com> wrote:
> Let's discuss publicly please, this thread is internal only. > > On Thu, Jun 29, 2017 at 5:01 PM, Dinusha Dissanayake <dinus...@wso2.com> > wrote: > >> Hi All, >> >> In earlier versions of APIM, throttle policy deployment for CEP was >> handled using push mechanism meaning APIM itself had to deploy throttle >> policies in CEP. If there are multiple CEP nodes, then the Siddhi >> apps/execution plans syncing would be an issue here. >> >> We were thinking of pull based mechanism from CEP side to overcome this. >> To do that, from APIM side we need to add an API to the core which allows >> CEP to get all Siddhi apps for existing throttle policies. Then every CEP >> node will call APIM (once or periodically) and then it will check the DB >> and generate a zip containing all the Siddhi Apps for existing throttle >> policies. >> >> >> This API will only need GET resource. The resource path for this API >> would be *"export/policies/throttle"*. As mentioned above, this will >> return a zip. Mutual SSL would be used to secure the API since if we use >> OAuth2, then the token may expire in a while. >> >> Exported zip can be manually deployed in the CEP or deployment can be >> done using e a curl command. If this needs to be happened periodically, >> then a cron job can be written. >> >> Please provide suggestions for improvements. >> >> Thanks & Regards. >> -- >> Dinusha Dissanayake >> Software Engineer >> WSO2 Inc >> Mobile: +94712939439 <+94%2071%20293%209439> >> <https://wso2.com/signature> >> > > > > -- > Nuwan Dias > > Software Architect - WSO2, Inc. http://wso2.com > email : nuw...@wso2.com > Phone : +94 777 775 729 <+94%2077%20777%205729> > -- Dinusha Dissanayake Software Engineer WSO2 Inc Mobile: +94712939439 <+94%2071%20293%209439> <https://wso2.com/signature>
_______________________________________________ Architecture mailing list Architecture@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture