We have an application that uses firebase and firestore as database. We want to implement several sections in our application that our customers manage several contents on their website using existing data from application. We want to create an api for them to fetch data on their site. But when we provide data on api we don't want to fetch data from firestore directly because that is costly and unnecessary for mostly static content.
We want to create a headless cms model, the cms ui is our application but how should be store data and serve it. We can think that we can create several cloud functions to save data to somewhere in desired way when data in our application change and we can deploy an express.js node application to google cloud app engine to serve an api. But how should we store data, or is there other ideas that can we consider?