mapbox / mapbox/cloudfriend

Add a dead letter queue to shortcuts.hookshot.* lambdas

Open
#87 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
74
Forks
10
PR merge metrics
No merged PRs in 30d

Description

The hookshot shortcuts [Passthrough](https://github.com/mapbox/cloudfriend/blob/master/lib/shortcuts/api.md#hookshotpassthrough) and [Github](https://github.com/mapbox/cloudfriend/blob/master/lib/shortcuts/api.md#hookshotgithub) create:
- An API Gateway to receive events
- A webhook lambda to passthrough events

And expect you to provide a second lambda, that the webhook lambda passes events to.

The flow of events is then:

gateway -> webhookLambda -> myLambda

If webhookLambda fails to pass through an event, or if myLambda fails to handle an event, the event is dropped. It would be nice to provide a dead letter queue to store dropped events.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the HookshotPassthrough and HookshotGithub sections of the linked shortcuts API documentation, then locate their shortcut implementations and trace the gateway → webhookLambda → myLambda flow. Done means failed events from either handoff are retained in a dead letter queue instead of being dropped, with the configuration exposed for both shortcuts.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, javascript
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.