Skip to content
Middle+3 views

Where is data received from an API enriched?

Practice

AI answer

It depends on the type of enrichment. Data that requires business logic, access to secrets, or consistent rules across different clients is usually enriched on the backend — for example, in an API or BFF. On the frontend, transformations are performed only when needed for display: formatting dates, calculating labels, and combining data for a specific component. This keeps important logic centralized and prevents the UI from duplicating it across different clients.