Backend Development — 14 Thuật Ngữ Lập Trình Server Developer Phải Biết

Backend là “bộ não” phía sau mọi ứng dụng — xử lý logic, lưu trữ dữ liệu, xác thực người dùng. Dù bạn viết Java, Python, Node.js hay Go, các thuật ngữ backend đều chung. Hiểu chúng bằng tiếng Anh giúp bạn đọc docs nhanh hơn và communicate hiệu quả trong team quốc tế. Let’s go! ⚙️ 🔹 API & Middleware English IPA Tiếng Việt Example API /ˌeɪ.piː.ˈaɪ/ giao diện lập trình ứng dụng — cầu nối giữa các hệ thống The mobile app calls the REST API to fetch the user’s order history. middleware /ˈmɪdəlˌwɛr/ lớp xử lý trung gian giữa request và response Add a logging middleware to record every incoming request. rate limiting /reɪt ˈlɪmɪtɪŋ/ giới hạn số request trong khoảng thời gian We set rate limiting to 100 requests per minute to prevent API abuse. error handling /ˈɛrər ˈhændlɪŋ/ xử lý lỗi — bắt và phản hồi lỗi phù hợp Proper error handling returns a 404 status instead of crashing the server. 🔹 Database & ORM English IPA Tiếng Việt Example ORM /ˌoʊ.ɑːr.ˈɛm/ Object-Relational Mapping — ánh xạ object sang bảng DB Using an ORM like Sequelize lets you write queries in JavaScript instead of raw SQL. migration /maɪˈɡreɪʃən/ script thay đổi cấu trúc database có kiểm soát Run the migration to add the email column to the users table. caching /ˈkæʃɪŋ/ lưu tạm dữ liệu để truy xuất nhanh hơn We use Redis for caching frequently accessed product data. 🔹 Authentication & Session English IPA Tiếng Việt Example authentication /ɔːˌθɛntɪˈkeɪʃən/ xác thực — chứng minh bạn là ai The authentication flow verifies the user’s email and password before granting access. authorization /ˌɔːθərɪˈzeɪʃən/ phân quyền — xác định bạn được làm gì After authorization check, only admin users can delete other accounts. session /ˈsɛʃən/ phiên làm việc — lưu trạng thái đăng nhập The server creates a session after login and stores it in Redis. 🔹 Architecture Patterns English IPA Tiếng Việt Example queue /kjuː/ hàng đợi — xử lý task theo thứ tự Push the email sending job to the queue so it runs in the background. worker /ˈwɜːrkər/ tiến trình chạy nền xử lý task từ queue The background worker processes image resizing jobs from the queue. logging /ˈlɒɡɪŋ/ ghi log — lưu lại hoạt động hệ thống Enable structured logging to make it easier to search for errors in production. dependency injection /dɪˈpɛndənsi ɪnˈdʒɛkʃən/ tiêm phụ thuộc — truyền dependency từ bên ngoài vào Use dependency injection to pass the database service into the controller for easier testing. 💡 Mẹo ghi nhớ Authentication vs Authorization: Authentication = “Bạn là ai?” (kiểm tra CMND). Authorization = “Bạn được vào đâu?” (kiểm tra vé). Luôn authen trước, author sau. Queue + Worker = nhà hàng: Queue = danh sách order. Worker = đầu bếp. Nhiều order thì thêm worker (scale), không cần khách đứng chờ. ORM — nhớ: Object ↔ Row Mapping. Mỗi object trong code = một row trong database. Không cần viết SQL tay! 📝 Bài tập Điền từ thích hợp vào chỗ trống: ...

10/02/2023 · 4 phút · 691 từ · Cuong TQ

API & REST — 15 Thuật Ngữ Giao Tiếp Hệ Thống Developer Cần Nắm

Trong thế giới microservices và web hiện đại, API là cách các hệ thống “nói chuyện” với nhau. Dù bạn build frontend gọi API hay backend expose API, hiểu thuật ngữ bằng tiếng Anh là bắt buộc. Cùng học 15 từ vựng quan trọng nhất nhé! 🔌 🔹 Cơ bản về Request/Response English IPA Tiếng Việt Example endpoint /ˈɛndpɔɪnt/ điểm truy cập API The /api/users endpoint returns a list of all registered users. request /rɪˈkwɛst/ yêu cầu gửi đến server The client sends a GET request to fetch the user profile. response /rɪˈspɒns/ phản hồi từ server The response includes a 200 status code and the JSON data. method /ˈmɛθəd/ phương thức HTTP (GET, POST, PUT, DELETE) Use the POST method to create a new resource on the server. 🔹 Cấu trúc dữ liệu truyền tải English IPA Tiếng Việt Example header /ˈhɛdər/ phần đầu request/response chứa metadata Set the Authorization header to include the Bearer token. body /ˈbɒdi/ phần thân chứa dữ liệu chính The POST request body contains the user’s name and email in JSON format. payload /ˈpeɪloʊd/ dữ liệu chính được truyền đi Keep the payload small to reduce response time for mobile clients. middleware /ˈmɪdəlwɛr/ lớp xử lý trung gian The authentication middleware checks the token before reaching the controller. 🔹 Bảo mật & Kiểm soát English IPA Tiếng Việt Example authentication /ɔːˌθɛntɪˈkeɪʃən/ xác thực danh tính The API requires authentication via an API key or OAuth token. rate limiting /reɪt ˈlɪmɪtɪŋ/ giới hạn số request trong thời gian nhất định We set rate limiting to 100 requests per minute per user to prevent abuse. pagination /ˌpædʒɪˈneɪʃən/ phân trang kết quả Use pagination with page and limit params to avoid returning 10,000 rows at once. versioning /ˈvɜːrʒənɪŋ/ quản lý phiên bản API We use URL-based versioning like /api/v2/users to maintain backward compatibility. 🔹 Mở rộng & Tích hợp English IPA Tiếng Việt Example webhook /ˈwɛbhʊk/ callback URL nhận thông báo tự động Stripe sends a webhook to our server whenever a payment is completed. GraphQL /ɡræf.kjuː.ˈɛl/ ngôn ngữ truy vấn API linh hoạt With GraphQL, the client can request exactly the fields it needs. SDK /ˌɛs.diː.ˈkeɪ/ Software Development Kit — bộ công cụ phát triển Install the AWS SDK to interact with S3 and DynamoDB from your Node.js app. 💡 Mẹo ghi nhớ Endpoint nghĩ như địa chỉ nhà — mỗi endpoint là một “địa chỉ” cụ thể trên server mà bạn gửi request đến. Header vs Body: Header = thông tin trên bao thư (người gửi, loại thư). Body = nội dung bên trong thư. Header mang metadata, body mang data thật. Webhook vs API call: API call = bạn gọi điện hỏi “có gì mới không?”. Webhook = bạn đăng ký nhận thông báo, khi có gì mới thì hệ thống tự gọi cho bạn. Webhook tiết kiệm hơn nhiều! 📝 Bài tập Điền từ thích hợp vào chỗ trống: ...

06/02/2023 · 4 phút · 661 từ · Cuong TQ

AWS Route 53 & API Gateway — Thuật Ngữ DNS & API Bằng Tiếng Anh

Mọi ứng dụng web đều cần hai thứ: DNS (để người dùng tìm thấy bạn) và API (để các service nói chuyện với nhau). AWS cung cấp Route 53 cho DNS và API Gateway cho quản lý API. Nắm vững thuật ngữ tiếng Anh của cả hai sẽ giúp bạn thiết kế và vận hành hệ thống tốt hơn. 📚 Bảng Từ Vựng 🔹 Route 53 — DNS English IPA Tiếng Việt Example hosted zone /ˈhoʊstɪd zoʊn/ vùng lưu trữ DNS (chứa records của domain) Create a hosted zone for your domain to manage all DNS records in Route 53. record set /ˈrekərd set/ bộ bản ghi DNS Add an A record set pointing your domain to the load balancer’s IP address. alias /ˈeɪliəs/ bản ghi alias (trỏ đến tài nguyên AWS) Use an alias record to point the domain to the CloudFront distribution — it’s free and faster. health check /helθ tʃek/ kiểm tra sức khoẻ (endpoint monitoring) Route 53 runs a health check every 30 seconds to verify the primary server is responding. routing policy /ˈruːtɪŋ ˈpɑːləsi/ chính sách định tuyến (cách Route 53 trả lời DNS query) We use a weighted routing policy to send 90% of traffic to the new version and 10% to the old one. 🔹 API Gateway — Quản lý API English IPA Tiếng Việt Example stage /steɪdʒ/ giai đoạn (môi trường deploy API) Deploy the API to the “prod” stage after testing on the “dev” stage. resource /ˈriːsɔːrs/ tài nguyên (đường dẫn URL trong API) Create a new resource at /users to handle user-related API calls. method /ˈmeθəd/ phương thức (GET, POST, PUT, DELETE) Add a GET method to the /users resource to retrieve the user list. authorizer /ˈɔːθəraɪzər/ bộ xác thực (kiểm tra quyền truy cập API) The Lambda authorizer validates the JWT token before forwarding the request. throttling /ˈθrɑːtlɪŋ/ giới hạn tốc độ (rate limiting) Enable throttling to limit each client to 1000 requests per second. usage plan /ˈjuːsɪdʒ plæn/ gói sử dụng (quota + throttle cho API key) Create a usage plan that allows free-tier users 10,000 requests per month. API key /ˌeɪ piː ˈaɪ kiː/ khoá API (định danh client) Each partner receives a unique API key to track their usage and enforce quotas. integration /ˌɪntɪˈɡreɪʃən/ tích hợp (kết nối API method với backend) Set up a Lambda proxy integration so API Gateway forwards the full request to the function. 💡 Mẹo Ghi Nhớ Alias vs CNAME: Cả hai đều trỏ tên miền đến nơi khác, nhưng alias là miễn phí, nhanh hơn, và hoạt động ở zone apex (root domain). Luôn ưu tiên alias cho tài nguyên AWS. Stage = Environment: dev stage, staging stage, prod stage — giống hệt dev/staging/prod environment. Mỗi stage có URL riêng. Throttling giống cổng thu phí cao tốc: Chỉ cho qua N xe/giây. Quá giới hạn → 429 Too Many Requests. 📝 Bài Tập Điền từ thích hợp vào chỗ trống: ...

24/01/2023 · 4 phút · 685 từ · Cuong TQ