Micro-frontends delivery and caching
Caching
Caching requests to our backend, be it a database or a server processing business logic, is very important to preserve user experience but also to control costs derived from computing resources.
Begin by the basic optimizations, even before caching:
- Use headers to reduce roundtrips
- Keep payloads to a minimum
- Choose your API pattern wisely
And then…
- Use a CDN to cache static assets
- Use an API management system or gateway to proxy and consolidate requests
- Explore the opportunities offered by managed infrastructure, to accelerate responses: like Cache for Redis, for example