-
Notifications
You must be signed in to change notification settings - Fork 18
Request to restrict OldRelease and NewRelease instances while fetching for http-c of application #758
Description
Problem Description :
When a new release of existing application is entering into the architecture, it will update the http-c , tcp-c of Old Release in config file with the preceding application information provided in request body of /v1/register-yourself.
Once the application is approved and receives “embed-yourself” , a callback will be triggered to the old application’s “/v1/bequeath-your-data-and-die” .
When /v1/bequeath-your-data-and-die is executed, as part of callback PromptForBequeathingDataCausesRequestForBroadcastingInfoAboutServerReplacement , the new application also shall receive /v1/update-client from RO.
As part of execution of /v1/update-client , it will find whether applications exists or not , if it exists it will update the instance with given details .
- During this stage, the request-body will contain current-application-name and current-release-number attributes as same as OldRelease of this application. Because of this, it is considering OldRelease client instance instead of correct instance.
- Thus, operation-clients gets transferred from OldRelease instance to http-c instance with future-application-name and future-release-number combination.
Proposal :
In OAS , for services like /v1/update-client, /v1/update-operation-client can we add description for application-name and release-number attributes like
" **update shall be made considering http-c instances excluding OldRelease and NewRelease http-c instances** " .
Note : In implementation, the OldRelease and NewRelease instances shall be considered from forwarding-constructs like PromptForEmbeddingCausesRequestForBequeathingData and PromptForBequeathingDataCausesTransferOfListOfApplications respectively. (The forwardings would vary based on application)