This is part 3 of 8 of the free series Frontend system design for enterprise applications , first published on tt-tech.io .
A customer makes a transfer, goes back to the dashboard, and sees the old balance. The transfer worked. The dashboard read a cache that nobody told about the write. In a bank, that is a support call, and sometimes a second transfer.
Caching sits in this part, next to networking, because in an enterprise app they are one question: where does this data live, and when is it wrong? A cache without an owner is a bug with a delay.
One boundary to the backend
Components never fetch. One data-access layer per domain talks to the backend, and everything else reads from it. That gives you one place to add auth, one place to cancel, one place to invalidate.
When the screens need a shape the domain APIs do not have, put a backend-for-frontend (BFF) between them, owned by the frontend team.…