Menu

1 / 4

Networking and caching in enterprise apps: own the stale data

DEV Community: angular·Adil Ben Moussa·12 days ago
#RPzCGtz3
#devtoangular#devto#dev#cache#write
Long article (1742 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.