hyper63 / hyper63/hyper-adapter-sqs

Cannot get Object from S3 bucket

Open
#46 0 comments 0 reactions 0 assignees View on GitHub
bug good first issue
Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

This seems to happen _very_ intermittently.

When the adapter attempts to fetch an object from S3, S3 will produce an error, causing the adapter to throw and eventually bubble up to the hyper consumer.

I think we can add some resiliency here. Some potential strategies:

- If `getObject` fails, then retry up to 3 times with a backoff between retries
- Cache the result of `getObject` in memory. One of:
- fallback to cache, if `getObject` fails
- stale-while-revalidate pattern (using `setTimeout`)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.