CRM ARCHITECTURE

Bring your own backend: what it actually means for a CRM.

Learn what bring your own backend means, how it differs from self-hosting, and what a compatible CRM frontend needs beyond a database connection.

A removable interface sits on a compatible foundation through a gold coupling.
Independent layers. Connected context. Concept illustration.

The backend is more than the place records are stored

A CRM screen depends on more than contacts in a table. It may ask for the current user, organization membership, field definitions, allowed actions, saved views, files, record layouts, and related activities. Buttons can trigger background jobs or messages. All of those dependencies have an owner.

Consider a contact editor. Loading the contact is only the first operation. The form may also need company choices, required custom fields, a list of permitted owners, and a rule for resolving concurrent edits. A backend replacement is incomplete if it can display the record but cannot safely save the form.

Bring your backend versus bring your frontend versus self-hosting

Bring your own frontend means keeping the backend and creating your own interface. Bring your own backend means keeping an interface while supplying compatible services behind it. Self-hosting means operating software on infrastructure you control. These choices can overlap, but none automatically implies the others.

A self-hosted application can still have tightly coupled frontend and backend code. A hosted frontend can use customer-operated APIs if the integration supports it. A company can also build a custom frontend on a managed backend. Specify which layers you are replacing before comparing proposals.

A CRM frontend connects through a compatible service contract to a customer-operated backend.
A CRM frontend connects through a compatible service contract to a customer-operated backend.

Define the contracts before connecting production data

Treat the integration as a set of versioned agreements. For each workflow, define the inputs, outputs, errors, and permission checks. A compatible response shape is only part of the contract: the same request must have the expected business meaning.

  • Identity: how does the backend verify the caller and select the active organization?
  • Records: which IDs, field types, relationships, filters, and pagination rules are supported?
  • Writes: where do validation, permission checks, stale-edit detection, and audit records happen?
  • Background work: who runs automations, retries, scheduled jobs, and webhooks?
  • Operations: who handles credentials, outages, API version changes, backups, and recovery?

Authentication does not travel automatically between backends

A session issued for one system should not be assumed valid for another. The replacement backend needs a reviewed identity and authorization arrangement. Do not treat forwarding a vendor’s browser cookie or service credential to a new destination as an integration strategy.

The exact mechanism depends on the services involved: an identity provider, a supported token exchange, or a separately authorized service connection may be appropriate. Establish which system validates the credential and which resource it authorizes before building the adapter.

Prove one complete workflow before promising the whole application

Start with a bounded workflow such as listing, viewing, creating, and editing contacts. Test the full path with permitted and denied users. Include an expired session, a changed role, a missing related record, and a backend outage.

Incremental replacement can reduce the size of a cutover, but mixed systems still need clear routing and ownership. Microsoft’s Strangler Fig guidance describes this gradual replacement pattern and its operational boundaries. Passing one adapter test does not prove that every screen or integration is portable.

Source: Microsoft Azure Architecture Center: Strangler Fig pattern ↗

When the extra control is worth it

This approach can make sense when an existing backend represents substantial business investment or when ownership requirements make replacing it unattractive. It is harder to justify when the standard backend already meets your needs and your team has no capacity to maintain the adapter.

Ask for a supported-workflow inventory, compatibility tests, and a responsibility matrix. A concrete integration scope is more valuable than a broad claim of backend independence.

Where Deepwater fits

Deepwater’s bring-your-own-backend direction is explicitly scoped around compatibility and adapter work. It should not be read as a claim that every built-in screen can run on an arbitrary database today. A responsible rollout identifies supported journeys and unresolved dependencies before production use.

A LITTLE MORE CONTEXT

Common questions

Can I connect any database to any CRM frontend?

Usually not without integration work. The frontend expects services for identity, permissions, metadata, business actions, and data access—not simply a database connection.

Does bringing my backend mean I must host the frontend?

No. Hosting and backend compatibility are separate decisions. The arrangement depends on the frontend’s supported integration and deployment model.

What should a backend compatibility test include?

Exercise a complete workflow, including metadata, related records, writes, denied access, expired identity, concurrent edits, and outages. A successful list request is insufficient.

Make the next connection.

Discuss your Deepwater rollout ↗Deepwater is in private beta. Access, implementation, and commercial terms are agreed for your rollout.