You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/01/09 07:49:00 UTC

[jira] [Commented] (SCB-209) pullTask,use rev to ensure data consistency and reduce service center work load

    [ https://issues.apache.org/jira/browse/SCB-209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16317935#comment-16317935 ] 

ASF GitHub Bot commented on SCB-209:
------------------------------------

coveralls commented on issue #479: [SCB-209] pullTask,use rev to ensure data consistency and reduce service center work load
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/479#issuecomment-356205687
 
 
   
   [![Coverage Status](https://coveralls.io/builds/14961785/badge)](https://coveralls.io/builds/14961785)
   
   Coverage decreased (-0.02%) to 87.453% when pulling **6b6e0469277239cc182afe984466d85aa31d8191 on weichao666:JAV558CSE398newmethod** into **e812ad79813250ea5fd241a388ba419d2603c789 on apache:master**.
   

----------------------------------------------------------------
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:
users@infra.apache.org


> pullTask,use rev to ensure data consistency and reduce service center work load
> -------------------------------------------------------------------------------
>
>                 Key: SCB-209
>                 URL: https://issues.apache.org/jira/browse/SCB-209
>             Project: Apache ServiceComb
>          Issue Type: Improvement
>          Components: Java-Chassis
>            Reporter: WeiChao
>            Assignee: WeiChao
>             Fix For: java-chassis-1.0.0-m2
>
>
> 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 message was sent by Atlassian JIRA
(v6.4.14#64029)