Why sending notifications is a nightmare for engineers notifkit.dev · 15 points ...
HN Best 200 @best
Why sending notifications is a nightmare for engineers notifkit.dev · 15 points · 10 comments · HN thread
TL;DR A long essay by the author of notifkit, an open-source self-hosted notification service, walks through how a one-line 'send receipt email' grows into retries, idempotency IDs, backup providers, quiet hours, rate limiting, consent checks and multi-step workflows, citing public incidents at companies like Salesloft, Zoho, Buttondown and HBO Max. It ends by pitching notifkit as a way to avoid building all of this yourself.
- Each addition to a notification system (retries, backup providers, quiet hours, rate limits, consent checks, order workflows) is motivated by a concrete failure mode, such as a timeout causing a duplicate send.
- Idempotency IDs must be stable across retries and passed to the provider; marking an ID as sent after the send avoids silent loss at the cost of possible duplicates.
- Counting bad-address rejections as provider failures can wrongly disable a healthy provider for all customers.
- Randomized backoff prevents synchronized retries after rate-limit errors, and rate limiter code can itself introduce duplicate sends.
- Test sends must be prevented from reaching real inboxes by routing non-production traffic to a log-only provider.
- notifkit is MIT licensed, self-hosted on Postgres and Redis, and does not guarantee exactly-once delivery.
Discussion The thread is small and mostly skeptical. Commenters question whether the quiet-hours premise makes sense at all, argue that email transport problems are already handled by mail transfer agents, and dismiss the piece as a sales pitch, with two saying it reads as AI-generated. A lighter exchange about how stressful notification sounds are for on-call engineers appears, and one commenter asks whether email is acceptable for critical alerts at all. Overall mood is dismissive toward the product, with little engagement with the technical content.
- Article is a sales pitch or AI-generated; not worth reading (many): Several commenters say the piece is a thinly veiled plug for notifkit and call it AI slop searching for a problem. They see the technical sections as serving the product promotion.
- Email alone is enough for most use cases (some): One commenter argues that plain email covers about 90% of needs, so the elaborate system is unnecessary for most teams.
- Email send reliability is already handled by MTAs (some): A commenter says the send-retry problem is made up because a mail transfer agent handles delivery, so the essay's core premise is weak.
- Quiet hours for email seem questionable (a few): One commenter questions whether users really expect no emails while asleep, noting that asynchronous communication is the point of email.
- Email is unacceptable for critical alerts (a few): One commenter flatly states that email is not an acceptable channel for critical alerts and invites counterarguments.
#notifications #emailDelivery #selfHosted #opensource #distributedSystems