Business Logic: Database or Application Layer

前端 未结 24 3346
春和景丽
春和景丽 2020-11-28 02:50

The age old question. Where should you put your business logic, in the database as stored procedures ( or packages ), or in the application/middle tier? And more importantly

24条回答
  •  悲哀的现实
    2020-11-28 03:19

    Put enough of the business logic in the database to ensure that the data is consistent and correct.

    But don't fear having to duplicate some of this logic at another level to enhance the user experience.

提交回复
热议问题