Skip to content

Commit 9dc9e94

Browse files
committed
docs: fix conflicts out of order
1 parent 97211e6 commit 9dc9e94

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/utilities/idempotency.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Unless you're looking to use an [existing table or customize each attribute](#dy
105105

106106
Note that `fn_qualified_name` means the [qualified name for classes and functions](https://peps.python.org/pep-3155/){target="_blank" rel="nofollow"} defined in PEP-3155.
107107

108-
##### IaC examples
108+
##### DynamoDB IaC examples
109109

110110
=== "AWS Serverless Application Model (SAM) example"
111111

@@ -134,9 +134,9 @@ Note that `fn_qualified_name` means the [qualified name for classes and function
134134

135135
#### Redis cluster
136136

137-
**TODO**: Experiment bringing upfront Redis even at the cost of readability, as setup and usage are disconnected today causing further harm.
137+
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

139-
##### Constraints
139+
In both services and self-hosting Redis, you'll need to configure [VPC access](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html){target="_blank"} to your AWS Lambda.
140140

141141
##### Redis IaC examples
142142

@@ -356,7 +356,7 @@ By default, we protect against [concurrent executions](#handling-concurrent-exec
356356

357357
To prevent extended failures, use **`register_lambda_context`** function from your idempotency config to calculate and include the remaining invocation time in your idempotency record.
358358

359-
```python title="working_with_lambda_timeout.py" hl_lines="11 20"
359+
```python title="working_with_lambda_timeout.py" hl_lines="14 23"
360360
--8<-- "examples/idempotency/src/working_with_lambda_timeout.py"
361361
```
362362

@@ -384,7 +384,7 @@ If an exception is handled or raised **outside** your decorated function, then i
384384

385385
This persistence layer is built-in, allowing you to use an existing DynamoDB table or create a new one dedicated to idempotency state (recommended).
386386

387-
```python title="customize_persistence_layer.py" hl_lines="7-15"
387+
```python title="customize_persistence_layer.py" hl_lines="10-18"
388388
--8<-- "examples/idempotency/src/customize_persistence_layer.py"
389389
```
390390

@@ -441,12 +441,12 @@ For simple setups, initialize `RedisCachePersistenceLayer` with your cluster end
441441
For security, we enforce SSL connections by default; to disable it, set `ssl=False`.
442442

443443
=== "Redis quick start"
444-
```python title="getting_started_with_idempotency_redis_config.py" hl_lines="7-9 12 26"
444+
```python title="getting_started_with_idempotency_redis_config.py" hl_lines="8-10 14 27"
445445
--8<-- "examples/idempotency/src/getting_started_with_idempotency_redis_config.py"
446446
```
447447

448448
=== "Using an existing Redis client"
449-
```python title="getting_started_with_idempotency_redis_client.py" hl_lines="4 9-11 14 22 36"
449+
```python title="getting_started_with_idempotency_redis_client.py" hl_lines="5 10-11 16 24 38"
450450
--8<-- "examples/idempotency/src/getting_started_with_idempotency_redis_client.py"
451451
```
452452

@@ -504,7 +504,7 @@ You can customize the attribute names during initialization:
504504
| **data_attr** | | `data` | Stores results of successfully executed Lambda handlers |
505505
| **validation_key_attr** | | `validation` | Hashed representation of the parts of the event used for validation |
506506

507-
```python title="customize_persistence_layer_redis.py" hl_lines="9-16"
507+
```python title="customize_persistence_layer_redis.py" hl_lines="15-18"
508508
--8<-- "examples/idempotency/src/customize_persistence_layer_redis.py"
509509
```
510510

0 commit comments

Comments
 (0)