Wizard workflow with autosave/save on exit – UX/API/Strategy evaluation

I have a wizard where the whole page fills up with a step, user selects the step and clicks next when the step is complete. User can go back and forth between steps and there are provisions to restore previous states. Implementation is in React. I have 2 options/workflows that I can think of:

I. No autosave between steps unless user asks to save a draft stage

  1. When user enters wizard/create, query a Staging Ddb for any previously started wizard state for the current user_id

    a. If nothing is received, issue a POST request to the Staging DDB which creates a record for the user_id/request_id combination with no value. Go to step 2.

    b. If a record is found in Staging Ddb, ask the user if they want to restore previous wizard state:

    i.  If yes, restore wizard and move the user to the restored state (say, step 3 of the wizard). Go to step 2.
    
    ii. If user says no, delete the value of the `user_id`/`request_id` combination from the table and start the wizard from the beginning. Go to step 2.
    
  2. With each subsequent Save and Exit, a PATCH request is sent to the Staging table with the user_id/request_id

  3. When user reaches the end of the wizard with all validations passed, then issue a POST request with the value in Staging table to the Main table. Delete the entry in the staging table for this particular host_id/request_id combination once the POST request is successful.

II. Autosave between steps when the user clicks next to go to the next question

The main table will always be the source of Truth with a complete/incomplete status for the wizardStatus. The complete flag is turned on when the wizard state is complete:

  1. When user enters wizard/create, query the Main Ddb for any previously started wizard state for the current user_id with the status incomplete for wizardState

    a. If nothing is received, issue a POST request to the Main DDB which creates a record for the user_id/request_id combination and no value. Go to step 2.

    b. If a record is found in Main Ddb, ask the user if they want to restore previous wizard state.

    i.  If yes, restore wizard and move the user to the restored state (say, step 3 of the wizard). Go to step 2.
    
    ii. If user says no, delete the value of the `user_id`/`request_id` combination from the `Main` table and start the wizard from the beginning. Go to step 2.
    
  2. With each subsequent Next after form validation for that page is done, a PATCH request is sent to the Main table with the user_id/request_id

  3. When user reaches the end of the wizard with all validations passed, then the status of wizardState is set to complete with the final PATCH request for that step.

On evaluating the 2 approaches, it seems approach 2 will issue more requests with each subsequent Next, but lead to better user experience with crashes of the web-browser, OS, etc. I’m leaning towards starting with approach I to begin with, and as the website sees more traffic/earns revenue, I switch to approach II for better user experience, where I can also afford more requests/resources.

Is there an alternative approach? Anything I can improve?

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật