Ideas

Conscious Decoupling: The Future of Web Development

With a decoupled, component-based web architecture, your front end and your back end avoid unnecessary entanglements.
Dan Anderson
Managing Director, Technology

When Gwyneth Paltrow and husband Chris Martin began their now-famous “conscious uncoupling,” their hope was to reimagine divorce: It was less about the breakup and more about their (paradoxically) improved ability to work together effectively where it mattered (e.g., raising the children).

A similar principle underlies the concept of a “decoupled” web architecture, in which the front end (what the user sees and interacts with) is separate from the back end (the data and business processes that feed the front end). Separating the front and back ends enables each to be designed and maintained optimally, with no fear of how changing one may affect the other. Using simple communications protocols, the front and back can talk to each other and work together with precision and efficiency—more effectively, in fact, than if they were truly intermingled.

Decoupled web application architecture (DWA)Development framework that allows components to remain autonomous and unaware of each other, performing their tasks independently.
Headless CMSContent management system that enables you to author content without regard for how it will be consumed (e.g. web, mobile, other).
JSONJavaScript Object Notation, a data-interchange format this is easy for humans to read and write and for machines to parse and generate.
REACTOpen-source front end JavaScript library for building user interfaces or UI components.
RESTRepresentational state transfer, a set of web services APIs that enable computer systems to share data over HTTP.
Traditional “monolithic” architecture

Data flows through business logic, then through front-end code and templates before reaching the user.


The traditional architecture is coupled and monolithic: the entire technology stack (front end and back end) exist as one cohesive codebase sharing the same resources. Now, “cohesive” sounds like a good thing, and this approach does provide administrators the apparent advantage of being able to work within a single system. However, the consequence of this cohesiveness is a sort of “butterfly effect” in which a seemingly innocuous change in one area may turn out to have a significant and unintended impact elsewhere in the system. Developers use the term “brittle” (or sometimes more colorful language) to describe a codebase that lacks flexibility and resists efforts to adapt, evolve or otherwise change it in a meaningful way. Traditional architecture has an inherent tendency towards brittleness.

Decoupled web architecture

Conscious Decoupling Diagram 2

In the decoupled web architecture, frontend and backend code are separate, with no shared resources. The two codebases communicate, but each has its own server instance. The backend application serves data via an API (application programming interface) using a framework such as JSON (JavaScript Object Notation). A decoupled approach is advantageous for facilitating changes, enabling individual services and components to be independently scaled up or down or removed entirely without disrupting the entire application. Additionally, decoupling allows frontend and backend developers each to optimize their portions without fear of how their work impacts the rest of the system. Developers in general prefer the decoupled approach as it tends to remove production bottlenecks, simplify testing and make for a more easily reusable backend codebase.

Headless content management system

Conscious Decoupling Diagram 3

A headless CMS can be thought of as a subset of a decoupled web architecture. As in the standard decoupled approach, the frontend and the backend are two separate entities, two individual server instances. In headless, however, there is additional separation of content from the endpoint (the “head”), essentially abstracting the substance of the content from the form in which it is presented. The headless approach enables the delivery of content to a range of devices, e.g., web, mobile, wearables, set-top boxes. This “write once, publish anywhere” approach is increasingly desirable as user expectations continue to move towards being always on, always connected, with content available in an appropriate format no matter what device is used.

Conscious decoupling in action

The real-world benefit of the decoupled approach was evident in March of 2020, when the pandemic arrived. VShift client Freddie Mac, a giant in housing finance, needed to respond quickly, helping mortgage servicers and lenders make sense of the critical policy and program changes that would shape how they interacted with struggling borrowers and the prospect of a housing market meltdown.

FM CRC Home w/ Shadow

VShift created the Client Resource Center, a hub for all relevant Freddie Mac communications. The CRC enables Freddie Mac’s clients and partners to: 

  • Aggregate all vital communications in one place 

  • Customize topics and select types of information they received

  • Dramatically reduce the flood of redundant, disjointed communications

  • Be certain they have all relevant information on any subject of interest

Leveraging the reusable component-based architecture and headless CMS VShift had built previously, this massive content management undertaking was rolled out in a matter of weeks, giving Freddie Mac Single-Family and its business partners the ability to get out in front of a potentially catastrophic housing crisis and stave off a massive wave of foreclosures.

Overview of each approach
ApproachAdvantagesChallenges
Traditional
  • Streamlined, easy to implement and customize
  • Limited content types and channels
  • Limited framework, high cost for development and enhancements
Decoupled
  • Fast and flexible content delivery within a specified delivery environment
  • Rapid design iterations, simpler deployments
  • Easy and secure third-party integrations
  • Less dependency on IT
  • The best of both worlds in a CMS (structured backend, flexible frontend)
  • Future-proof (integrates easily with new technology and innovations)
  • More complex than traditional to configure and deploy
  • Front end development work required for design
Headless
  • Fast content delivery
  • Provides complete control over how and where your content appears
  • Easy and secure third-party integrations
  • Allows developers to use their favorite tools and frameworks
  • Future-proof (integrates easily with new technology and innovations)
  • Presentation must be handled separately
  • Not possible to see accurate live preview
  • Reliant on additional technologies for its “head”
Your next development effort

While decoupling is not without its tradeoffs, it has been our experience that the benefits greatly outweigh any drawbacks. Users enjoy a richer experience, while both backend and frontend developers can flex their muscles and push the technology—and their imaginations—as far as they can go. Equally important, your business can be more responsive, with greater speed and agility, unleashing the organizational creativity that too often is handcuffed unnecessarily by technical or process concerns. You too will likely discover the happy paradox that separating enhances everyone’s ability to work together.

This article is part of a series.

Webinar: The Composable Advantage
Series webinar
The Composable Advantage

VShift is a digital strategy, design and technology agency for enterprise-scale brands in regulated industries.