Contents

    DevOps Fundamentals · OverviewBeginner4 min read

    Last updated ·

    What is DevOps?

    Understand the core idea of DevOps and how Development and Operations work together.

    • devops
    • fundamentals
    Edit on GitHub

    Introduction

    ! Study Tip: DevOps is not a tool you install — it is a culture of shared responsibility

    Keep this mindset in mind as you explore the toolchains, pipelines, and infrastructure practices ahead.

    DevOps هو طريقة شغل (Way of Working) بتجمع بين الـ Development والـ Operations، وهدفها إن بناء الـ Software وتسليمه وتشغيله يبقوا جزء من عملية واحدة مستمرة، بدل ما كل فريق يشتغل بمعزل عن التاني.

    الفكرة مش إننا نكتب Code أسرع وخلاص، لكن إننا نحسّن الـ Software Delivery Lifecycle بالكامل، بدايةً من كتابة الـ Code، مرورًا بالـ Deployment، لحد تشغيل الـ Application ومتابعتها في الـ Production.

    The Three Perspectives

    Development

    مسؤول عن بناء الـ Application، إضافة Features جديدة، إصلاح Bugs، واختبار الـ Code.

    Build

    Operations

    مسؤول عن الـ Infrastructure، تشغيل الـ Applications، الـ Deployment، ومتابعة استقرار الـ Systems.

    Run

    DevOps

    بيقرّب الفريقين من بعض، ويعتمد على Collaboration وAutomation وContinuous Feedback لتحسين عملية تسليم وتشغيل الـ Software.

    Together

    1. Development and Operations

    علشان نفهم الـ DevOps، لازم الأول نفهم طبيعة الشغل في كل ناحية.

    I. Development

    الـ Development Team مسؤول بشكل أساسي عن بناء الـ Application وتطويرها.

    من ضمن مسؤولياته:

    Development Responsibilities

    Write Code

    كتابة الـ Code وتنظيمه.

    Code

    Build Features

    تنفيذ Features جديدة.

    Features

    Fix Bugs

    إصلاح الـ Bugs.

    Bugs

    Test Logic

    اختبار الـ Application Logic.

    Testing

    Prepare Releases

    تجهيز إصدارات جديدة من الـ Software.

    Releases

    II. Operations

    الـ Operations Team مسؤول عن تشغيل الـ Application والمحافظة على استقرارها في الـ Environment الحقيقي.

    من ضمن مسؤولياته:

    Operations Responsibilities

    Infrastructure

    إدارة الـ Infrastructure والـ Servers.

    Servers

    Environments

    تجهيز الـ Environments.

    Envs

    Deployments

    نشر الـ Applications باستخدام Deployment Processes مناسبة.

    Deploy

    Availability

    متابعة الـ Availability والـ Performance.

    Uptime

    Monitoring

    مراقبة الـ Systems والتعامل مع المشاكل التشغيلية.

    Systems

    III. How They Work Together

    بشكل مبسّط، الـ Development بيبني الـ Software، والـ Operations بيشغّله ويحافظ على استقراره.

    flowchart LR
        DEV(["Development"]) --> APP("Application")
        APP --> OPS(["Operations"])
        OPS --> SYS("Running System")
    
        classDef dev fill:#efe2d0,stroke:#9c7956,color:#493626,stroke-width:1.5px
        classDef app fill:#f7f0e6,stroke:#b49a7b,color:#493626,stroke-width:1.5px
        classDef ops fill:#e6d8c5,stroke:#927453,color:#493626,stroke-width:1.5px
        classDef sys fill:#f2e9dc,stroke:#927453,color:#493626,stroke-width:1.5px
    
        class DEV dev
        class APP app
        class OPS ops
        class SYS sys

    الاتنين مهمين، لأن كتابة Software شغال على جهاز الـ Developer مش معناها بالضرورة إنه هيشتغل بنفس الطريقة لما يتنشر على Production.

    المشكلة بتظهر لما كل طرف يركّز على مسؤوليته فقط، من غير ما يكون فيه تعاون كفاية بين المرحلتين.

    2. The Gap Between Development and Operations

    في الـ Traditional Workflow، ممكن الـ Development Team يعتبر إن شغله خلص بمجرد ما الـ Code يبقى جاهز، وبعدها يسلّمه للـ Operations Team علشان يتولى الـ Deployment.

    flowchart LR
        DEV(["Development"]) --> CODE("Code Complete")
        CODE --> HANDOFF("Manual Handoff")
        HANDOFF --> OPS(["Operations"])
        OPS --> DEPLOY("Deployment")
        DEPLOY --> PROD("Production")
    
        classDef team fill:#efe2d0,stroke:#9c7956,color:#493626,stroke-width:1.5px
        classDef step fill:#f7f0e6,stroke:#b49a7b,color:#493626,stroke-width:1.5px
        classDef handoff fill:#f2dfc5,stroke:#b38b55,color:#68451f,stroke-width:1.5px
        classDef prod fill:#e6d8c5,stroke:#927453,color:#493626,stroke-width:1.5px
    
        class DEV,OPS team
        class CODE,DEPLOY step
        class HANDOFF handoff
        class PROD prod

    هنا ممكن الـ Operations Team يكتشف إن الـ Application محتاجة Dependencies مش موجودة على الـ Server، أو Configuration مختلفة، أو تغييرات في الـ Infrastructure قبل ما تقدر تشتغل.

    بالتالي، المشكلة مش بالضرورة في الـ Code نفسه؛ المشكلة ممكن تكون في المسافة بين بناء الـ Software وتشغيله.

    What Goes Wrong

    Communication Problems

    عدم وضوح المتطلبات أو عدم مشاركة المعلومات المهمة بين الفريقين.

    Gap

    Manual Handoffs

    الاعتماد على تسليمات يدوية بين الفرق، مع احتمالية نسيان خطوات أو إعدادات مهمة.

    Handoffs

    Environment Differences

    اختلاف الـ Dependencies أو الـ Configuration بين بيئة الـ Development وبيئة الـ Production.

    Envs

    Slow Feedback

    اكتشاف المشاكل متأخرًا، بعد ما الـ Application تكون انتقلت لمرحلة أبعد في عملية التسليم.

    Late

    النتيجة ممكن تكون Delays، وDeployment Failures، وشغل متكرر، ووقت أطول لحل المشاكل.

    وهنا بتيجي أهمية الـ DevOps: تقليل الفجوة بين بناء الـ Software وتشغيله، وتحسين التعاون بين الأطراف المسؤولة عنه.

    3. How DevOps Connects the Two Worlds

    بدل ما نتعامل مع الـ Development والـ Operations باعتبارهم مرحلتين منفصلتين، الـ DevOps بيشجّع التعاون خلال الـ Entire Software Delivery Lifecycle.

    flowchart TD
        DEV(["Development"]) --> BUILD("Build and Test")
        BUILD --> DELIVER("Deliver and Deploy")
        OPS(["Operations"]) --> DELIVER
        DELIVER --> RUN("Running Application")
        RUN --> OBS("Monitoring and Feedback")
        OBS --> LEARN("Learn and Improve")
        LEARN --> DEV
        OBS -. Operational Insights .-> OPS
    
        classDef team fill:#efe2d0,stroke:#9c7956,color:#493626,stroke-width:1.5px
        classDef process fill:#f7f0e6,stroke:#b49a7b,color:#493626,stroke-width:1.5px
        classDef feedback fill:#e6d8c5,stroke:#927453,color:#493626,stroke-width:1.5px
        classDef running fill:#f2e9dc,stroke:#927453,color:#493626,stroke-width:1.5px
    
        class DEV,OPS team
        class BUILD,DELIVER process
        class OBS,LEARN feedback
        class RUN running

    الفكرة إن الـ Development يستفيد من المشاكل والـ Feedback اللي بتظهر في الـ Production، والـ Operations يشارك في تحسين طريقة تجهيز وتسليم الـ Application من البداية.

    وده بيساعد الفريقين يكتشفوا المشاكل بدري، ويقللوا الـ Manual Work، ويحسّنوا الـ Reliability.

    4. DevOps Is a Way of Working

    من الأخطاء الشائعة إن الناس تتعامل مع الـ DevOps باعتباره اسم Tool معينة أو Job Title وخلاص.

    لكن الـ DevOps أوسع من كده؛ لأنه بيعتمد على مجموعة أفكار وممارسات بتكمّل بعضها.

    flowchart TB
        ROOT(["DevOps"])
    
        ROOT --> CULTURE("Culture and Collaboration")
        ROOT --> PRACTICES("Engineering Practices")
        ROOT --> AUTOMATION("Automation")
        ROOT --> FEEDBACK("Continuous Feedback")
    
        CULTURE --> SHARED("Shared Responsibility")
        PRACTICES --> QUALITY("Consistent Quality")
        AUTOMATION --> REPEAT("Repeatable Processes")
        FEEDBACK --> IMPROVE("Continuous Improvement")
    
        classDef root fill:#e6d8c5,stroke:#927453,color:#493626,stroke-width:2px
        classDef concept fill:#efe2d0,stroke:#9c7956,color:#493626,stroke-width:1.5px
        classDef outcome fill:#f7f0e6,stroke:#b49a7b,color:#493626,stroke-width:1.5px
    
        class ROOT root
        class CULTURE,PRACTICES,AUTOMATION,FEEDBACK concept
        class SHARED,QUALITY,REPEAT,IMPROVE outcome

    خلينا نفهم كل جزء بسرعة:

    What DevOps Is Built On

    Culture and Collaboration

    الفرق تتشارك المعلومات، وتفهم تأثير قراراتها على باقي مراحل الـ Software Lifecycle، بدل ما كل فريق يشتغل بمعزل عن التاني.

    Culture

    Engineering Practices

    استخدام ممارسات زي Version Control، وTesting، وCode Review، وطرق واضحة لإدارة التغييرات.

    Practices

    Automation

    أتمتة المهام المتكررة، زي الـ Testing والـ Build والـ Deployment، لتقليل الأخطاء اليدوية وتحسين الـ Consistency.

    Automate

    Continuous Feedback

    جمع المعلومات من الـ Tests والـ Monitoring والـ Logs، واستخدامها لتحسين الـ Application وطريقة تشغيلها.

    Feedback

    مثلًا، لو كل Deployment محتاج مجموعة خطوات يدوية، الفريق ممكن يضيّع وقت في تكرار نفس الشغل، أو ينسى خطوة مهمة.

    لكن باستخدام Automation، يقدر الفريق يحوّل الخطوات دي إلى Process واضحة وقابلة للتكرار.

    ولو حصلت مشكلة بعد الـ Deployment، الـ Monitoring والـ Logs بيساعدوا في اكتشافها وفهم سببها، وبعدها الفريق يقدر يحسّن الـ Process نفسها.

    5. DevOps Is Not a Tool

    هتسمع مصطلح DevOps جنب Technologies كتير، زي:

    • Git
    • Docker
    • Kubernetes
    • GitHub Actions
    • Terraform
    • AWS
    • Prometheus
    • Grafana

    كل Tool من دول ممكن يساعد في تنفيذ جزء من الـ DevOps Practices، لكن مفيش Tool واحدة لوحدها تساوي DevOps.

    flowchart TB
        DEVOPS(["DevOps Approach"])
    
        DEVOPS --> COLLAB("Collaboration")
        DEVOPS --> PROCESS("Processes and Practices")
    
        PROCESS --> GIT("Git")
        PROCESS --> CI("GitHub Actions")
        PROCESS --> CONTAINERS("Docker")
        PROCESS --> INFRA("Terraform")
        PROCESS --> PLATFORM("Kubernetes")
        PROCESS --> OBS("Prometheus and Grafana")
    
        classDef root fill:#e6d8c5,stroke:#927453,color:#493626,stroke-width:2px
        classDef concept fill:#efe2d0,stroke:#9c7956,color:#493626,stroke-width:1.5px
        classDef tools fill:#f7f0e6,stroke:#b49a7b,color:#493626,stroke-width:1.5px
    
        class DEVOPS root
        class COLLAB,PROCESS concept
        class GIT,CI,CONTAINERS,INFRA,PLATFORM,OBS tools

    خلينا نوضّح الفرق:

    Role of Each Technology
    Technology دورها في الـ DevOps
    Git إدارة تغييرات الـ Code والتعاون عليه باستخدام Version Control.
    Docker بناء وتشغيل Applications داخل Containers.
    Kubernetes إدارة الـ Containerized Applications على نطاق أكبر.
    GitHub Actions أتمتة Workflows زي Testing وBuild وDeployment.
    Terraform تعريف وإدارة الـ Infrastructure باستخدام Infrastructure as Code.
    AWS توفير Cloud Infrastructure وخدمات لتشغيل الـ Applications.
    Prometheus & Grafana جمع Metrics ومتابعتها وعرضها للمساعدة في فهم حالة الـ Systems.

    The Key Difference

    الـ Tools بتساعدك تنفّذ الشغل، لكن الـ DevOps هو طريقة تنظيم الشغل والتعاون والأتمتة والتحسين المستمر.

    ممكن تستخدم Docker وKubernetes في مشروع، لكن لو الـ Teams لسه بتشتغل في Silos، ومفيش Feedback واضح أو Processes مناسبة، فمجرد استخدام الأدوات مش كفاية لتحقيق أهداف الـ DevOps.

    6. A Simple Mental Model

    أسهل طريقة تفهم بيها الـ DevOps هي إنك تبص للـ Software باعتباره دورة مستمرة، مش مهمة بتنتهي بمجرد ما الـ Code يخلص.

    flowchart LR
        BUILD("Build") --> DELIVER("Deliver")
        DELIVER --> RUN("Run")
        RUN --> OBSERVE("Observe")
        OBSERVE --> LEARN("Learn")
        LEARN --> BUILD
    
        classDef step fill:#efe2d0,stroke:#9c7956,color:#493626,stroke-width:1.5px
    
        class BUILD,DELIVER,RUN,OBSERVE,LEARN step

    خلينا نمشي في الدورة دي:

    1. Build

      نبني الـ Application ونختبر الـ Code.

    2. Deliver

      نجهّز الـ Release ونعمل Deploy للـ Application.

    3. Run

      نشغّل الـ Application داخل الـ Environment المستهدف.

    4. Observe

      نتابع الـ Logs والـ Metrics والـ Application Behavior.

    5. Learn

      نفهم المشاكل والـ Feedback ونستخدمهم لتحسين الـ Software والـ Process.

    بعد كده الدورة بتبدأ من جديد، لكن بناءً على المعلومات اللي اتجمعت من التشغيل الفعلي.

    مش لازم كل مؤسسة تستخدم نفس الـ Tools أو نفس الـ Architecture علشان تطبّق الأفكار دي؛ لأن الاختيارات بتختلف حسب طبيعة الـ Application والـ Infrastructure واحتياجات الفريق.

    المهم هو إن عملية البناء والتسليم والتشغيل والتحسين تكون مترابطة.

    7. What Should You Remember?

    What is DevOps Recap

    01 — Way of Working

    الـ DevOps هو طريقة شغل بتجمع بين People وProcesses وTechnology، مش Tool واحدة.

    Mindset

    02 — Collaboration

    بيقرّب الـ Development والـ Operations وبيقلل العزلة بين الفريقين.

    Teams

    03 — Automation

    بيشجّع أتمتة المهام المتكررة علشان نحسّن الـ Consistency ونقلل الأخطاء اليدوية.

    Automate

    04 — Continuous Feedback

    بيستخدم المعلومات الناتجة من الـ Testing والـ Production علشان يطوّر الـ Software والـ Workflow باستمرار.

    Feedback

    في النهاية، الهدف من الـ DevOps مش مجرد إننا نعمل Deployment أسرع، لكن إننا نحسّن الطريقة اللي الـ Software بيتبني وبيتسلّم وبيشتغل بيها، مع تعاون أفضل بين الفرق وFeedback مستمر يساعدنا نطوّر النتيجة النهائية.

    Was this helpful?

    No

    Thanks for the feedback.

    Offline · Reading cached copy