Hi,
I am a relative novice, but would appreciate any direction and general advice on this subject.
If I understood correctly, backend functionality is generally used to implement functions that either cannot be implemented on the client/browser side, or where its not appropriate to expose such function to the client browser, for example security related.
My question (which falls outside these two broad categories) is whether there is any design, specifically performance advantage to implement the majority of my sites database related functionality in backend functions? In simple terms, implement the wix.data code to execute the get and set of the data for the front-end behaviour (queries, loading repeaters, etc.) in backend functions. Our data volumes are not huge.
Thanks for any thoughts! #backendfunctions#performancedesign#bestpractise
For what you want to do it sounds to me like you can just write all of your code in your page or site tabs and not worry about having to having to use any code through the backend, although some things might be recommended to do it through backend so it is more secure etc.
Thanks for the feedback givemeawhisky !
Yeah, I have been reading these articles and others but I could not conclude anything conclusive to indicate gains in performance by migrating functionality to the backend. Security etc. and limitations on the browser/client etc. seems to be the main reasoning for using backend functions. For sure it’s a bit more complex to implement some of the functions in the backend working with promises etc. but can be achieved.
Cheers