よく訓練されたアップル信者、都元です。先日、DynamoDBにおけるスループット超過対策というエントリにて、DynamoDBへの書き込み失敗をSQSでフォローするFallback-Queueingパターン(以下、FQパターン)をご紹介しました。 今回はこのFQパターンを応用して、Amazon RDSのフォローにも一部適用ができることをご紹介します。 RDBとKVS 本エントリでは、リレーショナルデータベース(RDB)やキーバリューストア(KVS)等、データを永続化するシステムを「データストア」と呼ぶことにしましょう。データストアには、次に示すような様々な特徴があったり(なかったり)します。 原子性 (Atomicity) トランザクションに含まれるタスクが全て実行されるか、あるいは全く実行されないことを保証する性質。 整合性 (Consistency) トランザクション開始と終了時にあらか