Added
A hospital scheduling system includes a legacy application that owns appointment data, a new patient portal, and a third-party messaging service. The portal team wants to expose internal database tables directly so it can ship quickly, but the hospital requires a stable interface, limits disclosure of protected information, and expects the legacy schema to change during a planned migration. Which architectural decision best meets these constraints?
A versioned application interface decouples portal behavior from legacy schema changes and can expose only the fields required for the task. Enforcing authorization and data minimization at that boundary also reduces unnecessary disclosure. Read-only views still couple consumers to the database and do not inherently provide a suitable security boundary. Copying every table duplicates sensitive data and creates synchronization obligations. Direct provider access expands the trust boundary and grants a third party unnecessary access.