You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lambdas/delta_backend/README.md
+79Lines changed: 79 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,85 @@ Note: Paths are relative to this directory, `delta_backend`.
40
40
41
41
4. Run `make test` to run unit tests or `make coverage-run`. To see the unit test coverage, run `make coverage-run` first and then `make coverage-report`.
42
42
43
+
## Delta Stream Input Contract
44
+
45
+
This lambda consumes DynamoDB Stream records from `imms-<env>-imms-events` (`NEW_IMAGE`).
46
+
47
+
## Delta table indexing contract
48
+
49
+
For ordering-safe reads and backward compatibility, the delta table uses:
50
+
51
+
- Legacy GSI: `SearchIndex`
52
+
- PK: `Operation`
53
+
- SK: `DateTimeStamp`
54
+
- New GSI: `OperationSequenceIndex`
55
+
- PK: `Operation`
56
+
- SK: `DateTimeStampWithSequence`
57
+
58
+
`DateTimeStamp` is retained for DPS backward compatibility.
59
+
`DateTimeStampWithSequence` is for deterministic ordering of same-second events.
0 commit comments