owned this note changed 4 years ago
Linked with GitHub

Testing in Production, Deploy on Fridays / ANT(曾義峰)

歡迎來到 Modern Web 2020 共筆

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

共筆入口:https://hackmd.io/@ModernWeb/2020
手機版請點選上方 按鈕展開議程列表。

簡報下載

共筆從這開始

tags: MW20 維運與測試 NoDeploy

未分類

  • No deploy Friday -> No merge Friday -> Monday大量commit 反而會增加衝突的可能
  • 團隊對部署有沒有信心才是重要的
  • 持續整合、持續交付、持續部署
  • staging要與production環境相同是十分困難的事情,不能將staigng視為Produduction
  • 如果不在正式機環境測試,你的測試就不是真實的
  • 有testing staging production 就是要控制我們的風險
  • Deployment不一定要一次就適用於所有的用戶
  • 功能放在正式環境中,但功能不一定要讓所有用戶看到,控制功能的開關

功能標誌

使用 User Group 區分

  • 可將內部用戶group為Beta, 外部用戶group為normal, 讓內部能在production環境測試完再開放給外部用戶使用

也可以藉由IP、URI、時間點來區分

漸進式部屬

臉書production三階段
C1: 內部可以看到
C2: 2%的外部使用者可以看到
C3: 100%可以看到

Microsoft Azure 也有 L0、L1、L2

資料庫同步策略

把staging testing拿掉了,這樣成本可以降低很多

從Pull Requests轉為Pair/Mob Programming

  • Pair Programming
  • Mob Programming

ref:

Select a repo