update zh-cn content and PR list

This commit is contained in:
Gang Yin 2021-12-14 11:02:03 +08:00
parent eefaef2c55
commit 5249ccf49e
3 changed files with 5 additions and 1 deletions

View File

@ -149,6 +149,8 @@
| ISSUE & Pull Requests | USER | Title |
| ----------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ |
| [153](https://github.com/Vonng/ddia/pull/153) | [@DavidZhiXing](https://github.com/DavidZhiXing) | ch9: 修正缩略图的错别字 |
| [152](https://github.com/Vonng/ddia/pull/152) | [@ZvanYang](https://github.com/ZvanYang) | ch7: 除重->去重 |
| [151](https://github.com/Vonng/ddia/pull/151) | [@ZvanYang](https://github.com/ZvanYang) | ch5: 修订sibling相关的翻译 |
| [147](https://github.com/Vonng/ddia/pull/147) | [@ZvanYang](https://github.com/ZvanYang) | ch5: 更正一处不准确的翻译 |
| [145](https://github.com/Vonng/ddia/pull/145) | [@Hookey](https://github.com/Hookey) | 识别了当前简繁转译过程中处理不当的地方,暂通过转换脚本规避 |

View File

@ -149,6 +149,8 @@
| ISSUE & Pull Requests | USER | Title |
| ----------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ |
| [153](https://github.com/Vonng/ddia/pull/153) | [@DavidZhiXing](https://github.com/DavidZhiXing) | ch9: 修正縮圖的錯別字 |
| [152](https://github.com/Vonng/ddia/pull/152) | [@ZvanYang](https://github.com/ZvanYang) | ch7: 除重->去重 |
| [151](https://github.com/Vonng/ddia/pull/151) | [@ZvanYang](https://github.com/ZvanYang) | ch5: 修訂sibling相關的翻譯 |
| [147](https://github.com/Vonng/ddia/pull/147) | [@ZvanYang](https://github.com/ZvanYang) | ch5: 更正一處不準確的翻譯 |
| [145](https://github.com/Vonng/ddia/pull/145) | [@Hookey](https://github.com/Hookey) | 識別了當前簡繁轉譯過程中處理不當的地方,暫透過轉換指令碼規避 |

View File

@ -183,7 +183,7 @@
![](../img/fig9-5.png)
**圖9-5 Web伺服器和影象縮放器透過檔案儲存和訊息佇列進行通訊開啟競爭條件的可能性。**
如果檔案儲存服務是線性一致的,那麼這個系統應該可以正常工作。如果它不是線性一致的,則存在競爭條件的風險:訊息佇列([圖9-5](../img/fig9-5.png)中的步驟3和4可能比儲存服務內部的複製replication更快。在這種情況下當縮放器讀取影象步驟5可能會看到影象的舊版本或者什麼都沒有。如果它處理的是舊版本的影象則檔案儲存中的全尺寸圖和縮圖就產生了永久性的不一致。
如果檔案儲存服務是線性一致的,那麼這個系統應該可以正常工作。如果它不是線性一致的,則存在競爭條件的風險:訊息佇列([圖9-5](../img/fig9-5.png)中的步驟3和4可能比儲存服務內部的複製replication更快。在這種情況下當縮放器讀取影象步驟5可能會看到影象的舊版本或者什麼都沒有。如果它處理的是舊版本的影象則檔案儲存中的全尺寸圖和縮圖就產生了永久性的不一致。
出現這個問題是因為Web伺服器和縮放器之間存在兩個不同的通道檔案儲存與訊息佇列。沒有線性一致性的新鮮性保證這兩個通道之間的競爭條件是可能的。這種情況類似於[圖9-1](../img/fig9-1.png)資料庫複製與Alice的嘴到Bob耳朵之間的真人音訊通道之間也存在競爭條件。