Business logic

  • Business logic = application logic? data logic?
  • Where does it live?
  • Mind of the user
  • Inside the web page (javascript)
  • Inside the application
  • Inside the database

Next


 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Best place: database

 
  • Keep the business logic as close to the data as possible
  • Keep everything as close to the data as possible
  • Close, centralized, stable, non-duplicated

Next


 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Userid example:

 
  • Business logic moves when the data moves
  • Easier to find (auditing easier)
  • Easier to document (location, language, domain)
  • Not repeated across many applications
  • New applications do not need to reinvent this wheel
  • Logic is all in one place and can be changed atomically
  • Much harder to circumvent, keeps data safe and consistent

      Last             TOC             Next