Từ Vựng Linux & Terminal — Thuật Ngữ Dòng Lệnh Cho Developer

Dù bạn là backend developer, DevOps engineer hay chỉ đơn giản là muốn deploy app lên server, bạn sẽ cần làm việc với Linux terminal. Hiểu rõ thuật ngữ tiếng Anh sẽ giúp bạn đọc man page, Stack Overflow và giao tiếp với team hiệu quả hơn. Let’s go! 🐧 🔹 Môi trường Terminal English IPA Tiếng Việt Example shell /ʃɛl/ trình thông dịch lệnh Bash is the default shell on most Linux distributions. terminal /ˈtɜːrmɪnəl/ cửa sổ dòng lệnh Open a terminal window and navigate to the project directory. command /kəˈmænd/ lệnh Run the ls command to list all files in the current directory. flag /flæɡ/ cờ (tùy chọn của lệnh) Add the -a flag to show hidden files when listing directory contents. alias /ˈeɪliəs/ bí danh (tên tắt cho lệnh) Create an alias alias ll='ls -la' so you don’t have to type the full command. 🔹 Luồng dữ liệu English IPA Tiếng Việt Example pipe /paɪp/ ống dẫn (nối output lệnh này sang lệnh khác) Use a pipe to send the output of cat into grep for filtering. redirect /ˌriːdəˈrɛkt/ chuyển hướng (ghi output ra file) Redirect the error output to a log file using 2> error.log. grep /ɡrɛp/ tìm kiếm văn bản Use grep to search for the error message across all log files. 🔹 Hệ thống & Quyền English IPA Tiếng Việt Example permission /pərˈmɪʃən/ quyền truy cập (read, write, execute) Change the file permission to 755 so the script can be executed. process /ˈprɒsɛs/ tiến trình (chương trình đang chạy) Use ps aux to list all running processes on the server. daemon /ˈdiːmən/ tiến trình nền (chạy liên tục) Nginx runs as a daemon that listens for incoming HTTP requests. sudo /ˈsuːduː/ chạy với quyền root Use sudo to install packages because it requires administrator privileges. environment variable /ɪnˈvaɪrənmənt ˈvɛriəbl/ biến môi trường Set the DATABASE_URL environment variable in the .env file. 🔹 Tự động hóa & Kết nối English IPA Tiếng Việt Example cron /krɒn/ cron (bộ lập lịch chạy tự động) Set up a cron job to run the database backup script every night at 2 AM. SSH /ɛs.ɛs.eɪtʃ/ kết nối bảo mật từ xa Use SSH to connect to the production server and check the application logs. 💡 Mẹo ghi nhớ Pipe (|) = ống nước nối hai vòi lại. Output của lệnh trước chảy thẳng vào input của lệnh sau: cat log.txt | grep "error" | wc -l. Daemon phát âm là “dee-mon” 👹, không phải “day-mon”. Đây là các process chạy ngầm — giống nhân viên trực ca đêm, luôn sẵn sàng phục vụ. sudo = “Super User DO” — làm gì đó với quyền super user (root). Cẩn thận khi dùng! 📝 Bài tập Điền từ thích hợp vào chỗ trống: ...

03/02/2023 · 3 phút · 632 từ · Cuong TQ

Từ Vựng Kubernetes — Thuật Ngữ K8s Dành Cho Developer

Kubernetes (K8s) là nền tảng orchestration container phổ biến nhất hiện nay. Thuật ngữ K8s khá nhiều và đặc thù, nên nếu bạn mới bắt đầu sẽ thấy hơi “ngợp”. Bài này giúp bạn nắm rõ 14 thuật ngữ cốt lõi để đọc docs và làm việc với K8s tự tin hơn. ☸️ 🔹 Đơn vị cơ bản English IPA Tiếng Việt Example pod /pɒd/ pod (đơn vị nhỏ nhất trong K8s) Each pod runs one or more containers that share the same network namespace. node /noʊd/ node (máy chủ vật lý hoặc ảo) The scheduler assigns pods to a node based on available resources. namespace /ˈneɪmspeɪs/ không gian tên (phân chia tài nguyên) Create a separate namespace for each team to isolate their resources. manifest /ˈmænɪfɛst/ tệp khai báo (YAML config) Apply the manifest file to create the deployment using kubectl apply -f. 🔹 Workload & Scaling English IPA Tiếng Việt Example deployment /dɪˈplɔɪmənt/ triển khai (quản lý pod) The deployment ensures three replicas of the API server are always running. replica set /ˈrɛplɪkə sɛt/ bộ bản sao (duy trì số lượng pod) The replica set automatically creates a new pod if one crashes. horizontal pod autoscaler /ˌhɒrɪˈzɒntl pɒd ˌɔːtoʊˈskeɪlər/ bộ tự động mở rộng pod theo chiều ngang (HPA) The horizontal pod autoscaler scales up to 10 pods when CPU exceeds 80%. 🔹 Networking & Config English IPA Tiếng Việt Example service /ˈsɜːrvɪs/ dịch vụ (expose pod ra mạng) Create a service of type LoadBalancer to expose the app to the internet. ingress /ˈɪnɡrɛs/ điểm vào (quản lý traffic HTTP) Configure an ingress rule to route /api requests to the backend service. configmap /kənˈfɪɡmæp/ bản đồ cấu hình (lưu config dạng key-value) Store the database URL in a configmap instead of hardcoding it in the container. secret /ˈsiːkrɪt/ bí mật (lưu thông tin nhạy cảm) Put the API key in a Kubernetes secret and mount it as an environment variable. persistent volume /pərˈsɪstənt ˈvɒljuːm/ ổ đĩa bền vững (lưu trữ lâu dài) Attach a persistent volume to the database pod so data survives restarts. 🔹 Công cụ quản lý English IPA Tiếng Việt Example helm /hɛlm/ helm (trình quản lý package K8s) Use Helm charts to deploy complex applications with a single command. kubectl /ˌkuːb ˈkʌtl/ kubectl (CLI quản lý K8s) Run **kubectl** get pods to list all running pods in the current namespace. 💡 Mẹo ghi nhớ Pod giống như một “căn phòng” chứa 1 hoặc nhiều container cùng chia sẻ mạng và storage. Hầu hết pod chỉ chạy 1 container. Service vs Ingress: Service expose pod trong cluster (internal), Ingress expose ra ngoài internet (external) với routing rules. ConfigMap vs Secret: Cùng lưu config, nhưng Secret được mã hóa base64 và có cơ chế bảo mật riêng — dùng cho password, API key, certificate. 📝 Bài tập Điền từ thích hợp vào chỗ trống: ...

02/02/2023 · 4 phút · 657 từ · Cuong TQ

Từ Vựng CI/CD Pipeline — Thuật Ngữ Tích Hợp & Triển Khai Liên Tục

CI/CD (Continuous Integration / Continuous Delivery) là xương sống của quy trình phát triển phần mềm hiện đại. Nếu bạn muốn đọc hiểu Jenkins, GitHub Actions hay GitLab CI config, thì cần nắm vững các thuật ngữ dưới đây. Cùng học nào! ⚡ 🔹 Quy trình cơ bản English IPA Tiếng Việt Example pipeline /ˈpaɪplaɪn/ đường ống (chuỗi bước tự động) The pipeline runs unit tests, builds the Docker image, and deploys to staging automatically. build /bɪld/ biên dịch / đóng gói The build step compiles the source code and generates a deployable artifact. test /tɛst/ kiểm thử All test stages must pass before the code can be merged into the main branch. deploy /dɪˈplɔɪ/ triển khai We deploy to the staging environment first, then promote to production after QA approval. artifact /ˈɑːrtɪfækt/ sản phẩm đầu ra (file build) The artifact from the build step is a JAR file stored in our Nexus repository. 🔹 Điều khiển Pipeline English IPA Tiếng Việt Example stage /steɪdʒ/ giai đoạn Our pipeline has three stages: build, test, and deploy. trigger /ˈtrɪɡər/ kích hoạt (sự kiện bắt đầu pipeline) A push to the main branch will trigger the deployment pipeline automatically. webhook /ˈwɛbhʊk/ hook web (callback URL tự động) Configure a webhook on GitHub to notify Jenkins whenever a new commit is pushed. environment /ɪnˈvaɪrənmənt/ môi trường (dev, staging, production) Deploy to the staging environment first to catch issues before production. 🔹 Chiến lược triển khai English IPA Tiếng Việt Example rollback /ˈroʊlbæk/ quay lại phiên bản trước We had to rollback to v1.3.2 because the new release caused a critical error. blue-green /bluː ɡriːn/ triển khai xanh-xanh (hai môi trường song song) With blue-green deployment, we switch traffic to the new version instantly. canary /kəˈnɛri/ triển khai canary (phát hành từ từ) Roll out the update as a canary deployment to 5% of users before going full. feature flag /ˈfiːtʃər flæɡ/ cờ tính năng (bật/tắt feature) Use a feature flag to enable the new checkout flow only for beta users. 💡 Mẹo ghi nhớ Pipeline = dây chuyền sản xuất trong nhà máy. Code đi qua từng trạm (stage): build → test → deploy. Blue-Green vs Canary: Blue-green = chuyển 100% traffic sang version mới cùng lúc (có thể switch back). Canary = chuyển từ từ (5% → 20% → 100%). Feature Flag = công tắc đèn 💡. Bật = user thấy feature mới, tắt = user dùng version cũ. Không cần deploy lại! 📝 Bài tập Điền từ thích hợp vào chỗ trống: ...

01/02/2023 · 3 phút · 602 từ · Cuong TQ

Từ Vựng Git — Thuật Ngữ Version Control Cho Developer

Git là công cụ quản lý mã nguồn mà developer nào cũng phải dùng. Nhưng nhiều bạn chỉ biết git add, git commit, git push mà chưa thực sự hiểu rõ nghĩa các thuật ngữ đằng sau. Bài này sẽ giúp bạn hiểu sâu từ vựng Git để tự tin hơn khi làm việc với team quốc tế. 💪 🔹 Nền tảng Git English IPA Tiếng Việt Example repository /rɪˈpɒzɪtɔːri/ kho lưu trữ mã nguồn Clone the repository and check out the develop branch to start working. commit /kəˈmɪt/ lưu thay đổi (một snapshot) Each commit should represent a single logical change with a clear message. branch /brɑːntʃ/ nhánh (phiên bản phát triển song song) Create a feature branch from main before making any changes. HEAD /hɛd/ con trỏ (vị trí hiện tại trong lịch sử) HEAD points to the latest commit on the current branch. remote /rɪˈmoʊt/ kho từ xa Add a new remote to push your code to both GitHub and GitLab. origin /ˈɒrɪdʒɪn/ nguồn gốc (remote mặc định) By default, git push sends your commits to origin. 🔹 Thao tác nhánh English IPA Tiếng Việt Example merge /mɜːrdʒ/ hợp nhất (gộp nhánh) Merge the feature branch into main after the code review is approved. rebase /riːˈbeɪs/ tái cơ sở (đặt lại gốc nhánh) Rebase your branch on top of main to keep a linear commit history. cherry-pick /ˈtʃeri pɪk/ chọn lọc commit We need to cherry-pick that hotfix commit into the release branch. conflict /ˈkɒnflɪkt/ xung đột (khi hai nhánh sửa cùng file) Resolve the merge conflict in app.js before pushing your changes. stash /stæʃ/ cất tạm (lưu thay đổi chưa commit) Stash your changes before switching branches so you don’t lose any work. 🔹 Collaboration & Review English IPA Tiếng Việt Example pull request /pʊl rɪˈkwɛst/ yêu cầu gộp code (PR) Open a pull request and assign two reviewers before merging. tag /tæɡ/ thẻ (đánh dấu phiên bản) Create a tag v2.0.0 to mark the production release. diff /dɪf/ khác biệt (so sánh thay đổi) Review the diff carefully to make sure no debug code is left. blame /bleɪm/ truy vết (xem ai sửa dòng nào) Use git **blame** to find out who introduced this bug and when. 💡 Mẹo ghi nhớ Merge vs Rebase: Merge tạo “nút giao” (merge commit), rebase “xếp lại” commit thành đường thẳng. Team thích clean history → rebase, team thích giữ nguyên lịch sử → merge. Stash = “nhét vào ngăn kéo tạm”. Bạn đang code dở, cần switch branch → stash lại, xong việc thì git stash pop để lấy ra. Blame nghe “đổ lỗi” nhưng thực ra là công cụ truy vết cực kỳ hữu ích — ai sửa dòng này, khi nào, trong commit nào. 📝 Bài tập Điền từ thích hợp vào chỗ trống: ...

31/01/2023 · 3 phút · 631 từ · Cuong TQ

Từ Vựng Docker — Thuật Ngữ Container Mà Developer Cần Biết

Docker đã trở thành công cụ không thể thiếu trong workflow của developer hiện đại. Dù bạn đang build microservices hay chỉ muốn setup môi trường dev nhanh gọn, việc hiểu rõ thuật ngữ Docker bằng tiếng Anh sẽ giúp bạn đọc docs, communicate với team quốc tế tự tin hơn rất nhiều. Cùng tìm hiểu nhé! 🐳 🔹 Khái niệm cơ bản English IPA Tiếng Việt Example image /ˈɪmɪdʒ/ ảnh (bản mẫu chỉ đọc) We need to pull the latest image from Docker Hub before deploying. container /kənˈteɪnər/ container (thể hiện đang chạy của image) The container crashed because it ran out of memory. layer /ˈleɪər/ lớp (tầng trong image) Each instruction in a Dockerfile creates a new layer in the image. tag /tæɡ/ thẻ (nhãn phiên bản) Always use a specific tag like v1.2.3 instead of latest in production. 🔹 Lưu trữ & Mạng English IPA Tiếng Việt Example volume /ˈvɒljuːm/ ổ đĩa ảo (lưu trữ persistent) Mount a volume to persist database data between container restarts. network /ˈnetwɜːrk/ mạng (kết nối giữa các container) Create a custom network so the API container can talk to the database container. port mapping /pɔːrt ˈmæpɪŋ/ ánh xạ cổng Use port mapping -p 8080:80 to expose the container’s port 80 on the host’s port 8080. 🔹 Dockerfile & Build English IPA Tiếng Việt Example Dockerfile /ˈdɒkərfaɪl/ tệp cấu hình Docker The Dockerfile defines all the steps needed to build our application image. build context /bɪld ˈkɒntekst/ ngữ cảnh build (thư mục gửi đến Docker daemon) Keep the build context small by using a .dockerignore file. entrypoint /ˈentripɔɪnt/ điểm khởi chạy Set the entrypoint to node server.js so the container starts the app automatically. CMD /siː.ɛm.diː/ lệnh mặc định The CMD instruction provides default arguments that can be overridden at runtime. multi-stage build /ˌmʌlti steɪdʒ bɪld/ build nhiều giai đoạn Use a multi-stage build to keep the final image small by discarding build dependencies. 🔹 Registry & Orchestration English IPA Tiếng Việt Example registry /ˈredʒɪstri/ kho lưu trữ image We pushed the image to our private registry on AWS ECR. compose /kəmˈpoʊz/ biên soạn (Docker Compose — công cụ quản lý multi-container) Define all services in a compose file and run them with docker compose up. 💡 Mẹo ghi nhớ Image vs Container: Image giống như class trong OOP, còn container giống như instance — image là bản thiết kế, container là thứ đang chạy thực tế. Entrypoint vs CMD: Entrypoint là “chương trình chính” luôn chạy, CMD là “tham số mặc định” có thể ghi đè. Nhớ: Entry = cửa vào bắt buộc, CMD = command tùy chọn. Layer: Mỗi dòng trong Dockerfile = 1 layer. Gộp các RUN command lại bằng && để giảm số layer → image nhỏ hơn. 📝 Bài tập Điền từ thích hợp vào chỗ trống: ...

30/01/2023 · 4 phút · 642 từ · Cuong TQ

AWS Cost Optimization — Thuật Ngữ Tối Ưu Chi Phí Cloud

Cloud rất tiện nhưng nếu không quản lý tốt, bill AWS có thể “bay” nhanh hơn bạn tưởng. Hiểu các thuật ngữ cost optimization sẽ giúp bạn tiết kiệm đáng kể — và đây cũng là kỹ năng mà mọi công ty đều cần ở developer và DevOps engineer. 🔹 Mô hình mua tài nguyên English IPA Tiếng Việt Example reserved instance /rɪˈzɜːrvd ˈɪnstəns/ máy chủ đặt trước (cam kết dài hạn) We saved 40% by switching production servers to reserved instances. spot instance /spɒt ˈɪnstəns/ máy chủ giá rẻ theo thị trường Use spot instances for batch processing jobs that can handle interruptions. savings plan /ˈseɪvɪŋz plæn/ gói tiết kiệm cam kết sử dụng A savings plan offers flexible discounts across EC2, Lambda, and Fargate. free tier /friː tɪər/ gói miễn phí New AWS accounts get 12 months of free tier for many services. 🔹 Giám sát & cảnh báo chi phí English IPA Tiếng Việt Example cost explorer /kɒst ɪkˈsplɔːrər/ công cụ phân tích chi phí Use Cost Explorer to see which service is driving up your monthly bill. budget /ˈbʌdʒɪt/ ngân sách Set a monthly budget of $500 and get notified at 80% usage. billing alarm /ˈbɪlɪŋ əˈlɑːrm/ cảnh báo hóa đơn Create a billing alarm to alert the team when costs exceed $1000. 🔹 Chiến lược tối ưu English IPA Tiếng Việt Example right-sizing /raɪt ˈsaɪzɪŋ/ chọn đúng kích cỡ tài nguyên Right-sizing analysis showed we could downgrade from m5.xlarge to m5.large. idle resource /ˈaɪdəl ˈriːsɔːrs/ tài nguyên không sử dụng Terminate idle resources like unused EBS volumes and old snapshots. data transfer cost /ˈdeɪtə ˈtrænsfɜːr kɒst/ chi phí truyền dữ liệu Data transfer costs between regions can add up quickly if you’re not careful. tagging /ˈtæɡɪŋ/ gắn nhãn tài nguyên Use consistent tagging to track costs by project and team. cost allocation /kɒst ˌæləˈkeɪʃən/ phân bổ chi phí Enable cost allocation tags to see how much each department spends. 💡 Mẹo ghi nhớ Reserved vs Spot: Reserved = đặt phòng khách sạn trước (rẻ hơn, cam kết), Spot = phòng last-minute (siêu rẻ nhưng có thể bị hủy bất cứ lúc nào). Right-sizing = “mặc đúng size áo” — không mua áo XL khi chỉ cần size M. Tagging = “dán nhãn” — giống việc dán nhãn đồ trong tủ lạnh để biết của ai, tốn bao nhiêu. 📝 Bài tập Điền từ thích hợp vào chỗ trống: ...

29/01/2023 · 3 phút · 592 từ · Cuong TQ

Cloud Computing Cơ Bản — Thuật Ngữ Đám Mây Cho Developer

Dù bạn dùng AWS, Azure hay GCP, các thuật ngữ cloud computing cơ bản đều giống nhau. Đây là những từ vựng nền tảng mà mọi developer cần biết trước khi đi sâu vào bất kỳ cloud platform nào. Nắm vững chúng sẽ giúp bạn đọc tài liệu, phỏng vấn và thảo luận kiến trúc tự tin hơn rất nhiều. 🔹 Mô hình dịch vụ Cloud English IPA Tiếng Việt Example IaaS (Infrastructure as a Service) /aɪæs/ hạ tầng dưới dạng dịch vụ EC2 is an IaaS product — you manage the OS and everything above it. PaaS (Platform as a Service) /pæs/ nền tảng dưới dạng dịch vụ Heroku is a PaaS — just push your code and it handles the rest. SaaS (Software as a Service) /sæs/ phần mềm dưới dạng dịch vụ Gmail and Slack are examples of SaaS applications. 🔹 Mô hình triển khai English IPA Tiếng Việt Example public cloud /ˈpʌblɪk klaʊd/ đám mây công cộng AWS and Azure are the largest public cloud providers. private cloud /ˈpraɪvɪt klaʊd/ đám mây riêng The bank runs a private cloud to meet strict compliance requirements. hybrid cloud /ˈhaɪbrɪd klaʊd/ đám mây kết hợp Our hybrid cloud setup keeps sensitive data on-premises while running web apps on AWS. multi-tenant /ˈmʌlti ˈtɛnənt/ nhiều khách thuê chung hạ tầng SaaS applications are typically multi-tenant — all customers share the same infrastructure. on-premises /ɒn ˈprɛmɪsɪz/ tại chỗ, máy chủ nội bộ We are migrating from on-premises servers to the cloud. 🔹 Đặc tính & lợi ích Cloud English IPA Tiếng Việt Example elasticity /ˌɪlæˈstɪsɪti/ khả năng co giãn tự động Cloud elasticity means resources scale up during peak hours and scale down at night. scalability /ˌskeɪləˈbɪləti/ khả năng mở rộng The system was designed for scalability — it can handle 10x the current load. migration /maɪˈɡreɪʃən/ di chuyển hệ thống The cloud migration project took six months to complete. pay-as-you-go /peɪ æz juː ɡoʊ/ trả theo mức sử dụng The pay-as-you-go model means you only pay for what you actually use. region /ˈriːdʒən/ vùng trung tâm dữ liệu Deploy your app in the Tokyo region for lowest latency to Japanese users. edge location /ɛdʒ loʊˈkeɪʃən/ điểm phân phối biên CloudFront caches content at edge locations close to end users. 💡 Mẹo ghi nhớ IaaS / PaaS / SaaS — tưởng tượng như pizza: IaaS = bạn tự nướng (chỉ có nguyên liệu), PaaS = mua pizza đông lạnh (chỉ cần nướng), SaaS = gọi ship pizza (chỉ cần ăn). Elasticity vs Scalability: Elasticity = tự động co giãn (như dây thun), Scalability = khả năng mở rộng khi cần (như thêm tầng cho tòa nhà). On-premises — lưu ý chính tả: là “premises” (có s), KHÔNG phải “on-premise”. 📝 Bài tập Điền từ thích hợp vào chỗ trống: ...

28/01/2023 · 4 phút · 651 từ · Cuong TQ

AWS CodePipeline — Thuật Ngữ CI/CD Trên AWS Cho Developer

CI/CD là xương sống của quy trình phát triển phần mềm hiện đại. AWS cung cấp bộ công cụ CodePipeline, CodeBuild, CodeDeploy để xây dựng pipeline hoàn chỉnh ngay trên cloud. Nắm vững thuật ngữ CI/CD trên AWS sẽ giúp bạn setup và troubleshoot pipeline nhanh hơn. 🔹 Cấu trúc Pipeline English IPA Tiếng Việt Example pipeline /ˈpaɪplaɪn/ quy trình tự động hóa Our pipeline automatically builds and deploys code on every push. source stage /sɔːrs steɪdʒ/ giai đoạn lấy mã nguồn The source stage pulls the latest code from the GitHub repository. build stage /bɪld steɪdʒ/ giai đoạn biên dịch The build stage compiles the code and runs unit tests. deploy stage /dɪˈplɔɪ steɪdʒ/ giai đoạn triển khai The deploy stage pushes the new version to the production servers. artifact /ˈɑːrtɪfækt/ sản phẩm đầu ra của build The build artifact is stored in S3 before deployment. 🔹 Actions & Controls English IPA Tiếng Việt Example action /ˈækʃən/ hành động trong stage Add a test action between the build and deploy stages. approval /əˈpruːvəl/ phê duyệt thủ công The pipeline pauses at the approval action and waits for a manager to review. webhook /ˈwɛbhʊk/ hook thông báo tự động Configure a webhook so the pipeline triggers on every git push. 🔹 Công cụ Build & Deploy English IPA Tiếng Việt Example CodeBuild /koʊd bɪld/ dịch vụ build của AWS CodeBuild spins up a fresh container for each build. CodeDeploy /koʊd dɪˈplɔɪ/ dịch vụ deploy của AWS Use CodeDeploy to perform rolling deployments across EC2 instances. buildspec /ˈbɪldspɛk/ file cấu hình build Define your build commands in the buildspec.yml file. appspec /ˈæpspɛk/ file cấu hình deploy The appspec.yml file tells CodeDeploy which files to copy and which hooks to run. 💡 Mẹo ghi nhớ Pipeline = đường ống — code chảy qua từng stage như nước chảy qua ống: Source → Build → Deploy. Artifact = “sản phẩm” — giống file zip chứa kết quả build, được truyền từ stage này sang stage khác. buildspec vs appspec: “build” + “spec” = cấu hình cho build, “app” + “spec” = cấu hình cho deploy app. 📝 Bài tập Điền từ thích hợp vào chỗ trống: ...

27/01/2023 · 3 phút · 533 từ · Cuong TQ

AWS DynamoDB — Thuật Ngữ NoSQL Database Cho Developer

DynamoDB là dịch vụ NoSQL database phổ biến nhất trên AWS — nhanh, scalable và fully managed. Tuy nhiên, thuật ngữ của DynamoDB khác khá nhiều so với SQL truyền thống. Nếu bạn chuyển từ MySQL/PostgreSQL sang DynamoDB, bài này sẽ giúp bạn làm quen nhanh với “ngôn ngữ” mới. 🔹 Cấu trúc dữ liệu cơ bản English IPA Tiếng Việt Example table /ˈteɪbəl/ bảng dữ liệu Create a DynamoDB table to store user profiles. item /ˈaɪtəm/ bản ghi, mục dữ liệu Each item in the table represents a single order. attribute /ˈætrɪbjuːt/ thuộc tính, trường dữ liệu The “email” attribute is required for every user item. 🔹 Keys & Indexes English IPA Tiếng Việt Example partition key /pɑːrˈtɪʃən kiː/ khóa phân vùng Use “userId” as the partition key for even data distribution. sort key /sɔːrt kiː/ khóa sắp xếp Add a timestamp as the sort key to query orders by date. GSI (Global Secondary Index) /dʒiː ɛs aɪ/ chỉ mục phụ toàn cục Create a GSI on the email field to query users by email. LSI (Local Secondary Index) /ɛl ɛs aɪ/ chỉ mục phụ cục bộ An LSI lets you query with a different sort key on the same partition. 🔹 Hiệu năng & cấu hình English IPA Tiếng Việt Example throughput /ˈθruːpʊt/ thông lượng Increase the read throughput to handle peak traffic. on-demand /ɒn dɪˈmɑːnd/ theo nhu cầu Switch to on-demand mode so you don’t have to manage capacity manually. TTL (Time to Live) /tiː tiː ɛl/ thời gian sống của bản ghi Set TTL to automatically delete expired session records. stream /striːm/ luồng sự kiện thay đổi Enable DynamoDB streams to trigger a Lambda function on every update. 🔹 Truy vấn dữ liệu English IPA Tiếng Việt Example query /ˈkwɪəri/ truy vấn (theo key) Use query to fetch all orders for a specific user. scan /skæn/ quét toàn bộ bảng Avoid scan on large tables — it reads every single item. projection /prəˈdʒɛkʃən/ chọn thuộc tính trả về Use a projection expression to return only the name and email fields. conditional expression /kənˈdɪʃənəl ɪkˈsprɛʃən/ biểu thức điều kiện Add a conditional expression to update only if the item version matches. 💡 Mẹo ghi nhớ Partition key = “chìa khóa phân loại” — DynamoDB dùng nó để phân tán dữ liệu vào các partition khác nhau. Query vs Scan: Query giống tìm sách theo mục lục (nhanh), Scan giống đọc hết cả thư viện (chậm, tốn tiền). GSI = “Global” vì nó query được across toàn bộ table, còn LSI = “Local” chỉ trong cùng partition. 📝 Bài tập Điền từ thích hợp vào chỗ trống: ...

26/01/2023 · 3 phút · 622 từ · Cuong TQ

AWS SQS & SNS — Thuật Ngữ Message Queue Cho Developer

Khi hệ thống lớn dần, các service cần “nói chuyện” với nhau mà không phải đợi nhau — đó là lúc Message Queue xuất hiện. AWS cung cấp SQS (Simple Queue Service) và SNS (Simple Notification Service) để giải quyết bài toán này. Nắm vững thuật ngữ messaging sẽ giúp bạn đọc docs AWS nhanh hơn và thiết kế hệ thống distributed tốt hơn. 🔹 Khái niệm cơ bản về Queue English IPA Tiếng Việt Example queue /kjuː/ hàng đợi tin nhắn Each microservice reads messages from its own queue. message /ˈmɛsɪdʒ/ tin nhắn, thông điệp The order service sends a message to the payment queue. polling /ˈpoʊlɪŋ/ truy vấn định kỳ The consumer uses long polling to check for new messages. batch /bætʃ/ lô, nhóm xử lý cùng lúc You can receive up to 10 messages in a single batch. 🔹 Cấu hình & xử lý lỗi English IPA Tiếng Việt Example visibility timeout /ˌvɪzəˈbɪləti ˈtaɪmaʊt/ thời gian ẩn tin nhắn Set the visibility timeout to 30 seconds so other consumers don’t pick up the same message. dead-letter queue /dɛd ˈlɛtər kjuː/ hàng đợi chứa tin nhắn lỗi Messages that fail 3 times are moved to the dead-letter queue for investigation. FIFO /ˈfaɪfoʊ/ vào trước ra trước Use a FIFO queue to guarantee the order of transactions. retention period /rɪˈtɛnʃən ˈpɪəriəd/ thời gian lưu giữ tin nhắn The default retention period for SQS messages is 4 days. 🔹 SNS & mô hình Pub/Sub English IPA Tiếng Việt Example topic /ˈtɒpɪk/ chủ đề (kênh phát tin) Create an SNS topic for order notifications. subscription /səbˈskrɪpʃən/ đăng ký nhận tin Add an email subscription to the alert topic. publisher /ˈpʌblɪʃər/ bên phát tin nhắn The API service acts as the publisher for all events. subscriber /səbˈskraɪbər/ bên nhận tin nhắn Each subscriber receives a copy of the published message. fan-out /fæn aʊt/ phân phối tin nhắn đến nhiều nơi Use SNS-to-SQS fan-out to send one event to multiple queues. 💡 Mẹo ghi nhớ Queue đọc giống “cue” — tưởng tượng tin nhắn xếp hàng chờ giống người xếp hàng mua vé. FIFO = First In, First Out — giống queue ở siêu thị, ai đến trước thì được phục vụ trước. Fan-out = quạt tỏa ra — một tin nhắn “tỏa” đến nhiều subscribers, giống quạt thổi gió ra nhiều hướng. 📝 Bài tập Điền từ thích hợp vào chỗ trống: ...

25/01/2023 · 3 phút · 584 từ · Cuong TQ