Architecture decisions · Architecture and technical rescue

Every client has its own version

Every client runs its own copy of the product, so a fix is carried by hand from copy to copy and some are missed.

01

How it is diagnosed

List the differences between the copies, not the versions, and count last year's fixes that had to be applied more than once.

02

The options, side by side

Switch on a situation and see what each option does with it.

A

Keep the versions and automate merging

A bug is found in one client's copyIt is fixed there and carried to each copy; some are missed.

A new client wants a different stepAnother copy.

A client must go back during the moveThere is nothing to go back to: it never moved.

When it fits
There are very few clients and they rarely change.
Trade-offs
The copies keep drifting; tooling only slows it.

B

Feature flags

A bug is found in one client's copyIt is fixed once, unless it sits in a flag combination nobody tested.

A new client wants a different stepAnother flag.

A client must go back during the moveThe flags are switched back.

When it fits
The differences are on/off choices.
Trade-offs
Flags multiply, and combinations nobody tested appear.

C

One codebase: configuration-driven workflows, with a few extension points

A bug is found in one client's copyIt is fixed once, and every client's configuration runs in the tests before the release.

A new client wants a different stepConfiguration if it is a variant of the same process; an extension point if it is not.

A client must go back during the moveThe client is routed to its frozen copy, kept until a month-end has passed.

When it fits
The differences are variants of the same process, with a rare real exception.
Trade-offs
A consolidation project first; then the configuration has to stay small and declarative.

03

What decides between the options

Whether the differences are values, steps or truly different behaviour, and how long the business can slow new work during a consolidation.

What decidesA Keep the versions and automate mergingB Feature flagsC One codebase: configuration-driven workflows, with a few extension points
A fix is applied once Fixes carried by hand are the ones that are missed. limited Once per copy. suits it Once. suits it Once.
What the tests cover A client is only protected if the way it uses the product is tested. needs work One test suite per copy. limited Grows with the flag combinations. suits it One suite, run for every configuration.
Who can change a client If only developers can, every client request is development work. limited Developers. needs work Developers or support. suits it Support for configuration, developers for extensions.
Effort before the first gain A consolidation slows new work while it runs. suits it Small: merge tooling only. needs work Moderate: one flag per difference found. limited The largest: a consolidation project, one difference at a time.
A fix is applied once A B C

Fixes carried by hand are the ones that are missed.

  • A · Keep the versions and automate merging limited Once per copy.
  • B · Feature flags suits it Once.
  • C · One codebase: configuration-driven workflows, with a few extension points suits it Once.
What the tests cover A B C

A client is only protected if the way it uses the product is tested.

  • A · Keep the versions and automate merging needs work One test suite per copy.
  • B · Feature flags limited Grows with the flag combinations.
  • C · One codebase: configuration-driven workflows, with a few extension points suits it One suite, run for every configuration.
Who can change a client A B C

If only developers can, every client request is development work.

  • A · Keep the versions and automate merging limited Developers.
  • B · Feature flags needs work Developers or support.
  • C · One codebase: configuration-driven workflows, with a few extension points suits it Support for configuration, developers for extensions.
Effort before the first gain A B C

A consolidation slows new work while it runs.

  • A · Keep the versions and automate merging suits it Small: merge tooling only.
  • B · Feature flags needs work Moderate: one flag per difference found.
  • C · One codebase: configuration-driven workflows, with a few extension points limited The largest: a consolidation project, one difference at a time.

04

What the work looks like

The step of the offer where a case like this usually starts:

03

Architecture assessment

Findings, risks, options and next steps, in writing. A good starting point when the scope is not yet clear.

See the service: Architecture and technical rescue →

05

Is this your case?

Send it with this problem already selected; the next page asks which options you considered and a little context. No verdict on your system: that only comes once I understand it.

Send this case →

Or write to me directly at contacto@danielcolaco.pt.