Serverless đang là xu hướng lớn trong cloud computing, và AWS Lambda là service serverless phổ biến nhất. Bạn chỉ cần viết code, không lo quản lý server — nhưng để dùng tốt, bạn cần hiểu đúng các thuật ngữ. Cùng học 14 từ vựng quan trọng nhất nhé! ⚡


🔹 Cấu trúc Function

EnglishIPATiếng ViệtExample
function/ˈfʌŋkʃən/hàm — đơn vị code chạy trên LambdaDeploy the function that processes image thumbnails to production.
handler/ˈhændlər/hàm xử lý chính — entry pointThe handler receives the event object and returns the response.
runtime/ˈrʌntaɪm/môi trường thực thi (Node.js, Python…)We chose the Python 3.11 runtime for our data processing functions.
layer/ˈleɪər/lớp — thư viện dùng chung giữa các functionPackage shared dependencies into a layer to reduce deployment size.

🔹 Kích hoạt & Xử lý

EnglishIPATiếng ViệtExample
trigger/ˈtrɪɡər/sự kiện kích hoạt functionAn S3 upload event is configured as the trigger for the processing function.
event/ɪˈvɛnt/sự kiện — dữ liệu đầu vàoThe event object contains the request body and query parameters.
invocation/ˌɪnvəˈkeɪʃən/lần gọi hàmEach invocation is billed based on execution time and memory used.
payload/ˈpeɪloʊd/dữ liệu gửi kèm khi gọi functionKeep the payload under 6 MB for synchronous invocations.

🔹 Hiệu năng & Giới hạn

EnglishIPATiếng ViệtExample
cold start/koʊld stɑːrt/khởi động lạnh — lần chạy đầu chậmA cold start can add 1-2 seconds of latency to the first request.
concurrency/kənˈkʌrənsi/số lượng thực thi đồng thờiSet reserved concurrency to 100 to prevent the function from consuming all available capacity.
timeout/ˈtaɪmaʊt/thời gian tối đa cho phép chạyIncrease the timeout to 30 seconds for functions that call external APIs.
memory allocation/ˈmɛməri ˌæləˈkeɪʃən/dung lượng bộ nhớ được cấpRaising the memory allocation to 512 MB also increases the CPU power proportionally.

🔹 Xử lý lỗi & Cấu hình

EnglishIPATiếng ViệtExample
dead letter queue/dɛd ˈlɛtər kjuː/hàng đợi cho message xử lý thất bạiRoute failed events to a dead letter queue so we can investigate later.
environment variable/ɪnˈvaɪrənmənt ˈvɛriəbl/biến môi trườngStore the database connection string in an environment variable, not in code.

💡 Mẹo ghi nhớ

  • Cold start = “khởi động xe buổi sáng lạnh” — lần đầu chạy mất thời gian warm up. Các lần sau (warm start) sẽ nhanh hơn nhiều.
  • Handler = “người tiếp nhận” — giống receptionist ở quầy lễ tân, nhận request rồi xử lý.
  • Dead letter queue = “hộp thư chết” — thư không giao được thì bỏ vào đây. Tương tự, event xử lý fail sẽ được chuyển vào DLQ để debug.

📝 Bài tập

Điền từ thích hợp vào chỗ trống:

  1. The function experienced a ___ because it hadn’t been invoked for over 15 minutes.
  2. Set the ___ to 60 seconds to avoid the function being killed during long API calls.
  3. Store API keys in ___ instead of hardcoding them in the source code.
  4. We configured an S3 event as the ___ for the image resizing function.
  5. Failed messages are automatically sent to the ___ for manual review.

✅ Đáp án
  1. cold start — Cold start xảy ra khi Lambda phải khởi tạo container mới cho function
  2. timeout — Timeout mặc định là 3 giây, tối đa có thể set đến 15 phút
  3. environment variables — Environment variables giúp tách cấu hình khỏi code
  4. trigger — Trigger kết nối event source với Lambda function
  5. dead letter queue — DLQ giúp không mất message khi xử lý thất bại

Tổng kết

Lambda là trái tim của serverless architecture trên AWS. Nắm vững 14 thuật ngữ trên giúp bạn hiểu rõ cách Lambda hoạt động, tối ưu hiệu năng, và trao đổi chuyên nghiệp với team. Bài tiếp theo mình sẽ học về AWS RDS — thuật ngữ database trên cloud! 🗄️


📚 Bài viết liên quan


🎯 Kết luận

Hy vọng bài viết giúp bạn tự tin hơn khi sử dụng tiếng Anh trong công việc IT. Hãy bookmark lại để tra cứu khi cần nhé!

👉 Xem thêm bài viết | 📱 App IELTS 6.0