Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .prettierignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .projen/files.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 27 additions & 2 deletions .projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const project = new CdklabsConstructLibrary({
cdkCli,
'@aws-sdk/client-cloudwatch',
'@aws-sdk/client-codeartifact',
'@aws-sdk/client-dynamodb',
'@aws-sdk/client-lambda',
'@aws-sdk/client-s3',
'@aws-sdk/client-sfn',
Expand Down
33 changes: 33 additions & 0 deletions API.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion docs/application-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,14 @@ ConstructHub provides two package source implementations: `NpmJs` and
scheduled to run every `5 minutes`, and stores its state (receipts for the
change entries received, time/sequence checkpoints, and laggy packument
expectations) in a specific object in the S3 bucket used for staging package
tarballs. See [npm-sync-protocol.md](./npm-sync-protocol.md) for the
tarballs.
The package versions it has processed are recorded in a DynamoDB table, so
each version is only processed once.
Existing deployments kept this list in the S3 bucket; it is copied to the
table by a function that runs when the table is first deployed.
The follower is only updated once the copy completed, and the copy runs once
more afterwards, to pick up what the old follower recorded in the meantime.
See [npm-sync-protocol.md](./npm-sync-protocol.md) for the
guarantees the feed does and does not give, and how the follower compensates.

> Back-filling is automatic for the `NpmJs` source. Upon initial deployment,
Expand All @@ -60,6 +67,7 @@ ConstructHub provides two package source implementations: `NpmJs` and
> ```
>
> The next scan then covers everything from that position to the feed head.
> Versions recorded in the known versions table are not staged again.
> The state object is linked from the backend dashboard.

- A **high-severity** alarm triggers if the NpmJs Follower is not running at
Expand Down
3 changes: 3 additions & 0 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading