openedx / wg-devops

Issue repository for the DevOps Working Group
1 stars 2 forks source link

Serving MFEs through Cloudflare #14

Open regisb opened 1 year ago

regisb commented 1 year ago

Doing repetitive changes to an MFE and then view those changes on a production deployment might take long time, I envision typically it might be something like this:

(A) Without Cloudflare or alternative

  1. A developer make changes to an MFE locally
  2. They push their changes to their fork to github/gitllab..etc
  3. They rebuild the tutor-mfe image with the latest changes pushed from step 2
  4. They check the changes on their instance 5.Repeat until goals are met

(B) With Cloudflare or alternative

However if using cloudflare or an alternative service the steps might be reduce to be

  1. A Developer make changes to an MFE locally
  2. A developer push the changes to github/gitlab
  3. Cloudflare build the changes (i.e. developer open PR from step 2) an cloudflare build it a. This shouldn't has to be the production URL, i.e. we can review the changes without/before applying them to production
  4. Someone review the changes if it's okay, then merge it if not repeat

Conclusion:

The core difference between A and B, is that we didn't need to:

Challenges;

regisb commented 1 year ago

Cc @ghassanmas who first talked about this project at the Open edX 2023 conference during the DevOps meetup.