owned this note changed 4 years ago
Linked with GitHub

議程1 - 每日13億條日誌系統的奮鬥史 - 盧利雄

tags: GopherCon TW 2020 Agenda

歡迎來到 https://hackmd.io/@Golang-Taipei/GopherCon2020 共筆

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 →

點擊本頁上方的 開始用 Markdown 一起寫筆記!
手機版請點選上方 按鈕展開議程列表。

[投影片連結]### [投影片連結]

請從這裡開始

zap,Uber開發的錯誤處理套件
使用Kibana

追蹤碼

  • MD5太長,改用TwitterID

    TraceCode using Twitter ID = base62(unix time + pid + seq)

    選用base62原因是還可以維持可讀性

錯誤處理

  • case: 扣除這位用戶10塊錢,解析token他是userA,扣除userA 10塊錢的失敗
  • 原本的錯誤處理:return error code -> 給客戶端錯誤、追蹤碼
  • 改善的錯誤處理:輸出原始request、error msg、trace code -> 封裝該錯誤、客戶端可見的錯誤訊息

i18n

Select a repo