Monitoring & Observability — 15 Thuật Ngữ Giám Sát Hệ Thống Developer Cần Biết

Hệ thống chạy tốt hay không, bạn phải đo lường được mới biết. Monitoring & Observability là kỹ năng quan trọng giúp bạn phát hiện sự cố sớm, debug nhanh, và giữ service ổn định. Cùng học 15 thuật ngữ quan trọng nhất trong lĩnh vực này nhé! 📊 🔹 Ba trụ cột Observability English IPA Tiếng Việt Example metrics /ˈmɛtrɪks/ số liệu đo lường (CPU, memory, request count) We track metrics like response time and error rate on every endpoint. logs /lɒɡz/ nhật ký hệ thống Check the application logs to find out why the request returned a 500 error. traces /treɪsɪz/ dấu vết request xuyên suốt các service Distributed traces show that the delay is in the payment service, not the API gateway. 🔹 Cảnh báo & Dashboard English IPA Tiếng Việt Example alerting /əˈlɜːrtɪŋ/ cảnh báo tự động khi có bất thường Set up alerting to notify the team when error rate exceeds 5%. dashboard /ˈdæʃbɔːrd/ bảng điều khiển hiển thị số liệu The Grafana dashboard shows real-time CPU and memory usage across all servers. health check /hɛlθ tʃɛk/ kiểm tra tình trạng hoạt động The load balancer pings the /health check endpoint every 30 seconds. 🔹 Cam kết & Chỉ tiêu English IPA Tiếng Việt Example SLA /ˌɛs.ɛl.ˈeɪ/ Service Level Agreement — cam kết mức dịch vụ Our SLA guarantees 99.9% uptime for enterprise customers. SLO /ˌɛs.ɛl.ˈoʊ/ Service Level Objective — mục tiêu nội bộ về chất lượng We set an SLO of 200ms p99 latency for the search API. uptime /ˈʌptaɪm/ thời gian hệ thống hoạt động The service maintained 99.95% uptime last quarter. downtime /ˈdaʊntaɪm/ thời gian hệ thống ngừng hoạt động The scheduled downtime for maintenance is from 2 AM to 4 AM on Sunday. 🔹 Xử lý sự cố English IPA Tiếng Việt Example incident /ˈɪnsɪdənt/ sự cố ảnh hưởng đến service We declared a P1 incident when the payment system went down. on-call /ɒn kɔːl/ trực — sẵn sàng xử lý sự cố I’m on-call this week, so I’ll respond to any production alerts. runbook /ˈrʌnbʊk/ tài liệu hướng dẫn xử lý sự cố Follow the runbook to restart the service and verify it’s healthy. postmortem /poʊstˈmɔːrtəm/ báo cáo phân tích sau sự cố We wrote a postmortem to document the root cause and prevent it from happening again. MTTR /ˌɛm.tiː.tiː.ˈɑːr/ Mean Time To Recovery — thời gian trung bình khôi phục Our goal is to keep MTTR under 30 minutes for critical incidents. 💡 Mẹo ghi nhớ Metrics, Logs, Traces = ba trụ cột observability. Metrics cho biết “có vấn đề gì?”, Logs cho biết “vấn đề xảy ra ở đâu?”, Traces cho biết “request đi qua những service nào và bị chậm ở đâu?”. SLA vs SLO: SLA = cam kết với khách hàng (vi phạm phải đền bù). SLO = mục tiêu nội bộ (thường cao hơn SLA để có “buffer”). Ví dụ: SLA 99.9% nhưng SLO 99.95%. Postmortem nghĩa gốc là “khám nghiệm tử thi” — trong IT là “mổ xẻ” sự cố để tìm nguyên nhân gốc rễ. Không blame ai, chỉ tìm cách cải thiện! 📝 Bài tập Điền từ thích hợp vào chỗ trống: ...

08/02/2023 · 4 phút · 725 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 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

AWS CloudWatch — Thuật Ngữ Monitoring & Logging Bằng Tiếng Anh

“If you can’t measure it, you can’t improve it.” — Monitoring là mắt và tai của hệ thống production. AWS CloudWatch là dịch vụ giám sát trung tâm, và hiểu đúng thuật ngữ tiếng Anh sẽ giúp bạn setup alerting, đọc logs, và debug incident nhanh hơn nhiều. 📚 Bảng Từ Vựng 🔹 Metrics & Alarms English IPA Tiếng Việt Example metric /ˈmetrɪk/ chỉ số (dữ liệu đo lường) The CPU utilization metric shows the instance is running at 85% capacity. alarm /əˈlɑːrm/ cảnh báo (trigger khi metric vượt ngưỡng) Set an alarm to notify the team when API latency exceeds 500ms. composite alarm /kəmˈpɑːzɪt əˈlɑːrm/ cảnh báo tổng hợp (kết hợp nhiều alarm) The composite alarm only fires when both CPU and memory alarms are in ALARM state. anomaly detection /əˈnɑːməli dɪˈtekʃən/ phát hiện bất thường (dựa trên ML) Enable anomaly detection on the request count metric to catch unusual traffic patterns. dashboard /ˈdæʃbɔːrd/ bảng điều khiển (hiển thị metrics trực quan) We created a CloudWatch dashboard showing real-time metrics for all microservices. 🔹 Logs English IPA Tiếng Việt Example log group /lɔːɡ ɡruːp/ nhóm log (tập hợp log streams) Each Lambda function writes to its own log group in CloudWatch. log stream /lɔːɡ striːm/ luồng log (chuỗi sự kiện từ một nguồn) Each container instance creates a separate log stream within the log group. retention /rɪˈtenʃən/ thời gian lưu trữ Set the log retention to 30 days to keep costs under control. insight /ˈɪnsaɪt/ truy vấn log nâng cao (CloudWatch Logs Insights) Use Insights to query error patterns across millions of log events in seconds. 🔹 Filters & Subscriptions English IPA Tiếng Việt Example metric filter /ˈmetrɪk ˈfɪltər/ bộ lọc chỉ số (tạo metric từ log) Create a metric filter to count the number of “ERROR” messages in the application logs. subscription filter /səbˈskrɪpʃən ˈfɪltər/ bộ lọc đăng ký (stream log đến nơi khác) The subscription filter forwards all error logs to the centralized logging platform via Kinesis. 💡 Mẹo Ghi Nhớ Metric → Alarm → Action: Đây là flow cơ bản — metric đo, alarm canh, action phản ứng (gửi SNS, scale, v.v.). Log Group vs Log Stream: Nghĩ như folder và file — log group là folder, mỗi log stream là một file bên trong. Metric Filter = “biến log thành số”: Bạn có hàng triệu dòng log, metric filter đếm pattern cụ thể và biến thành metric để alarm theo dõi. 📝 Bài Tập Điền từ thích hợp vào chỗ trống: ...

23/01/2023 · 3 phút · 579 từ · Cuong TQ