To facilitate temporary multilingual support in our current architecture, we need to implement a Proxy(BFF) layer. This BFF will act as an intermediary between the Frontend and the original Backend, ensuring translations are applied and responses are cached effectively. The goal is to minimize costs and create a disposable solution that can be easily decommissioned post-migration.
Objectives
Implement a BFF layer using Cloudflare Workers.
Cache translated responses using Cloudflare KV.
Ensure the BFF forwards requests and responses between Frontend and Backend without altering the response structure.
Apply the Cloud Transition API to Backend responses for translation purposes.
Support multilingual frontends by detecting language preferences from request headers and user selections.
Store user language preferences in local storage, with future considerations for persistence.
Description
To facilitate temporary multilingual support in our current architecture, we need to implement a Proxy(BFF) layer. This BFF will act as an intermediary between the Frontend and the original Backend, ensuring translations are applied and responses are cached effectively. The goal is to minimize costs and create a disposable solution that can be easily decommissioned post-migration.
Objectives
Sequence Diagram
Overview
Additional Notes
TODO