weichao666 opened a new pull request #479: [JAV-558] pullTask,use rev to ensure 
data consistency and reduce service center work load
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/479
 
 
   ?ice center work load
   
   Follow this checklist to help us incorporate your contribution quickly and 
easily:
   
    - [ ] Make sure there is a [JIRA 
issue](https://issues.apache.org/jira/browse/SCB) filed for the change (usually 
before you start working on it).  Trivial changes like typos do not require a 
JIRA issue.  Your pull request should address just this issue, without pulling 
in other changes.
    - [ ] Each commit in the pull request should have a meaningful subject line 
and body.
    - [ ] Format the pull request title like `[SCB-XXX] Fixes bug in 
ApproximateQuantiles`, where you replace `SCB-XXX` with the appropriate JIRA 
issue.
    - [ ] Write a pull request description that is detailed enough to 
understand what the pull request does, how, and why.
    - [ ] Run `mvn clean install` to make sure basic checks pass. A more 
thorough check will be performed on your pull request automatically.
    - [ ] If this contribution is large, please file an Apache [Individual 
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
   
   ---
   Not modify the existed methods,add the new methods.
   When pull task,SC will return to the result with the version number 
X-Resource-Revision in the HEADER?SDK recodes this rev and sends it to SC at 
the next request.
   If the rev of SDK is greater than or equal to the rev of SC, it means that 
SDK no need to refresh, SC doesn't need to be processed, and returns 304 to 
indicate that SDK's cache is not refreshed.
   If the rev of SDK is less than SC's rev, SC returns the updated result set 
to SDK, SDK refreshes the cache and updates the Rev.
   The effect is that SDK requests different SC and does not have data 
inconsistencies, at the same time reducing the amount of data transmission in 
the channel

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to