Action result max size and good practice
Hi there
I'm building a simple app which pulls segment definitions from Adobe Experience Platform API to a webpage. I've got some doubts about how I set up my backend action. The action triggers whenever the app gets started or refreshed. It then queries a particular endpoint and adds all paginated results into a single object before the object is returned. It other words a large chunk of JSON is provided in the response each time the action runs.
Ultimately I expect 5-8 users to regularly use the app and the same process of calling the API and sending a large JSON to the front end will be repeating itself over and over. Being new to web dev I'm curious if this was a good practice or maybe a burden on runtime or the API itself. Perhaps file storage should be used to avoid constant querying of the API ?
For now the app works so and I'm thinking that for as long as my action does not exceed the 1mgb result limit there is not much to worry about, though I've not had the app published yet. Any comments would be much appreciated.