A successful SaaS company has a thriving web platform. The CEO decides it is time to launch a mobile application. They hire a specialized mobile app and software development agency to build the iOS and Android versions.
The mobile agency begins work. Because they are working in isolation, they decide that the existing web backend (the API) is too slow and returns too much unnecessary data for a mobile device.
Instead of collaborating with the internal web team, the mobile agency builds their own separate backend database and their own API specifically for the mobile app.
The CEO is happy because the mobile app launches on time.
Six months later, the CTO uncovers a financial and operational disaster. The company now has two completely separate backends. When a user updates their profile picture on the website, it does not update on the mobile app because the databases are out of sync. Every time the Product Manager wants to add a new feature, they have to pay two different engineering teams to write the exact same business logic twice.
The company has doubled their AWS costs, doubled their development costs, and guaranteed data inconsistency. This is the tragic result of Siloed Architecture.
The Financial Devastation of Siloed Architecture
In custom software development, business logic is the most expensive thing you will ever build.
The rules that dictate how taxes are calculated, how user permissions are granted, and how payments are processed must exist in exactly one place. If you allow a mobile team to rewrite those rules in a separate mobile backend, you are creating massive technical debt.
If a bug is found in the tax calculation logic, you now have to fix it in the Web API, and then remember to go fix it in the Mobile API. If you forget, your mobile users will be charged the wrong tax rate.
This is exactly the failure mode the DRY principle was coined to prevent. Andy Hunt and Dave Thomas, in The Pragmatic Programmer, defined it precisely: “Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.” Tax logic, permission rules, and payment processing are knowledge in exactly this sense. The moment that knowledge exists in two places – a Web API and a separately maintained Mobile API – the system no longer has a single authoritative representation of the truth, and Hunt and Thomas’s warning stops being a style preference and becomes an operational risk: the two representations will drift, silently, until a customer notices before your engineering team does.
The Solution: Unified Architecture and the BFF Pattern
Elite engineering teams mandate a Unified Architecture. The core business logic and the core database must remain a single source of truth. However, the mobile agency was right about one thing: Mobile devices do require different data payloads than desktop web browsers.
To solve this without duplicating business logic, elite architects use the Backend for Frontend (BFF) pattern.
How the BFF Pattern Works
- The Core Microservices: The company maintains one central, highly secure set of microservices [e.g., the User Service, the Billing Service]. These contain 100% of the business logic.
- The Web BFF: The web engineering team builds a lightweight API Gateway (the Web BFF). This gateway simply calls the Core Microservices, formats the massive data payloads perfectly for a desktop browser, and sends it to the React frontend.
- The Mobile BFF: The mobile engineering team builds a separate lightweight API Gateway (the Mobile BFF). This gateway calls the exact same Core Microservices. However, it strips out all the heavy data (like high-res images or unnecessary text) and formats the payload perfectly for a low-bandwidth mobile device.
By using the BFF pattern, the mobile app is blazing fast, but the core business logic is never duplicated.
Preventing Breaking Changes: Contract Testing Between the Core API and the BFFs
Unifying the backend into a single Core API and a set of thin BFFs solves the duplication problem, but it introduces a new failure mode that many architects don’t anticipate: a single change to a Core Microservice can now silently break every BFF that depends on it.
Picture the scenario. A backend engineer working on the Billing Service decides to rename a field from total_amount to totalAmountCents because they realize the API was accidentally returning euros instead of cents. The change passes its own unit tests. The Core API team merges the Pull Request and deploys on a Friday afternoon. Nobody on the Billing team owns the Mobile BFF, so nobody notices that the Mobile app’s checkout screen now crashes on undefined, because the field it was reading no longer exists. The crash reports don’t surface until Monday morning, by which point thousands of App Store reviews have already been left with one star.
This is why elite architecture teams never treat the Core API as “internal, so it’s safe to change freely.” Instead, they mandate two disciplines:
- Semantic Versioning with Deprecation Windows: Any change to a Core Microservice’s response shape is treated as a breaking change unless proven otherwise. Breaking changes ship as a new version (
/v2/billing) alongside the old one, with a published deprecation window (commonly 90 days) during which both the Web BFF and Mobile BFF can migrate on their own schedule, rather than being forced to update in lockstep with the backend team’s release calendar. - Consumer-Driven Contract Testing: Each BFF team writes a machine-readable “contract” (using a framework like Pact) that states exactly which fields, types, and structures it depends on from the Core API. This contract file is checked into the Core API’s own CI/CD pipeline as an automated test. If the Billing Service engineer’s rename would break the Mobile BFF’s contract, the Pull Request fails the build automatically, before it ever reaches staging, let alone production. The backend engineer gets an immediate, specific error: “Mobile BFF v3.2 expects field
total_amountof type integer; this change removes it.”
Contract testing effectively gives every BFF team a vote in the Core API’s CI/CD pipeline without requiring cross-team meetings for every single change. It converts an organizational coordination problem – “please remember to tell the mobile team before you rename that field” – into an automated, mathematically enforced gate. For a Lead Architect governing multiple frontend teams consuming one backend, this is the difference between a unified architecture that scales safely to a dozen client applications and one that becomes too fragile to touch after the third.
The Duplication Tax: Quantifying What Siloed Backends Actually Cost
It is worth putting real numbers against the “doubled AWS costs, doubled development costs” claim from the opening scenario, because engineering leaders often underestimate how much of their team’s capacity a siloed architecture silently consumes.
Stripe’s Developer Coefficient report, based on a survey of developers globally, found that engineers spend an average of 17.3 hours of a 41.1-hour work week – roughly 42% of total capacity – on maintenance and “bad code” rather than new development, and estimated that technical debt represents a multi-trillion-dollar drag on global GDP. Duplicated business logic across a Web API and a Mobile API is one of the purest forms of the “bad code” category that report is measuring: it is work that exists purely because the same knowledge was implemented twice, not because it adds new customer value.
Applying that lens to the scenario at the top of this article: a mid-sized SaaS engineering org with, say, 12 backend-capable engineers splitting time across a Web API and a shadow Mobile API is not simply paying for “one extra team.” It is paying a recurring maintenance tax on every future change to tax logic, permissions, or billing – twice the QA cycles, twice the security review surface, and twice the probability that a bug fix lands in one codebase and is forgotten in the other. If even a conservative one-third of that duplication overhead maps onto the Stripe figures above, a 12-engineer team at a fully loaded cost of roughly €90,000/year per engineer is losing on the order of €300,000-€450,000 annually to work that a unified Core API and BFF pattern would have eliminated entirely, not by hiring fewer people, but by no longer needing two people to do the work of one.
This is the frame a Lead Architect should bring into a budget conversation about the BFF pattern: it is not an “architecture nice-to-have” competing against feature velocity. Contract testing, semantic versioning, and a unified Core API are themselves the fastest path to feature velocity, because every hour not spent reconciling two versions of the truth is an hour spent shipping something a customer actually asked for.
The Manifera Cross-Platform Governance
Standard offshore software development agencies are heavily siloed. The mobile department does not talk to the web department. If you hire them, they will build you two separate backends to maximize their billable hours.
At Manifera, we enforce Unified Architecture.
When you hire us for app and software development, our Dutch Architects oversee the entire ecosystem. Whether we are building a React web portal or a React Native mobile app, our Architects mandate that all business logic lives in a single, unified Core API. If a BFF layer is required, we architect it precisely, and we set up the contract testing described above from the first sprint, not as a retrofit after the first production incident.
Our Vietnamese engineering pods execute this blueprint seamlessly, ensuring that when you add a feature, you only pay for the business logic once, and it works perfectly across every device.
Stop paying for duplicate code. Contact our Amsterdam team for a unified architectural strategy.
FAQs
[Scenario: CTO auditing backend complexity] Why do mobile development agencies often build separate backends?
Because mobile devices have different constraints than desktop browsers [slower networks, smaller screens, lower battery life]. A standard web API often sends massive JSON payloads containing data the mobile app doesn’t need, which slows down the phone. Instead of modifying the web API, isolated mobile agencies take the lazy route and build a separate, optimized mobile backend, duplicating the business logic.
[Scenario: VP Engineering planning a mobile launch] What is the ‘Backend for Frontend’ (BFF) architectural pattern?
The BFF pattern involves creating a lightweight, dedicated API gateway for each specific user interface [one BFF for Web, one BFF for Mobile]. These BFFs do not contain core business logic. They simply act as translators – they call the single Core API, format the data specifically for their respective UI, and return it. This keeps the core logic unified while optimizing performance for each device.
[Scenario: Lead Developer fighting data inconsistency] Why is duplicating business logic a financial disaster?
Because it violates the DRY (Don’t Repeat Yourself) principle at a massive scale. If you have tax calculation logic in a Web backend and a Mobile backend, you have to write the code twice, test it twice, and fix bugs twice. Inevitably, the two codebases will drift apart, and mobile users will start experiencing different business rules than web users, causing catastrophic data corruption.
[Scenario: Product Manager planning roadmap costs] Does a Unified Architecture slow down mobile development?
Initially, designing a proper Core API and a Mobile BFF requires slightly more architectural planning than just letting the mobile team build a rogue database. However, over a 12-month roadmap, it drastically accelerates development. When you want to add a new feature, you only build the backend logic once, instantly making it available to both the web and mobile teams.
[Scenario: Procurement Officer evaluating Manifera] How does Manifera ensure web and mobile teams do not build siloed architectures?
Through centralized Dutch architectural governance. We do not allow our web and mobile engineering pods to operate in isolation. A single Dutch Tech Lead oversees the entire product ecosystem, ensuring that all frontend teams (React and React Native) consume data from a unified Core API, preventing any duplication of business logic.
Suggested Posts
How useful was this post?
Share it with your friends
Get our latest articles here!
Do you have any questions?
Help us improve the content of this Insightful blog by asking us questions. Manifera's team of experts will help you answer these questions as soon as possible.








