2009-07-25 18 views
10

एन-टियर और एन-स्तरित वास्तुकला/डिजाइन का क्या अर्थ है?एन-टियरड बनाम एन-स्तरित वास्तुकला/डिजाइन

क्या एन-टियर और एन-स्तरित वास्तुकला/डिजाइन के बीच कोई अंतर है?

यदि हां, तो क्या अंतर है?

+0

संबंधित की एक जावा ईई सिस्टम

* Client (GUI and Web): GUI directly interacts with web tier. Web uses browser, applets to interact with web server through HTTP. Responsible for direct presentation and interaction with user. * Web components: processes web requests. Acts as mediator between clients and business components. * Business: (solves domain-specific) business problems. The abstract business logic processing happens in this tier. * Integration and Resource: handles connectivity with data stores and other (legacy) systems. 

परतों की

स्तरों के बीच जेईई मतभेद बताते हैं: http: // stackoverflow.com/questions/120438/whats-the-difference-between-layers-and-tiers – Marijn

उत्तर

15

लोग अक्सर दो शर्तों का एक दूसरे के साथ उपयोग करते हैं कि वे एक वास्तुकला का वर्णन बहु-स्तरित और बहु-स्तरीय दोनों के रूप में कर सकते हैं। मेरा लेना यह है कि आमतौर पर एक स्तर कुछ भौतिक अलगाव को संदर्भित करता है जबकि एक परत तार्किक अलगाव से अधिक होती है।

उदाहरण के लिए, एक सामान्य वेब एप्लिकेशन जो मैं कहूंगा वह सामने वाला अंत होगा - ब्राउज़र में क्या प्रदर्शित होता है - और एप्लिकेशन सर्वर पर चल रहे वास्तविक एप्लिकेशन तर्क और डेटाबेस। इसे 3 टायर के रूप में संदर्भित किया जा सकता है, क्योंकि डेटाबेस सर्वर, एक एप्लिकेशन सर्वर और क्लाइंट मशीन है। बस आसानी से, हालांकि, कोई डेटाबेस परत, तर्क परत और प्रस्तुति (या यूआई) परत का संदर्भ ले सकता है।

14

एन-टियर एक प्रणाली (यानी सर्वर और क्लाइंट) की "वितरित" परतों को संदर्भित करता है, जबकि एन-स्तरित एक स्वयं निहित कार्यक्रम में परतों को संदर्भित करता है; हालांकि दोनों को अक्सर एक दूसरे के रूप में उपयोग किया जाता है, कुछ सुझाव देते हैं कि एक महत्वपूर्ण अंतर है (जैसे मैंने ऊपर वर्णित किया है), जैसा कि Multitier architecture पर पहले अनुच्छेदों पर देखा गया है और Multilayered architecture विकिपीडिया पर अंतर बताता है।

+0

+1: संदर्भ। –

+0

वोट के लिए धन्यवाद! –

0

यह SCEA Study Notes स्तरीय और स्तरित वास्तुकला एक जावा ईई सिस्टम

* Virtual platform (component APIs): used to implement/support business logic. API Components include: JavaBeans, Java Servlets, JavaServer Pages/Faces, Java Message Service API, Java Transaction API, etc. 
* Application infrastructure (container): responsible for executing the application. Also provides services like: security, transactions, JNDI, and other connectivities. 
* Enterprise services (OS): responsible for the execution environment of the application infrastructure. Provides computing time and access to (abstract) hardware. 
* Compute and storage: the hardware or physical server. Provides computing power for the OS. 
* Networking infrastructure: responsible for networking services.