الحالة والانحراف (State and drift)
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
understand state, store it safely, and handle drift.
الموضوعات المخطط لها
- State maps your code to real resources; losing it means losing control.
- Use remote state (object storage with a lock table or the provider's equivalent) so the team shares one state and runs do not collide (locking).
- State can contain secrets; encrypt it and restrict access.
- Drift: real infrastructure differs from code after manual changes. Detect it with
plan, then fix the code or revert the change.
تفاصيل المخطط المبدئي
عرض عملي
backend block using remote storage with locking enabled; a plan showing drift on a changed security group.
اختبر فهمك
Why remote state?
أظهر الإجابة
Shared, locked, backed-up state instead of a file on one laptop.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.