You are on page 1of 6

4 ‫قواعد البيانات المحاضرة‬

By:- The_🅱️lack_©️at
Client-Server Architecture
.‫معمارية خادم العميل‬
Single-user system [21 (page 770).
It is a desktop unit used by a single person usually with only one
processor and one or two hard disks, and usually only one person using
the machine at a time.

.)770 ‫ (صفحة‬21[ ‫نظام المستخدم المفرد‬


‫هي وحدة سطح مكتب يستخدمها شخص واحد عادة ً مع معالج واحد فقط وقرص واحد أو‬
.‫ وعادة ما يستخدم شخص واحد فقط الجهاز في كل مرة‬، ‫اثنين‬

Multiuser system,
It has more disks and more memory and may have multiple processors.
It serves a large number of users who are connected to the system
remotely.

، ‫نظام متعدد المستخدمين‬


‫ إنه يخدم‬.‫يحتوي على المزيد من األقراص وذاكرة أكبر وقد يحتوي على معالجات متعددة‬
.‫كبيرا من المستخدمين المتصلين بالنظام عن بُعد‬
ً ‫عددًا‬

Two-Tier Client-Server Architecture [1] (pages 57-60).


Client-Server Refers to the way in which software components interact
to form a system. There is a client process, which requires some
resource, and a server,
which provides the resource. There is no requirement that the client
and server must reside on the same machine. Figure 4.1 illustrates the
client-server architecture and Figure 4.2 shows the two tier client
server architecture.

.)60-57 ‫] (الصفحات‬1[ ‫بنية عميل خادم ثنائية الطبقات‬

‫ هناك عملية‬.‫يشير عميل الخادم إلى الطريقة التي تتفاعل بها مكونات البرنامج لتشكيل نظام‬
، ‫ وخادم‬، ‫ والتي تتطلب بعض الموارد‬، ‫عميل‬
‫الذي يوفر المورد‬
4.1 ‫ يوضح الشكل‬.‫ال يوجد أي شرط أن العميل والخادم يجب أن يقيم على نفس الجهاز‬
.‫ بنية خادم العميل من مستويين‬4.2 ‫بنية خادم العميل ويوضح الشكل‬

Summary of client-server functions:


Client
• Manages the user interface
• Accepts and checks syntax of user input
• Processes application logic
• Generates database requests and transmits to server
• Passes response back to user
‫ملخص وظائف الخادم العميل‪:‬‬
‫العميل‬
‫• تدير واجهة المستخدم‬
‫• يقبل والتحقق من بناء الجملة من إدخال المستخدم‬
‫• عمليات المنطق التطبيق‬
‫• إنشاء طلبات قاعدة البيانات ويقلل إلى الخادم‬
‫• يمر االستجابة مرة أخرى إلى المستخدم‬

‫‪Server‬‬
‫‪• Accepts and processes database requests from clients‬‬
‫‪. Checks authorization‬‬
‫‪• Ensures integrity constraints not violated‬‬
‫‪• Performs query/update processing and transmits response to client‬‬
‫‪• Maintains system catalog‬‬
‫‪• Provides concurrent database access‬‬
‫‪• Provides recovery control‬‬

‫الخادم‬
‫• يقبل وعمليات طلبات قاعدة البيانات من العمالء‬
‫‪ .‬التحقق من التفويض‬
‫• يضمن قيود النزاهة التي تنتهكها‬
‫• تنفيذ االستعالم ‪ /‬تحديث معالجة وتجنب االستجابة للعميل‬
‫• يحافظ على كتالوج النظام‬
‫• يوفر الوصول إلى قاعدة البيانات المتزامنة‬
‫• يوفر التحكم في االنتعاش‬

Three-Tier Client-Server Architecture


)‫معمارية خادم العميل (الطبقة الثالثة‬
In the mid-1990s, as applications became more complex and potentially
could be deployed to hundreds or thousands of end-users, the client
side in the traditional two-tier client-server model presented two
problems that prevented true
Scalability:
• A ‘fat’ client, requiring considerable resources on the client’s
computer to run effectively. This includes disk space, RAM, and CPU
power.
A significant client-side administration overhead.
‫ اصبح التطبيقات اكثر تعقيدا واحتمالية نشرها إلى مئات أو اآلالف من‬،‫في منتصف التسعينات‬
‫ جانب العميل في تطبيقات الطبقة الثانية التقليدية لنموذج خادم العميل‬،‫المستخدمين النهائيين‬
‫يواجه مشكلتين‬
:‫القناة‬
‫ التي تتطلب موارد كبيرة على كمبيوتر العميل لتشغيل بشكل‬،" ‫• عميل "الوظائف المتعددة‬
‫ وحدة المعالجة المركزية‬،‫ ذاكرة الوصول العشوائي‬،‫ وهذا يتضمن مساحة القرص‬.‫فعال‬
‫السلطة‬
. ‫ إدارة كبيرة من جانب العميل الهام‬.
This new architecture proposed three layers, each potentially running
on a different platform:
(1) The user interface layer, which runs on the end-user’s computer
(the client). Client is now responsible only for the application’s user
interface and perhaps performing some simple logic processing, such as
input validation
(2) The business logic and data processing layer. This middle tier runs
on a server And is often called the application server.
(3) A DBMS, which stores the data required by the middle tier. This tier
may run on a separate server called the database server.

:‫ كل منها يحتمل على منصة مختلفة‬،‫واقترحت هذه العمارة الجديدة ثالث طبقات‬
‫ العميل‬.)‫ والتي تعمل على جهاز الكمبيوتر من المستخدم (العميل‬،‫ ) طبقة واجهة المستخدم‬1(
‫ مثل‬،‫مسؤول اآلن فقط واجهة المستخدم التطبيق وربما أداء بعض معالجة المنطق بسيطة‬
‫التحقق من إدخال البيانات‬
‫ ويستند هذا الوسط الوسطى على الخادم وغالبا‬.‫ ) تنسيق األعمال المنطقية وتطوير البيانات‬2(
‫ما يسمى ملقم التطبيق‬
‫ مما يخزن البيانات المطلوبة من قبل الطبقة الوسطى قد يتم‬،‫ ) قاعدة بيانات إدارة البيانات‬3( .
.‫تشغيل هذا المستوى على ملقم منفصل يسمى خادم قاعدة البيانات‬

The three-tier design has many advantages over traditional two-tier


or single-tier designs, which include:
. The need for less expensive hardware because the client is…thin …
• Application maintenance is centralized with the transfer of the
business logic for many end-users into a single application server. This
eliminates the concerns of software distribution that are problematic in
the traditional two-tier Client-server model.
• The added modularity makes it easier to modify or replace one tier
without affecting the other tiers.
‫‪• Load balancing is easier with the separation of the core business logic‬‬
‫‪from the database functions.‬‬

‫تصميم ثري‪ -‬دير لديها العديد من المزايا عبر التصميم التقليدي أو الطبقة‪ ،‬والتي تشمل ‪.:‬‬
‫الحاجة إلى األجهزة أقل تكلفة ألن العميل هو ‪ ...‬رقيقة ‪...‬‬
‫• صيانة التطبيق مركزية مع نقل منطق األعمال للعديد من المستخدمين النهائيين إلى ملقم‬
‫التطبيق واحد‪ .‬هذا يلغي مخاوف توزيع البرامج التي تشكل في نموذجية خادمي من الطبقة‬
‫التقليدية‬
‫‪ • .‬ألواح الموظفين تجعل من األسهل لتعديل أو استبدال واحد من الدراسات األخرى دون‬
‫التأثير على المحمية األخرى‬
‫‪ • .‬موازنة تحميل أسهل مع فصل منطق األعمال األساسية من وظائف من قاعدة البيانات‪.‬‬
‫‪The End -_-‬‬
‫‪By:- The_🅱️lack_©️at‬‬

You might also like