Recommendations for folks who use webhooks
See original GitHub issueDescription
We’ve had a recent API use-case request to be able to monitor the status of a generated invoice to see when it is paid (@john-magill shared this flow in #1239).
We currently have a graphql subscription for this that we use in the galoy-pay
repo (see here), which requires being able to use websockets wherever the solution is being deployed.
There are some cases though where setting up a ws
/wss
connection is tricky, for example with serverless NextJS apps.
Are we aware of any potential solutions to this specific need?
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
What are webhooks? - Zapier
Webhooks are one of the best ways to connect apps that wouldn't otherwise work with Zapier. Have a Mac or iPhone app that...
Read more >Webhooks done right - Medium
There are some guidelines and best practices explained in this blog to make the webhook implementation scalable, secure and hassle free. When it ......
Read more >Best Practice to Secure your WebHooks | by Fienny Angelina
Best Practice to Secure your WebHooks · Verification Token · Request Signing & WebHooks Signatures · Mutual TLS (Transport Layer Security) · Thin ......
Read more >The Plain-English Guide to Webhooks - Level Up Coding
The first step in using webhooks is given the webhook provider a URL where you deliver your requests to. This can be done...
Read more >Webhooks - Help Center - Typeform
Where do you want your typeform's data to be sent? Use webhooks to get every response sent straight to a compatible web app...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
setting up a ws/wss connection is tricky, for example with serverless NextJS apps.
-> serverless is not a correct approach if they plan to use persistent connections (like ws)Solution probably webhooks would be a good solution for this case. The easiest way to implement it would be:
the advantage with this approach is that we can implement it in the same metadata PR and we only have to do a small change in trigger invoice handler (fire and forget POST without additional/external services and/or pods).
also needed: non subscription api, for developers using serverless api that can’t use subscriptions