JSDC
      • 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
    1
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # New Generation Web - 我們從前端到微前端的故事 - John Liu {%hackmd @JSDC2024/INuUpOqWS42gD1_pz5S4Bg %} Slido:https://app.sli.do/event/bW7brKJsLaNLGoxuE3cHrg > 開始做筆記 ## About Me - Engineer Manager @ Netskope - Lecturer - LeetCode, Hisko, Appworks ... ## - Angular - PHP CodeIginter ![classic web](https://hackmd.io/_uploads/HJt3Zs7BJg.png) ## 元件緊密耦合 Component couple tightly ![image](https://hackmd.io/_uploads/r1yWfi7Sye.png) ## 部署緊密耦合 - Too many dependencies ## 技術人尋覓不易 ![image](https://hackmd.io/_uploads/Hk4DfiQBkl.png) - Fullstack is rare - ### 目標: 1. 共存和轉移並行 2. API-driven Design (API Gateway) - Customer third-party to Us 3. 頁面和狀態共享 - Each microservice should share same state 4. 模組化與獨立的 CICD 流程 - 小修改還是可能踩雷 ## 混合前端架構 ![image](https://hackmd.io/_uploads/r1UMms7Bke.png) - Let A, B teams to put their modules into the legacy app - Kubernetes, can orchasture the microservices ### Angular native federation ![image](https://hackmd.io/_uploads/H14YXimHJg.png) ### Webpack + Module Federation ![image](https://hackmd.io/_uploads/BkjpqQTrJg.png) ### Core Library (核心library) - Maintained by independent Team 獨立團隊去維護 - Storybook - Each Team have their own versions 不同團隊使用不同版本(升級方便) ### Valtio - shared state 頁面狀態共享 ![image](https://hackmd.io/_uploads/ByNNNimr1x.png) - https://github.com/pmndrs/valtio ## 垂直與水平合作 (共存與轉移並行) ![image](https://hackmd.io/_uploads/BJFUEj7H1e.png) (這裡的箭頭不是要表達上對下的關係,可以視為上下游) ## 新增測試層 (模組化與獨立的 CICD 流程) - Cypress 能做到 End to End test ## 部署管理 (模組化與獨立的 CICD 流程) ![image](https://hackmd.io/_uploads/rkeerjXr1e.png) Spinnaker ## We are hiring ![image](https://hackmd.io/_uploads/HyMwBj7BJx.png) ## 粉專 https://www.facebook.com/johnliu.software.thinking/ ## Slido 提問 1. 混和前端挖空是指嵌入iframe嗎?還是什麼方式。如果不是iframe會不會遇到樣式衝突或是變數衝突的時候 > 獨立 JS 檔案 2. module federation 是用來作微前端的架構工具嗎? 為什麼會選用 module federation ? > module federation 是微前端的架構工具,提供了較成熟、穩定的 API 3. valtio 可以理解為屬於微前端架構在用的狀態管理工具嗎? > 是,在公司專案情境中很適合使用 valtio 4. 如果只有前端開發經驗,沒有後端經驗的話, 要如何讓公司仍然有興趣面試看看 > Resume > 就丟履歷吧!主動在現在公司發掘、爭取不同的專案開發機會 5. 對新手有推薦如何解耦或設計模式的資源嗎? > 6. 請問微前端後,是不是需要額外的人力去對配置檔案進行維護? > Yes, extensive effort needed > 所有人都會去執行和注意這件事 7. 微前端不會有效能問題嗎,各自都用不同的 bundle > router 當下僅動態顯示一個元件,盡量避免同時載入多個微前端的模組。 > API calling is duplicated > 8.module federation 可以做到 angular + react + vue 混合嗎 > 可以 9. 對新手有推薦如何解耦或設計模式的資源嗎? > Design Pattern Guru 10. 請問剛剛說的A 團隊和 B 團隊 開發不同模組 , 如果兩個團隊要使用一個共用的模組 剛剛說會用不同的版本來控制。 如果兩邊同時需要修改共用模組 那要怎麼處理 > > 有時候要開發特定版本,需要依賴於別團隊的版本 > 聊天區 >

    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