Skip to content

Commit ea159c9

Browse files
committed
docs(leandro's feedback): Redis anchor name
1 parent fc02e17 commit ea159c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/utilities/idempotency.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ classDiagram
5252

5353
## Getting started
5454

55-
We use Amazon DynamoDB as the default persistence layer in the documentation. If you prefer Redis, you can learn more from [this section](#redis-cluster).
55+
We use Amazon DynamoDB as the default persistence layer in the documentation. If you prefer Redis, you can learn more from [this section](#redis-database).
5656

5757
### IAM Permissions
5858

@@ -80,7 +80,7 @@ To start, you'll need:
8080

8181
---
8282

83-
[Amazon DynamoDB](#dynamodb-table) or [Redis](#redis-cluster)
83+
[Amazon DynamoDB](#dynamodb-table) or [Redis](#redis-database)
8484

8585
* :simple-awslambda:{ .lg .middle } **AWS Lambda function**
8686

@@ -126,13 +126,13 @@ Note that `fn_qualified_name` means the [qualified name for classes and function
126126

127127
##### Limitations
128128

129-
* **DynamoDB restricts [item sizes to 400KB](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html#limits-items){target="_blank"}**. This means that if your annotated function's response must be smaller than 400KB, otherwise your function will fail. Consider [Redis](#redis-cluster) as an alternative.
129+
* **DynamoDB restricts [item sizes to 400KB](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html#limits-items){target="_blank"}**. This means that if your annotated function's response must be smaller than 400KB, otherwise your function will fail. Consider [Redis](#redis-database) as an alternative.
130130

131131
* **Expect 2 WCU per non-idempotent call**. During the first invocation, we use `PutItem` for locking and `UpdateItem` for completion. Consider reviewing [DynamoDB pricing documentation](https://aws.amazon.com/dynamodb/pricing/){target="_blank"} to estimate cost.
132132

133133
* **Old boto3 versions can increase costs**. For cost optimization, we use a conditional `PutItem` to always lock a new idempotency record. If locking fails, it means we already have an idempotency record saving us an additional `GetItem` call. However, this is only supported in boto3 `1.26.194` and higher _([June 30th 2023](https://aws.amazon.com/about-aws/whats-new/2023/06/amazon-dynamodb-cost-failed-conditional-writes/){target="_blank"})_.
134134

135-
#### Redis cluster
135+
#### Redis database
136136

137137
We recommend you start with a Redis compatible management services such as [Amazon ElastiCache for Redis](https://aws.amazon.com/elasticache/redis/){target="_blank"} or [Amazon MemoryDB for Redis](https://aws.amazon.com/memorydb/){target="_blank"}.
138138

0 commit comments

Comments
 (0)