TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Webhooks, REST and the Open Web

27 pointsby bpedroover 11 years ago

3 comments

brissmyrover 11 years ago
Webhooks are in need of some standardisation for sure, so moving towards something like PuSH is a step in the right direction. However this technology has been around for a while, so whether this will become standard or not remains unclear.<p>PuSH solves a couple annoyances with webhooks that comes to my mind:<p>- Lack of debuggability: the inability to subscribe to events forces me to explicitly set up callback URL(s) on service providers&#x27; dashboards or in query strings in requests. IF I managed to set them up correctly, data will come crashing in any day in the future, throwing exceptions, or bouncing on unspecified routes. And all these POST catchers and local tunnels developers play with to get this right in the first place.<p>- Ad-hoc verification schemes: Every service comes up with their own way of ensuring the data originated from their servers. Signature hashes as &#x27;X-*&#x27;-headers, a number of extra fields inside the JSON body, etc.<p>There are more, but these two has annoyed me for quite some time.
评论 #6378067 未加载
cheshover 11 years ago
Nice article with a concise overview of PubSubHubbub and HTTP Subscription Specification. It would be really nice if you could complement it with pointers to some real example of interfaces using one or the other approach. This could help practitioners identify is the better fit for their use case.
rdtscover 11 years ago
I don&#x27;t understand the diagram.<p>The POST to &#x2F;subscription line going from left to right is clear. What is the GET request below it, is that another HTTP GET requests or a the response to a POST. If it is a GET why is the arrow going from Server to Client.<p>Then the response to that GET has a 201 code but that is going from client to Server?
评论 #6376321 未加载
评论 #6376073 未加载