أهداف الدرس
- أن ترى أن كل طلب يمرّ بمحطات ثابتة.
- أن تفهم لماذا الترتيب مهم.
قبل أن يُنفَّذ أي عمل يتأكّد الخادم من أن الاتصال آمن، ثم يعرف من أنت، ثم هل يُسمح لك، ثم هل الطلب سليم.
لو سُئل المستخدم «هل يُسمح لك؟» قبل أن نعرف من هو، لكان الجواب بلا معنى.
تمرين
أين تضع محطة تسجّل زمن كل طلب؟
الإجابة
في أول الرحلة، كي تقيس كل ما بعدها.
Lesson goals
- See that every request passes fixed stations.
- Understand why the order matters.
Before any work is done the server makes sure the connection is secure, then learns who you are, then whether you are allowed, then whether the request is valid.
Ask «are you allowed?» before knowing who the user is, and the answer means nothing.
Exercise
Where does a station that times every request go?
Answer
At the very start, so it times everything after it.
التعليقات / Comments
لا تعليقات بعد. كن أول من يسأل. / No comments yet. Be the first to ask.