which design is best for stable and small data in a web application that has its data store behind an api? For example the list of languages, the list of countries or event the list of genders?
Imagine a select tab for the list of available languages. From where should I populate it? Should I hard code the values (id, name) in the webapp (ex. Angular) and in parallel have a copy of those values in the database for operations on the server? This would be to avoid calls to the server in order to fetch data from the api that "never" changes.
Or is it better to stick to the general way and fetch the list of languages from the api (which gets it from the database) so that there is no double existence of the same data (hard coded in the webapp and in the database)? But then additional fetching of this data from the server is necessary.
Thanks for any opinion which way is more suitable for an app that tends to serve not more than lets say 1000 users at a time.
Aucun commentaire:
Enregistrer un commentaire