I am trying to create a web app in which:
Previously I was thinking to keep the business logic (how the new tables are obtained from table0) in the backend and whenever the user changes anything in UI, an API call is made to the backend with all table0 data, and backend generates the new tables and returns them back to UI.
The main requirement is that after every change made by the user to table0, the user would like to see how the new (generated) tables look like, Thus (in the current approach) causing all of table0 data to be transferred to backend a lot of times over the network which I THINK will make it slow and not very dynamic. Also in the future, the number of rows may increase and alleviate this problem even more.
So, I was thinking of moving the business logic to the front end, but everywhere I read on the net I find people advising to keep business logic in the backend. So is there any better solution to this problem?
There are no silver bullets here. What you are dealing with is a trade-off between availability and consistency .
If consistency is more important:
If availability is more important:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.