Where is better to calculate the total sum, back end or front end?

by Anna Adamchuk   Last Updated December 07, 2017 09:05 AM

If I have a list of products and I need the total price of those products. Where is better to calculate the total sum, back end or front end?

  1. Front end React
  2. Back end PHP
  3. Table that shows Invoices list


Answers 1


All business logic must be done on the backend. On some cases you can replicate on front end (for quick feedback to the user) but never as the source of truth.

Miyamoto Akira
Miyamoto Akira
December 07, 2017 10:14 AM

Related Questions



Web development frameworks

Updated June 05, 2017 21:05 PM

Frameworks for web development

Updated June 06, 2017 22:05 PM