DevOpsDay
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # 實踐 BizDevOps 在遺留系統中的挑戰與策略 - 王家駿 James Wang {%hackmd @DevOpsDay/BJXaW1_k6 %} 簡報連結:[實踐 BizDevOps 在遺留系統中的挑戰與策略](https://speakerdeck.com/jame2408/shi-jian-bizdevops-zai-yi-liu-xi-tong-zhong-de-tiao-zhan-yu-ce-lue) > 從這裡開始寫 因地制宜 內容為分享維護 **Legacy System**(遺留系統,或稱為祖產) 的經驗談 --- ## 維護既有系統 曾經面臨過怎麼問題與挑戰? 既有系統往往對接人只有一人, 但通常需求來的不會那麼急, 要求得更多是穩定. 有時間上的buffer, 應該放寬心來面對(不然會逼死自己) 講者分享的一堆挑戰 ![](https://hackmd.io/_uploads/SkgCOgxe6.jpg) 有一堆註解並不是壞事! 缺乏持續的更新,導致要改架構或框架時,版本跳躍過多,改動太大,花費力氣太多 upgrade frequnecy是好事, 不然等好幾年後才更新會很痛苦 --- ## 歸納問題:三大挑戰 ![](https://hackmd.io/_uploads/BJBDtelgT.jpg) > 上面的黃色方塊是主因, > 下面灰色方塊是後面的徵狀 - 無法看見全貌 ![](https://hackmd.io/_uploads/Bk0aYellT.jpg) - 嘗試先看見全貌, 別陷入code(細節)的泥沼中 - 缺乏持續更新維護 ![](https://hackmd.io/_uploads/Hy_79xllT.jpg) - 常久沒更新的系統, 通常伴隨著會有安全性的疑慮 - 或者無法使用新的語法或者沒被官方調教效能的程式寫法 - 組織文化與資源和制式的限制 ![](https://hackmd.io/_uploads/SyB_qegep.jpg) - 不會談論太多 - 組織文化有可能是阻礙系統改善的原因之一 --- ## Case Study ![](https://hackmd.io/_uploads/Sygq5elea.jpg) 15%, 是預估能提供給15%的人提供醫療系統的改善 第一個月只有27000人用到這福利,其他人不是登不進去就是系統當掉 總統民調因此下降6% 遺留系統有效能問題,造成後續無法支撐使用量 ![](https://hackmd.io/_uploads/SkNeixlxa.jpg) 因為無法看見全貌或者沒持續更新系統底層版本 因而無法提高系統性能或吞吐量 --- ## 策略規劃 了解問題後,思考如何透過規劃去改善問題 ![](https://hackmd.io/_uploads/SkrLiglgp.jpg) > 講者透過旅遊規劃來帶入系統改善規劃時會運用到何種策略 ![](https://hackmd.io/_uploads/Bknoiggg6.jpg) - 決策五件套: 1. 分析當前現況 2. 遇見願景 3. 淺在矛盾 4. 策略行動 5. 執行行動方案 ## 定義問題 ![](https://hackmd.io/_uploads/rkq6ixeeT.jpg) 透過提問來引導團隊的大家找出問題,也呼應上一頁的五件套,也能從中找到團隊或上層的期待,團隊對於每個人提出的問題,都要有共同一致的理解。 ## 分析當前現況 ### 業務流程 ![](https://hackmd.io/_uploads/Sy4Knelgp.jpg) 關注**業務流程**與**結構**:目的是看見全貌 補充: [淺談 Domain Driven Design](https://speakerdeck.com/jame2408/qian-tan-domain-driven-design) > 上面連結為講者以前的演講。 了解業務流程能找到公司內部的各部門員工 透過miro等視覺化工具, 列舉場景與事件出來並討論, 找出業務結構 ### 系統架構 ![](https://hackmd.io/_uploads/ryBfTglxT.jpg) 右圖為 現在系統, 釐清系統間的相依關係與方向 ### 指標 ![](https://hackmd.io/_uploads/SJxPaxgl6.jpg) 透過指標以及數據來了解系統現況 如果遺留系統無法inject其他監控套件,那能考慮在系統溝通節點之前 透過反向或gateway來蒐集http請求這維度的資訊,來了解請求流向與體驗指標 透過監控來發現哪些功能已經沒有在使用,維護沒有在使用的功能,是一種資源浪費 ![](https://hackmd.io/_uploads/rk5bRelxp.jpg) 把技術層面的術語轉換成老闆或客戶的能關注到的問題 將數據視覺化, 並且給出root cause和影響層面 因為上層不清楚影響層面, 但當透過數據呈現報告時, 就能讓上層理解嚴重程度 **!!!配合數據呈現給主管!!!** ![](https://hackmd.io/_uploads/HJ1qAelea.jpg) (這張圖好像重複了) ROI(Return On Inveestment,投資回報率) vs COI(Cost of Inaction,不採取行動的代價) 透過指標與視覺化分析, 讓上層知道技術債造成的COI ROI開發團隊難以挖掘, 但COI可以 ## 探索未來狀態 ### 將業務流程內聚分群 ![](https://hackmd.io/_uploads/By8kkbxl6.jpg) - 參考連結: [DDD 中的橋樑:透過有效建模與設計從戰略走向戰術](https://speakerdeck.com/jame2408/ddd-zhong-de-qiao-liang-tou-guo-you-xiao-jian-mo-yu-she-ji-cong-zhan-lue-zou-xiang-zhan-shu) ### 將每個服務邊界與業務流程串接 ![](https://hackmd.io/_uploads/B1fGkZexp.jpg) 透過eventstorming來識別出業務上的邊界 ### 讓業務架構與系統架構抱持一致 ![](https://hackmd.io/_uploads/HJsryZxgT.jpg) ![](https://hackmd.io/_uploads/Sy1IJ-lla.jpg) 在系統架構上, 通常也伴隨著非功能性需求的要求 ## 潛在矛盾:到底是什麼東西阻礙前進 ![](https://hackmd.io/_uploads/SyoqkbxxT.jpg) 講者列舉出一些阻礙, 能讓我們反思團隊或自身還缺少什麼 ## 結合現狀與未來的視覺化 ![](https://hackmd.io/_uploads/rkPJg-lg6.jpg) 從看板中找到價值, 並且將價值流程給勾勒出來 透過電子白板結合現狀與未來的視覺化方式 ## 策略規劃:重構 vs 重寫 ![](https://hackmd.io/_uploads/rJHMx-lga.jpg) 日落系統, 對公司來說價值不大, 但又存在的遺留系統 依據業務流程與價值來做評估做出不同的策略選型 ## 具體案例: 遷移計畫 - 絞殺者(Strangler)模式 ![](https://hackmd.io/_uploads/ry0_eZlgp.jpg) strangler能做到隔離的效果,來逐步替代新舊模組 ![](https://hackmd.io/_uploads/BJm2xZlep.jpg) 測試的重要性 ## 遷移方案步驟: 從現有API 歸納收攏 ![](https://hackmd.io/_uploads/SJXRlbex6.jpg) 針對服務邊界用API來溝通, 不要透過資料庫共享內容 透過API來交換內容 ![](https://hackmd.io/_uploads/H1Te-Zgep.jpg) 絞殺者的應用 解決大泥球,透過介接新的API 逐步轉移 ![](https://hackmd.io/_uploads/HkCr-WxgT.jpg) 能透過對資料的雙寫入道不同資料庫做影響隔離 思考資料庫需要分開嗎? ## 策略規劃: 透過開關切換新舊服務 ![](https://hackmd.io/_uploads/HysFWblxp.jpg) 透過feature flag來切換, 這樣還能提供交付效率 ## 策略行動: 新的部分導入開發規範 ![](https://hackmd.io/_uploads/SkEhb-elp.jpg) 將流程標準化 將標準規範化 實際可性案例 1. 採用業界標準 2. 實際案例 3. 實戰 ## 策略行動: Architecture Decision Record(ADR) ![](https://hackmd.io/_uploads/B1xkMWxep.jpg) 凡事留下紀錄, 讓未來的人能追朔 ![](https://hackmd.io/_uploads/Sk8Gf-lg6.jpg) ## 策略行動: 專案架構設計 ![](https://hackmd.io/_uploads/SJ9mfWgxp.jpg) ![](https://hackmd.io/_uploads/BkbEzWxl6.jpg) 讓業務架構與軟體專案架構也一致 [參考資料:淺談軟體架構](https://ithelp.ithome.com.tw/articles/10221746) ![](https://hackmd.io/_uploads/BJ2LMZee6.jpg) 從痛點開始 別找不痛不癢的專案來改, 會看不到價值 ![](https://hackmd.io/_uploads/H1j5GWlep.jpg) 透過ACL防腐層對新舊架構能隔離甚至轉換內容 當遷移完成後就能移除ACL ![](https://hackmd.io/_uploads/rknRz-lgp.jpg) ![](https://hackmd.io/_uploads/BkgZmbllp.jpg) 改良遺留系統不是一係可成 需要持續迭代 ![](https://hackmd.io/_uploads/r1fIQ-ll6.jpg) 技術債不是開發團隊的責任 PO/PM更應該注意, 因為這是會影響後續時程與現在營運的品質 ## 執行行動方案 1. 從新架構的共用套件開始轉換 2. 絞殺者模式 先了解全貌,讓改善團隊流程成為團隊持續迭代的流程 --- ### 聊天室: 不知道為什麼,感覺講者投影片的架構有點亂亂的 > 怎麼說? > 還好,遺留系統的現代化改造一書裡面有很詳細內容,我覺得一開始沒接觸過可能覺得訊息量過大 > 每一張投影片資訊量滿滿,但可能是標題的關係? 我覺得還好,小章節一開始有說,只是沒說現在頁面是哪個小章節 > 前面決策五件套那邊很清楚後面確實有點像你說的一樣 看來很緊張,一直「對」 > 對XD > 說不定是講話習慣 雖然講話卡詞 但內容很棒欸 在泥球旁邊開一個新的 --> 後來就會長成新的泥球 XD 我想到一個超貼切的詞彙:RO逆滲透 😂 團隊開發效率越來越差 --> 錢快燒完惹(講幹話XD

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully