BolEnglishLearn · Play · Win
Login

🔗 Software Design & Architecture · Architecture Evaluation Factors

🔗

Compatibility

Quality AttributeCoreModule 1

The ability to introduce changes without unnecessarily breaking existing consumers.

New versions should respect existing integrations and supported clients.

💡 In practice

Adding an optional API field does not break existing mobile clients.

🖼️ CONCEPT PICTURE
A picture to help remember Compatibility
Adding an optional API field does not break existing mobile clients.

💡 Like a new phone charger that still fits the old socket — new on your side, unbroken on theirs.

💡 Learn🛠️ Apply🎯 Check

💡 Why it matters

Other clients and integrations depend on your current behavior. Compatible changes let you evolve without forcing everyone else to change at once — or breaking them.

🛠️ How to achieve it

1
Add, don't break
Add optional fields or endpoints instead of changing or removing existing ones.
2
Version when you must break
Offer a new version and keep the old one during a transition.
3
Keep defaults sensible
New optional inputs should default so old callers keep working.

⚠️ Signs of trouble

  • •A release breaks existing mobile or partner clients.
  • •Renaming or removing a field forces everyone to update immediately.
  • •There's no versioning, so any change is a breaking change.
⚠️ Common mistake: Making a breaking change (renaming or removing a field, changing a response shape) without versioning, so every existing consumer breaks at once.

🎯 Quick check

Score: 0/2

Three questions to test the idea.

  1. 1. Adding an optional field to an API response is usually…

    Answer: Backward-compatible (old clients keep working)

    Old clients simply ignore the new optional field.

  2. 2. If you must remove a field clients use, the compatible approach is…

    Answer: Version the API and deprecate the old one over time

    Versioning plus deprecation gives consumers time to migrate without breaking.

🔑 Key terms

Backward compatibility
Old clients still work with the new version.
Breaking change
A change that forces consumers to update.
Versioning
Supporting old and new at the same time.
Deprecation
Phasing something out gracefully.

✅ Review checklist

📊 Your progress

0%
Mark this topic learned to track it.
Saved in this browser.
🚀 Got it?
Mark it learned and move to the next topic.
Next topic →