0Pricing
Serverless AWS Lambda Development · درس

تسعير الخدمات عديمة الخوادم والمستوى المجاني

افهم آلية فوترة AWS Lambda وما يُحتسب ضمن التكلفة، وكيف يتيح لك المستوى المجاني السخي الإنشاء والتجربة بتكلفة شبه معدومة.

تسعير الخدمات عديمة الخوادم والمستوى المجاني درس مجاني في Serverless AWS Lambda Development على CoddyKit. هذا هو الدرس 4 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في Serverless AWS Lambda Development، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة Serverless AWS Lambda Development 4 دروس في المجموع.

بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.

Pay Only for What You Use

With serverless you pay per request and per compute time, never for idle servers. When nobody calls your function, you pay nothing.

The Two Cost Components

Lambda cost has two parts: Requests (a flat price per million invocations) and Duration (billed per millisecond, scaled by memory).

GB-Seconds Explained

Duration uses GB-seconds: memory in GB times run time in seconds. More memory or longer runs cost more. Here is a quick estimator.

def estimate_gb_seconds(memory_mb, duration_ms):
    memory_gb = memory_mb / 1024.0
    duration_s = duration_ms / 1000.0
    return memory_gb * duration_s

print(estimate_gb_seconds(512, 200))

The Free Tier

The Lambda free tier gives 1 million requests and 400,000 GB-seconds every month — and it never expires after 12 months.

A Tiny Function is Nearly Free

A 128 MB function running 100 ms can serve millions of requests inside the free tier, making Lambda perfect for hobby projects and prototypes.

Memory Affects Cost and Speed

More memory also adds CPU, so sometimes more memory finishes faster and lowers total GB-seconds and cost. Always test — never assume.

Idle Costs Nothing

Unlike an always-on EC2 box, a deployed Lambda nobody calls costs zero compute. You only pay to store the code.

Watch the Hidden Costs

Lambda is cheap, but it triggers paid services: API Gateway requests, CloudWatch Logs storage, and data transfer all add to the bill.

Estimate Before You Build

Use the AWS Pricing Calculator to model monthly cost from invocations, average duration, and memory. Estimating early avoids surprises.

Set Billing Alarms

Set a billing alarm in CloudWatch or AWS Budgets so you get notified the moment spending crosses a threshold you choose.

Compare to Servers

For spiky or low-volume work, serverless usually beats an idle server. For steady, very high constant load, a reserved server can be cheaper.

Quick Check

Check your billing understanding.

Recap

Recap: Lambda costs per-request plus GB-seconds, has a big always-on free tier, trades memory for speed, and rewards estimating and alarms.

الأسئلة الشائعة

هل درس «تسعير الخدمات عديمة الخوادم والمستوى المجاني» مجاني؟

نعم — نص درس «تسعير الخدمات عديمة الخوادم والمستوى المجاني» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة Serverless AWS Lambda Development، انتقل إلى CoddyKit PRO. تتضمن دورة Serverless AWS Lambda Development 4 دروس في المجموع.

ماذا ستتعلم في «تسعير الخدمات عديمة الخوادم والمستوى المجاني»؟

افهم آلية فوترة AWS Lambda وما يُحتسب ضمن التكلفة، وكيف يتيح لك المستوى المجاني السخي الإنشاء والتجربة بتكلفة شبه معدومة. تتمرن على Serverless AWS Lambda Development مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.

هل أحتاج إلى خبرة سابقة لأبدأ Serverless AWS Lambda Development؟

لا تُشترط خبرة سابقة. Serverless AWS Lambda Development على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 4 من أصل 4.

كم من الوقت يستغرق درس «تسعير الخدمات عديمة الخوادم والمستوى المجاني»؟

معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.

هل يمكنني كتابة وتشغيل أكواد في درس Serverless AWS Lambda Development هذا؟

نعم. كل درس في Serverless AWS Lambda Development يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.

جميع الدروس في هذه الدورة

  1. ما هي الحوسبة عديمة الخوادم؟
  2. البدء باستخدام AWS Lambda
  3. دالة Lambda الأولى
  4. تسعير الخدمات عديمة الخوادم والمستوى المجاني
← العودة إلى Serverless AWS Lambda Development