0

I'm working on a school project and just wondering if it is possible to have 2 business objects linking to each other to 1 presentation layer. Attached an example of what I'm trying to say here:

3-tier Architecture Image

I have Purchase Process and Items Details Process linked up in Business Layer because I do need some modules in the purchase process to be able to run in items details and get the details from the API. However, I'd only like to have 1 Output in the Presentation Layer.

Any idea if this works in a 3-tier architecture system or am I not supposed to link up my 2 objects in the Business Layer?

vt-0307
  • 63
  • 1
  • 7

1 Answers1

0

Here the principal you are looking for is the separation of concerns.

With the available context what I can say is there are no issues couple two functions of the business layer into one presentation layer function if that's your business requirement but the only problem is it will be highly coupled and would be troublesome to operate independently of each other.

Techie
  • 44,706
  • 42
  • 157
  • 243
  • Thanks for the reply! However, some parts of one business layer require calling the module from the other business layer. Is it better to combine both into one business layer then? – vt-0307 Jun 03 '20 at 08:33
  • That has to be decided after looking at the requirements and further expansion. – Techie Jun 03 '20 at 13:48
  • Since you are new to StackOverflow, If you feel the answer solved the problem, please mark it as 'accepted' by clicking the green checkmark or upvote the answer. – Techie Jun 03 '20 at 13:51