FluidFramework icon indicating copy to clipboard operation
FluidFramework copied to clipboard

Separating protocol from service packages

Open tanviraumi opened this issue 5 years ago • 5 comments

The goal is to extract “protocol-base” and “protocol-definition” packages from the service monorepo. We will create a top level “protocol” folder and move these two packages there (just like the common folder).

Once done, service and client can take a dependency on the published packages. The pros are, we will only bump those packages when needed and breaking changes will be easier to track. The cons are, it makes development story harder since we need to update and publish those packages first before we can consume them. However, this additional complexity also forces us to be more deliberate when making breaking changes.

Roughly, the steps of this migration are the following:

  1. Create a top level 'protocol' folder and move these two packages there.
  2. Set up a build pipeline and publish those two packages. Pre-release should be fine.
  3. Update all code with the new pre-release dependency.
  4. Update fluid-build to account for the repo structure.
  5. Delete existing packages from server mono repo.

tanviraumi avatar May 07 '21 18:05 tanviraumi

FYI @GaryWilber

tanviraumi avatar May 07 '21 18:05 tanviraumi

I think you should also include updates to fluid-build to account for the new repo layout.

tylerbutler avatar May 10 '21 18:05 tylerbutler

I think you should also include updates to fluid-build to account for the new repo layout.

Great point! Updated the description

tanviraumi avatar May 10 '21 18:05 tanviraumi

Should we also move @fluidframework/gitresources? It's also included in the runtime.

SamBroner avatar May 18 '21 18:05 SamBroner

This PR has been automatically marked as stale because it has had no activity for 60 days. It will be closed if no further activity occurs within 8 days of this comment. Thank you for your contributions to Fluid Framework!