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 suck, but here are alternatives

38 pointsby 0xedbabout 1 year ago

8 comments

hn_throwaway_99about 1 year ago
This article made zilcho sense to me. I kept waiting for the part where it was going to tell me what was wrong with webhooks, but when it actually did it felt like one of those &quot;where did the soda go&quot; things, with overly-complicated emphasis on things that aren&#x27;t really problems. &quot;The hidden cost of webhooks&quot; section is basically just complaining that you need to run your own actual server, including &quot;maintain the code&quot;. Even that is really overkill because it&#x27;s easy to set up any number of lambdas&#x2F;cloud functions&#x2F;workers to respond to webhooks.<p>Furthermore, in the &quot;Workflow builder&quot; and &quot;In-browser IDE&quot;, all the author is highlighting is the case where the <i>service provider</i> is hosting the handler code, as opposed to the customer. But a whole, major point of webhooks is that they allow clients to run code in reaction to their SaaS APIs&#x27; events, but <i>in their own infrastructure</i>. I mean certainly, of course, if the provider wants to take the cost and risk of running their clients&#x27; code, that&#x27;s a great service to provide, but I wouldn&#x27;t say that highlights the negatives of webhooks.
评论 #39458267 未加载
评论 #39458148 未加载
tasnabout 1 year ago
Obviously Deno have vested interest here (and so do I as the founder of Svix[1] which is mentioned in the post), but my take is that webhooks are great, though there are alternatives that could be better or complementary depending on the situation.<p>They bring up a few good points about the shortcomings of webhooks, many of these we are trying to improve for the whole ecosystem (e.g. with Standard Webhooks[2]), or solve in Svix directly including running JS instead of sending webhooks which we already support (using Deno, which is great!). It is very useful, but there are many limitations with this approach, and in general oftentimes people just want the data passed to their systems and deal with it there. Not write a bit of JS in the browser to do something ad-hoc. So running JS is nice, but it&#x27;s not a silver bullet. This is also why we don&#x27;t support WASM, because in most cases it&#x27;s just not that useful.<p>So in short, like always with software engineering: &quot;it depends&quot; and there are tradeoffs to each approach.<p>1: <a href="https:&#x2F;&#x2F;www.svix.com">https:&#x2F;&#x2F;www.svix.com</a><p>2: <a href="https:&#x2F;&#x2F;www.standardwebhooks.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.standardwebhooks.com&#x2F;</a>
评论 #39458925 未加载
评论 #39458478 未加载
myaccountonhnabout 1 year ago
To me what stands out a lot in this article is the following:<p>&gt; . However, with this more robust setup, you would need 4 new services (SQS, S3, a Publisher(s), and a Consumer(s)), just to handle a single webhook safely. This is a lot of new infrastructure, architecture, time, and effort.<p>I most certainly agree that it is a lot of work, but the issue feels in large self-inflicted because of the use of serverless. If you&#x27;re using a monolithic setup with erlang or running any kind of queue on the side you are fine. You might need to setup some retry logic and alerts but that is done once.<p>Also the solution of providing a in-browser IDE sounds terrible, developers wouldn&#x27;t have access to source control, their own tools nor any kind of ability for local testing. Using zapier or any third-party tool is IMO not worth it if its a serious project.
评论 #39458190 未加载
leoqaabout 1 year ago
You do not want to host someone else&#x27;s code. Webhooks are great because they simply require an endpoint.<p>If you host someone else&#x27;s code, you also need to host their 3rd-party API keys, etc. You&#x27;ll also have to combat spammers using your IPs to do bad stuff.
bkuriabout 1 year ago
Where are the alternatives? Seems like half of the article is missing.
评论 #39463096 未加载
MiguelHudnandezabout 1 year ago
Webhooks&#x27; only dependencies are all common standards. They are platform agnostic and have a low barrier to entry. The reliability challenges are going to similar to any other self-hosted or self-managed infrastructure.<p>I get that you might want something better to shuttle a lot of data around between two apps but webhooks are relatively painless for a lot of straightforward interactions.
letmeinhereabout 1 year ago
&gt; deploy and host the server somewhere where it’s always available<p>This is such an underappreciated aspect; a naive webhook consumer service will just completely miss events in any outage. It means that if the information contained is important, you need a fallback approach to gathering it, usually by periodically polling the source system. And, it turns out that a lot of times that polling mechanism is good enough on its own; engineering to get the instant push, but only most of the time is of questionable business value.<p>Incidentally I think that consuming webhooks and converting them to messages on a queue are one of the true killer AWS Lambda and Lambda-like use-cases. Very spiky traffic, shouldn&#x27;t matter if it&#x27;s warm, availability is paramount. And if you stay disciplined about it--just routing the message to the queue, nothing else--you sidestep many of the function-as-a-service developer lifecycle frustrations.
SkyeOnHNabout 1 year ago
Most complains in this article about webhooks sound like they can easily be resolved with some lambda function and a cloudfront (or any alternative to AWS) without much complication. Am I seeing something wrong or not?