KKloud TarusKKloud Tarus
  • Blog
  • Series
  • Đội ngũ
  • Giới thiệu

Blog

Thoughts on engineering, design, and building great products.

SeriesAll postsSQSAPFAPIAPI GatewayARPAWSAdmissionAffinityAggregationAnsibleAppArmorArchitectureAuthenticationAuthorizationAuto Scaling
Đếm Click An Toàn: Idempotency, DLQ và P...
AWSEvent-driven

Đếm Click An Toàn: Idempotency, DLQ và Partial Batch Failure

Biến consumer ghi log ở bài trước thành một aggregator thật. Chèn SQS giữa EventBridge và Lambda để có batch, retry và dead-letter queue, đếm click vào DynamoDB bằng transaction để vừa cộng bộ đếm vừa chống đếm trùng trong một thao tác nguyên tử, và báo lỗi theo từng message để chỉ thử lại cái hỏng. Test thật: gửi trùng sự kiện đếm một lần, sự kiện lỗi rơi vào DLQ.

K
KaiMay 26, 2026
KKloud TarusKKloud Tarus

Khám phá. Xây dựng. Chia sẻ.

  • Blog
  • Đội ngũ
  • Giới thiệu
© 2026 KKloud Tarus. Bảo lưu mọi quyền.