Designing Tiers and Placing Business Rules in Them

Designing Tiers and Placing Business Rules in Them

Sometimes in a multi-tier system, designers tend to follow rigid object-oriented design rules to perform heavy data-centric manipulations in the middle tier. Remember, a thin line separates the operations that the middle tiers should handle and those that the database should handle. One should judge with care where the operation logically belongs, while keeping in mind the performance benefits of alternative approaches. I have seen design teams waste a lot of resources and energy deciding whether to have such operations in the middle tier or in databases (data storage and services).

For example, it makes more sense to me to perform complex joins between different tables at the database level and get the desired recordset back to the middle tier. An object model may toy with the idea of having many “Gets” (such as making various simple selects on each table) using separate data access component operations, with each one bringing data from a particular table. While more object oriented, this approach results in unwanted data in the middle tier and extra processing to retrieve the desired record set from this chunk. These can be avoided altogether with the previous approach.

To stress again, using stored procedures as much as possible further enhances performance. Using stored procedures also helps in the basic aim of any design: to separate the business logic from the data storage.

Share the Post:
Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several

data fivetran pricing

Fivetran Pricing Explained

One of the biggest trends of the 21st century is the massive surge in analytics. Analytics is the process of utilizing data to drive future decision-making. With so much of

kubernetes logging

Kubernetes Logging: What You Need to Know

Kubernetes from Google is one of the most popular open-source and free container management solutions made to make managing and deploying applications easier. It has a solid architecture that makes