<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ethan Parker on Medium]]></title>
        <description><![CDATA[Stories by Ethan Parker on Medium]]></description>
        <link>https://medium.com/@ethanparker141992?source=rss-e28474942252------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RFe-HBW2T0qpPcFYMyARyQ.png</url>
            <title>Stories by Ethan Parker on Medium</title>
            <link>https://medium.com/@ethanparker141992?source=rss-e28474942252------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 23:21:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ethanparker141992/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Vendor fallback in SuprSend: what happens when your email provider goes down mid-send]]></title>
            <link>https://medium.com/@ethanparker141992/vendor-fallback-in-suprsend-what-happens-when-your-email-provider-goes-down-mid-send-1100e53a5e01?source=rss-e28474942252------2</link>
            <guid isPermaLink="false">https://medium.com/p/1100e53a5e01</guid>
            <category><![CDATA[product-development]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[notifications]]></category>
            <category><![CDATA[notification-system]]></category>
            <dc:creator><![CDATA[Ethan Parker]]></dc:creator>
            <pubDate>Sun, 22 Nov 2026 02:56:01 GMT</pubDate>
            <atom:updated>2026-11-22T02:56:01.526Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*A_sU6dZqDZOgTnAh.jpg" /></figure><p><strong>email provider failover notifications</strong> keep transactional messages moving when your primary vendor returns a retryable error.</p><p>A password reset, an OTP, or a receipt is triggered by a user action right now. If your email vendor is down, the message sits in your queue or fails silently. Most teams don’t build a second provider integration until the first one burns them. SuprSend’s <a href="https://www.suprsend.com/products/smart-routing">smart routing</a> treats providers as interchangeable nodes: you configure a primary and a backup per category (system, transactional, promotional), and the platform switches automatically when the primary returns a retryable error.</p><h3>The problem: provider outages hit transactional email hardest</h3><p>Transactional email has no patience. A password reset that arrives in five minutes is a support ticket. An OTP that never arrives is a lost user. When SendGrid or Amazon SES returns a 5xx error, your application code usually has no plan B. SuprSend’s orchestration layer sits between your trigger and the provider, so a single vendor outage doesn’t stop transactional email.</p><h3>How SuprSend handles vendor fallback</h3><p>The flow is a short sequence: your app calls the workflow API → SuprSend picks the primary vendor for that notification’s category → the vendor accepts or rejects → on a retryable error (network timeout, 5xx, rate limit) SuprSend re-queues the same rendered payload to the backup vendor → a webhook fires with the fallback event so your observability stack knows what happened.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gPGjMzMFfIIvNzr0.png" /></figure><p><em>Figure 1: Provider failure triggers fallback send and a webhook event.</em></p><p>Per-category routing means your marketing emails can fail over to a different backup than your password resets. You set the order in the dashboard or via the Management API. The same payload renders once; only the transport changes. If both vendors fail, the message is marked blocked and the reason appears in the message logs.</p><h3>What using it actually involves</h3><ol><li><strong>Add vendors</strong> in Settings → Channels → Email. Connect SendGrid, Amazon SES, Resend, Postmark, Mailgun, Mailjet, or an SMTP endpoint. Each connection stores credentials and a verified sending domain.</li><li><strong>Set primary and backup</strong> per category (system, transactional, promotional) in the smart routing UI. Drag to reorder; the top vendor is tried first.</li><li><strong>Test in the sandbox</strong> workspace using SuprSend’s test vendors. They simulate success, 4xx, and 5xx responses so you can verify the fallback path without sending real email.</li><li><strong>Watch the webhooks</strong>: SuprSend emits webhook events for delivery status changes; exact event names and payloads are documented in the <a href="https://docs.suprsend.com/">webhook docs</a>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*i_XsUEMAB3R4VMH-.jpg" /></figure><p>Plan gating: the fact sheet does not specify which plans include per-category vendor fallback. Check SuprSend’s <a href="https://www.suprsend.com/pricing">pricing page</a> for current limits.</p><h3>Caveats</h3><ul><li><strong>Plan gating for vendor fallback is not documented in the fact sheet.</strong> Verify current limits on SuprSend’s <a href="https://www.suprsend.com/pricing">pricing page</a>.</li><li><strong>No retry on 4xx errors</strong> (invalid recipient, rejected template, suspended account). Those are treated as deterministic failures; the message is blocked immediately and the webhook reports the provider’s exact response.</li><li><strong>Log retention</strong> varies by plan: 30 days on Free, 90 days on Essentials and Business, custom on Enterprise. If you need a longer audit trail for compliance, factor that into the plan choice.</li><li><strong>Self-hosted and BYOC</strong> deployments mirror the same routing logic, but you operate the Kubernetes cluster or the cloud account. The fallback behavior is identical.</li></ul><p>If you need open-source infrastructure with a lower entry price, Novu is the pick. SuprSend’s strength is the depth of its workflow engine and the per-category vendor model that keeps transactional email moving during an outage.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1100e53a5e01" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Notification message logs: what to capture per send, delivery status, retention and debugging]]></title>
            <link>https://medium.com/@ethanparker141992/notification-message-logs-what-to-capture-per-send-delivery-status-retention-and-debugging-ebd7c7bbef15?source=rss-e28474942252------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebd7c7bbef15</guid>
            <category><![CDATA[message-queue]]></category>
            <category><![CDATA[push-notification-tools]]></category>
            <category><![CDATA[push-notification]]></category>
            <category><![CDATA[notifications]]></category>
            <category><![CDATA[developer-tools]]></category>
            <dc:creator><![CDATA[Ethan Parker]]></dc:creator>
            <pubDate>Thu, 19 Nov 2026 17:16:01 GMT</pubDate>
            <atom:updated>2026-11-19T17:16:01.664Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*i3m9-po45edE6aHx.jpg" /></figure><p>Message logs are the immutable record of every notification your system attempts to deliver. Get them right, and you can trace a failed password-reset email to a specific provider rejection in seconds. Get them wrong, and you’re guessing why users never saw the alert.</p><h3>The stakes of incomplete logs</h3><p>When a user says “I didn’t get the email,” the first question is whether your system even tried to send it. If your logs only store a success flag from the provider’s HTTP response, you lose the context that explains a soft bounce, a spam complaint, or a delayed delivery. Amazon SES publishes bounce, complaint, and delivery notifications to Amazon SNS as JSON objects that include the original message metadata and the provider’s per-recipient status <a href="https://docs.aws.amazon.com/ses/latest/dg/send-email-concepts-deliverability.html">a few words</a>. Without capturing that full payload, you cannot distinguish a transient deferral from a permanent block, and you cannot prove to a compliance auditor what actually happened.</p><h3>What a complete message log captures per send</h3><p>Every log entry should answer who, what, when, where, and how the provider responded. The essential fields are:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QfywPfhAkWSPdNyJ.jpg" /></figure><ul><li><strong>Message ID</strong>, your internal UUID that ties the log row to the business event (order placed, password reset, weekly digest).</li><li><strong>Recipient identifier</strong>, the email address, phone number, device token, or in-app user ID.</li><li><strong>Channel</strong>, email, SMS, push, in-app, Slack, WhatsApp.</li><li><strong>Payload hash</strong>, a SHA-256 of the rendered content so you can verify exactly what was sent without storing PII in the log row.</li><li><strong>Timestamps</strong>, created_at (when your app queued the send), provider_submitted_at (when the HTTP call returned), provider_finalized_at (when the webhook arrived with the terminal status).</li><li><strong>Provider response</strong>, the raw JSON from the provider’s webhook, including the DSN action and status fields for email, the message_id from <a href="https://firebase.google.com/docs/cloud-messaging">FCM</a> or <a href="https://developer.apple.com/documentation/usernotifications/sending-notification-requests-to-apns">APNs</a> for push, and the MessageSid from Twilio for SMS <a href="https://www.twilio.com/docs/events/event-types/notify/notification-services">a few words</a>.</li></ul><p>RFC 3464 defines the action field (failed, delayed, delivered, relayed, expanded) and the status code (e.g., 2.0.0 for success, 5.1.1 for bad destination mailbox) that every standards-compliant MTA returns. Storing those two fields lets you map any provider&#39;s response to a unified state machine.</p><h3>Delivery status lifecycle you can actually trace</h3><p>Providers use different vocabularies, but the state graph is the same. Map every inbound webhook to one of:</p><p><strong>Queued.</strong> Your system accepted the request (API 202 response). <strong>Submitted.</strong> Provider accepted the message (SES delivery webhook, SendGrid processed). <strong>Delivered.</strong> Remote MTA accepted the message (SES delivery with status 2.x.x). <strong>Deferred.</strong> Temporary failure, will retry (SES bounce with action delayed, 4.x.x status). <strong>Bounced.</strong> Permanent failure (SES bounce with action failed, 5.x.x status). <strong>Complained.</strong> Recipient marked spam (SES complaint webhook). <strong>Opened / Clicked.</strong> Engagement (provider tracking pixel or link wrapper).</p><p>SES notifications include a timestamp (ISO 8601) and processingTimeMillis so you can measure latency from submit to final delivery. Knock applies a plan-based retention policy to message log data: Enterprise plans keep it for 90 days, all other plans for 30 days, while in-app feed notifications remain available indefinitely. Build your own state machine once, then every channel feeds into it.</p><h3>Retention policies that balance cost and debugging</h3><p>Hot storage (queryable in your dashboard or via API) should cover the debugging window. Cold storage (object store, Parquet, warehouse) covers compliance and trend analysis.</p><ul><li><strong>30 days hot</strong>, covers most “user didn’t get it” tickets and sprint-cycle debugging.</li><li><strong>90 days hot</strong>, required if you support Enterprise SLAs or need to correlate a delivery failure with a downstream churn event.</li><li><strong>1–7 years cold</strong>, GDPR Article 7 and financial regulations often require proof of consent and transactional delivery. Export logs to S3 as Parquet with a partition per day; keep the payload hash but drop the rendered HTML to reduce PII surface.</li></ul><p>Knock’s universal 30-day retention applies to API logs regardless of plan, while message log data follows the plan tier. Amazon WorkMail lets you set folder-level retention with a “Delete” or “Permanently delete” action and a configurable day count. Choose your hot window based on the longest feedback loop you support (e.g., a weekly digest that users might report missing after two weeks).</p><h3>Debugging workflows that use your logs</h3><p>Logs are only useful if you can answer questions fast. Three patterns turn raw rows into signal:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*myym_oRtU78JgQD9.jpg" /></figure><ol><li><strong>Correlate with user reports</strong>, when a support ticket arrives, search by recipient and 48-hour window. The payload hash lets you diff what you sent against what the user shows you (forwarded email, screenshot).</li><li><strong>Replay failed sends</strong>, a bounced row with a 5.1.1 status means the address is dead; suppress it. A 4.4.1 (connection timed out) means the provider will retry; do not resend manually or you&#39;ll duplicate.</li><li><strong>Alert on anomaly patterns</strong>, graph the ratio of bounced to submitted per provider per hour. A jump triggers a PagerDuty alert. Braze&#39;s Message Activity Log caps error logs at 20 per error type per campaign per hour, which hides sustained spikes; your own store should not.</li></ol><p>Verbose SDK logging helps on the client side: Braze recommends enabling debug-level logs before reproducing a missing push or in-app message, then sharing the V/Braze Logcat output with support. On the server side, your log store is the source of truth.</p><h3>Email delivery tools that surface the right data</h3><p>Not all providers expose the same granularity. What to verify before you commit:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WyhbPsYzOZSeKv_q.jpg" /></figure><p><strong>Amazon SES.</strong> Publishes the full DSN via SNS: bounce, complaint, and delivery objects with action, status, remoteMtaIp, and processingTimeMillis. You own the SNS topic, so you can fan out to Lambda, Firehose, or your own webhook endpoint. <strong>SendGrid.</strong> Event Webhook delivers processed, delivered, deferred, bounce, block, spam_report, open, click. The bounce event includes a reason string and SMTP code, but the raw DSN is not guaranteed. <strong>Resend.</strong> Webhooks include email.sent, email.delivered, email.bounced, email.complained. The bounce payload surfaces the status_code and diagnostic_code from the remote MTA. <strong>Postmark.</strong> Bounce webhook returns the full RFC 3464 DSN fields: Type, TypeCode, Name, Tag, Message, ServerID, Metadata, and the original headers. This is the closest to a raw DSN you get without running your own MTA.</p><p>If your provider doesn’t surface remoteMtaIp or the raw Diagnostic-Code, you cannot tell whether a block is at the inbox provider (Gmail, Outlook) or an intermediate gateway. That distinction changes the remediation from &quot;clean your list&quot; to &quot;warm a new IP pool.&quot;</p><h3>Close</h3><ul><li>Capture message ID, recipient, channel, payload hash, triple timestamps, and the full provider webhook payload.</li><li>Map every provider response to a unified state machine built on RFC 3464 action and status codes.</li><li>Keep 30–90 days hot for debugging; archive everything else to cold storage with PII minimized.</li><li>Alert on bounce-rate deltas, not absolute counts.</li><li>Verify your email provider returns the remote MTA IP and diagnostic code before you sign the contract.</li></ul><p>The habit that prevents blind spots: treat the log write path as a first-class API contract. If the webhook handler fails, the send is not “done”, it’s “unconfirmed,” and your alerting should fire.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebd7c7bbef15" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When toast notifications fail: timing, accessibility and lost messages vs a persistent inbox]]></title>
            <link>https://medium.com/@ethanparker141992/when-toast-notifications-fail-timing-accessibility-and-lost-messages-vs-a-persistent-inbox-a96d78925423?source=rss-e28474942252------2</link>
            <guid isPermaLink="false">https://medium.com/p/a96d78925423</guid>
            <category><![CDATA[notifications]]></category>
            <category><![CDATA[push-notification]]></category>
            <category><![CDATA[developer-tools]]></category>
            <dc:creator><![CDATA[Ethan Parker]]></dc:creator>
            <pubDate>Mon, 16 Nov 2026 12:41:04 GMT</pubDate>
            <atom:updated>2026-11-16T12:41:04.153Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4KvRuxuvN5DyxSry.jpg" /></figure><p>A toast notification is a brief, auto-dismissing message that appears inside your app to confirm an action, then vanishes on its own. Get it right, and the user feels confident without interruption. Get it wrong, and critical feedback disappears before anyone reads it. Screen readers skip it entirely. Android 12+ truncates it to two lines while a system accessibility timeout freezes it mid-animation. For mobile push, the same timing and visibility constraints apply to <a href="https://developer.apple.com/documentation/usernotifications">APNs</a> and <a href="https://firebase.google.com/docs/cloud-messaging">FCM</a> payloads. Web apps face identical issues with the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Push_API">Push API</a> and <a href="https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API">Notifications API</a>.</p><h3>What a toast notification actually does</h3><p>A toast delivers passive confirmation: “Settings saved,” “Message sent,” “Draft updated.” It appears, waits a few seconds, and fades without requiring a tap. The pattern exists so users stay in flow; the UI never blocks, focus never moves, and the message never demands a decision. Courier describes toasts as built for confirmation, not conversation, and that distinction matters every time you reach for the component.</p><h3>Where toasts break: timing, visibility and Android limits</h3><p>The default timeout is the first failure point. Android offers two durations, LENGTH <em>SHORT (~2 seconds) and LENGTH</em>LONG (~3.5 seconds), and even the longer one fails when users read slowly, use zoom, glance at a second monitor, or simply blink at the wrong moment. Android 12 (API level 31) adds a hard two-line cap and forces the app icon next to the text, so longer copy wraps or gets cut off. Background toasts are rate-limited by the system, so a burst of events can silently drop messages. A known Pixel bug makes the “Tab closed” snackbar freeze halfway across the screen when the system accessibility timeout is set to 10 seconds or longer, a setting that lives in Accessibility &gt; Timing controls &gt; Time to take action. These limits mirror the constraints on <a href="https://web.dev/articles/push-notifications-overview">Web Push</a> and <a href="https://www.rfc-editor.org/rfc/rfc8030">RFC 8030</a> payloads.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*V6CDnYtjQPNUqjda.png" /></figure><p><em>Figure 1: Where each pattern sits on urgency and persistence. Toast is low on both; inbox is high on both.</em></p><h3>Toast vs snackbar vs in-app inbox: the real differences</h3><p>A snackbar looks like a toast but can carry a single action: “Undo,” “Retry,” “View.” Without an action it auto-dismisses; with one it stays until the user taps or swipes it away. A banner persists until dismissed and suits warnings that need attention but not a modal block. An in-app inbox is a persistent feed with read/unread state, archive, and search; it catches every message the user might need later. The table below captures the practical differences. For email delivery guarantees, see <a href="https://www.rfc-editor.org/rfc/rfc7489">DMARC</a> and <a href="https://www.rfc-editor.org/rfc/rfc5321">RFC 5321</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*w81Q20ia0WPGub4T.jpg" /></figure><p><strong>Toast.</strong> No action. Auto-dismisses. Low discoverability in a corner of the screen. Best for confirmation.</p><p><strong>Snackbar.</strong> One optional action. Auto-dismisses or stays until the user acts. Bottom of the screen. Best for undo or retry.</p><p><strong>Banner.</strong> Optional or required action. Persists until dismissed. Top or bottom of the screen. Best for verification or quota warnings.</p><p><strong>In-app inbox.</strong> Full interaction. Permanent. Dedicated page with a badge. Best for history and reference.</p><h3>Accessibility failures that make toasts invisible</h3><p>Toasts live in a floating container often mounted at the document root, far from the control that triggered them. Screen readers traverse the DOM in order; reaching a toast, reading it, and returning to the task can be awkward or impossible. Without an ARIA live region, the toast is silent. Use role=&quot;status&quot; (implicit aria-live=&quot;polite&quot;) for confirmations and role=&quot;alert&quot; ( aria-live=&quot;assertive&quot;) for errors, and put an empty live region in the initial markup so it exists before the first toast writes into it. GitHub removed toasts from its design system because auto-dismiss timers, focus-management issues, and inconsistent usage across teams created systemic accessibility risk at their scale. Most apps don&#39;t operate at that scale, but the same bugs appear whenever a toast carries information the user cannot afford to miss. For webhook reliability, apply <a href="https://martinfowler.com/articles/patterns-of-distributed-systems/idempotent-receiver.html">idempotent receiver</a> and <a href="https://en.wikipedia.org/wiki/Exponential_backoff">exponential backoff</a> patterns.</p><h3>A decision framework for in-app feedback</h3><p>Before you pick a component, answer four questions:</p><p><strong>Does the user need to act on this message?</strong> If yes, toast is out. Use a snackbar for a single undo, a banner for anything more complex, or route to the inbox.</p><p><strong>Will the user need to reference this later?</strong> Receipts, security alerts, policy changes, and conversation replies belong in an inbox. A toast is gone in seconds.</p><p><strong>Is the message time-sensitive and critical?</strong> A payment failure or a login from a new device warrants a banner or a modal, not a toast that can be missed.</p><p><strong>Can the message wait until the user opens the inbox?</strong> Batch non-urgent updates (digest summaries, feature announcements) directly into the inbox and skip the toast layer entirely.</p><p>Knock recommends pairing every toast with a feed or inbox so missed messages remain discoverable.</p><h3>When to choose each option</h3><p><strong>Toast, passive confirmation.</strong> Copy: “Settings saved.” “Draft auto-saved.” “Image uploaded.” Use when the action succeeded, the user expects it, and no follow-up is required.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TV8KmnVlo8UIn1Tz.jpg" /></figure><p><strong>Snackbar, one reversible action.</strong> Copy: “Message deleted. [Undo]” “Item archived. [Restore]” “Sync failed. [Retry]” Use when the user might immediately regret the action or want to retry without leaving the screen.</p><p><strong>Banner, persistent warning or status.</strong> Copy: “Account needs verification. [Verify now]” “You’re on the free plan. Upgrade for more seats.” “API key expires in 7 days.” Use when the message must stay visible until the user acknowledges or resolves it.</p><p><strong>In-app inbox, reference, history, and cross-channel catch-all.</strong> Copy: “Your invoice #1042 is ready.” “Security alert: new sign-in from Chrome on macOS.” “Team invite: you were added to Project Alpha.” Use for anything transactional, auditable, or actionable on the user’s timeline. The inbox also becomes the fallback for out-of-app channels: if an email or push isn’t opened, the inbox still holds the message.</p><h3>Wrapping up</h3><ul><li><strong>Timing failures:</strong> short timeouts, Android 12+ two-line caps, background rate limits, and accessibility timeouts all make toasts disappear before the user reads them.</li><li><strong>Accessibility failures:</strong> missing live regions, poor focus order, and auto-dismiss timers hide toasts from screen readers and keyboard users.</li><li><strong>Persistence failures:</strong> toasts leave no trace. An in-app inbox catches every message the user might need later, turns notifications into a task list, and reduces cross-channel noise by making in-app the first delivery stop.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a96d78925423" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Retry Logic and Exponential Backoff]]></title>
            <link>https://medium.com/@ethanparker141992/retry-logic-and-exponential-backoff-0d5f709c6a7f?source=rss-e28474942252------2</link>
            <guid isPermaLink="false">https://medium.com/p/0d5f709c6a7f</guid>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[notifications]]></category>
            <category><![CDATA[system-design-project]]></category>
            <category><![CDATA[backend-engineering]]></category>
            <dc:creator><![CDATA[Ethan Parker]]></dc:creator>
            <pubDate>Wed, 28 Oct 2026 07:01:03 GMT</pubDate>
            <atom:updated>2026-10-28T07:01:03.250Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How to recover from transient failures without overwhelming services, duplicating notifications, or increasing delivery costs.</em></p><p>A notification service can fail even when its application code is correct. A provider may return a rate-limit response, a network request may time out, or a downstream service may temporarily become unavailable. Retrying can help, but uncontrolled retries can turn a temporary failure into a larger outage.</p><h3>1. Retry transient failures, not every failure</h3><p>The first step is to classify errors. A retry is useful when the same operation has a reasonable chance of succeeding later; it is usually wasteful when the request itself is invalid or the failure requires human intervention.</p><p>Consider an e-commerce application sending an order confirmation. If the email provider temporarily returns a server error, the application may retry after a short delay. If the recipient address is invalid, repeating the same request is unlikely to solve the problem.</p><p>A practical policy distinguishes three categories:</p><ul><li><strong>Transient failures:</strong> Temporary network problems, selected server errors, and rate limits.</li><li><strong>Permanent failures:</strong> Invalid input, unsupported operations, or other errors that require a change before another attempt can succeed.</li><li><strong>Unknown outcomes:</strong> Timeouts where the request may have succeeded, but the caller never received the response.</li></ul><p>The third category deserves special attention. A timeout does not necessarily mean the provider failed to process the message. Retrying without duplicate protection could send the same notification twice.</p><p>Before implementing retries, define which errors qualify, how many attempts are allowed, and what happens when the limit is reached.</p><h3>2. Use exponential backoff with jitter</h3><p>Exponential backoff increases the waiting time between consecutive retry attempts. Instead of retrying every second, a system might wait one second, then two, then four, then eight, subject to a configured maximum.</p><p>A basic formula is:</p><p>[<br>d_n = \min(d_{\max}, d_0 \times 2^n)<br>]</p><p>Here, (d_0) is the initial delay, (d_{\max}) is the maximum delay, and (n) is the retry number starting at zero.</p><p>However, exponential backoff alone does not solve every problem. If thousands of workers fail simultaneously, they may all retry at approximately the same times, creating another surge of traffic.</p><p><strong>Jitter</strong> adds randomness to the delay so that retry attempts spread out over time. One common strategy is full jitter:</p><p>[<br>d_n \sim U(0,\min(d_{\max},d_0 \times 2^n))<br>]</p><p>The actual delay is randomly selected between zero and the calculated upper bound.</p><p>For example, if the upper bound is eight seconds, different workers may retry after different delays rather than all retrying at eight seconds. This reduces synchronized bursts and gives a struggling service more room to recover.</p><p>Also respect provider-specific instructions. For HTTP 429 Too Many Requests responses, a provider may supply a Retry-After header. Your retry policy should account for that signal instead of blindly following its own schedule.</p><h3>3. Implement bounded retries</h3><p>Retries should have clear limits. A system that retries indefinitely can consume resources, keep obsolete notifications alive, and make a queue backlog worse during an extended outage.</p><p>The following example uses Python 3.10 or later and only the standard library. It performs an HTTP GET request, retries selected transient failures, and uses exponential backoff with full jitter.</p><pre>import random<br>import time<br>import urllib.error<br>import urllib.request</pre><pre>def get_with_retry(url, max_attempts=4):<br>    for attempt in range(max_attempts):<br>        try:<br>            with urllib.request.urlopen(url, timeout=5) as response:<br>                return response.read().decode(&quot;utf-8&quot;)</pre><pre>        except urllib.error.HTTPError as exc:<br>            retryable = exc.code == 429 or 500 &lt;= exc.code &lt; 600<br>            if not retryable:<br>                raise</pre><pre>        except (urllib.error.URLError, TimeoutError):<br>            pass</pre><pre>        if attempt == max_attempts - 1:<br>            raise RuntimeError(&quot;Request failed after retries&quot;)</pre><pre>        delay = min(8, 1 * (2 ** attempt))<br>        time.sleep(random.uniform(0, delay))</pre><pre>    raise RuntimeError(&quot;Request failed&quot;)</pre><pre>if __name__ == &quot;__main__&quot;:<br>    print(get_with_retry(&quot;https://httpbin.org/get&quot;))</pre><p>Save it as retry_example.py and run it with Python 3.10 or later in an environment with network access.</p><p>The example allows up to four total attempts, including the initial request. It retries HTTP 429 responses, HTTP 5xx responses, and URL-related network errors, while allowing other HTTP errors to fail immediately.</p><p>This is a teaching example, not a complete production retry library. It does not implement Retry-After, a total execution deadline, asynchronous processing, or provider-specific error classification. Those behaviors should be added based on the service contract.</p><p>The example also performs a GET request, which is generally appropriate for retry demonstrations. For notification submissions or other operations that create side effects, retries require additional safeguards.</p><h3>4. Protect delivery with idempotency and queue controls</h3><p>Exponential backoff controls when an operation is retried. It does not guarantee that retrying the operation is safe.</p><p>Suppose a worker submits an order confirmation to an email provider. The provider accepts the message, but the network connection drops before the worker receives the response. The worker sees a timeout and retries, potentially sending a duplicate confirmation.</p><p>An <strong>idempotent operation</strong> can be repeated without producing additional unintended effects. For notification systems, a stable notification identifier or idempotency key can help identify repeated submissions of the same logical message.</p><p>Where the provider supports idempotency keys, use them according to its documented behavior. Otherwise, persist delivery attempts, handle uncertain outcomes explicitly, and recognize that a database record alone cannot guarantee exactly-once delivery across an external provider boundary.</p><p>Retries also need to fit the queue architecture. A worker should not hold a job indefinitely while waiting through long backoff periods if the system can schedule the next attempt separately. Delayed retries, bounded attempt counts, and dead-letter queues help isolate failing jobs from healthy traffic.</p><p>Track retry volume, queue age, failure rates, and provider response codes. A rising retry count may indicate a downstream outage, an aggressive rate limit, or a change in request behavior. Monitoring these signals helps engineers decide whether to keep retrying, pause delivery, or investigate the underlying issue.</p><h3>5. Where notification infrastructure fits</h3><p>When notification workflows are spread across application services, each service can end up implementing its own retry rules, delivery tracking, and failure handling. Keeping those implementations consistent becomes harder as the number of channels and integrations grows.</p><p>SuprSend can be evaluated as a notification infrastructure layer for coordinating notification workflows and delivery across supported channels. Instead of independently maintaining all notification orchestration logic in every business service, a team can centralize supported workflows while retaining responsibility for its business rules and validating the platform’s current retry and delivery semantics.</p><p>This does not mean every retry should be delegated to a platform. A small application with one provider and straightforward delivery requirements may be better served by a simple in-house retry mechanism. A larger system with several channels and shared notification workflows may benefit from evaluating a dedicated platform alongside its existing queues and provider integrations.</p><p>Whichever approach you choose, make sure there is a clear owner for retry limits, idempotency, provider rate limits, final failure handling, and delivery observability. Avoid stacking multiple independent retry layers without understanding how their attempts and timeouts multiply.</p><h3>Final thoughts</h3><p>Retries are a reliability tool, not a substitute for understanding failures. Classify errors, use exponential backoff with jitter, enforce attempt limits, and make repeated operations safe wherever possible.</p><p>For notification systems, the objective is not to retry forever. It is to recover from temporary problems without overwhelming providers, duplicating messages, or delaying the rest of the queue.</p><h3>Official documentation</h3><ul><li><a href="https://docs.aws.amazon.com/prescriptive-guidance/latest/cloud-design-patterns/retry-backoff.html">AWS: Retry with backoff pattern</a></li><li><a href="https://cloud.google.com/storage/docs/retry-strategy">Google Cloud: Retry strategy</a></li><li><a href="https://www.rfc-editor.org/rfc/rfc9110">HTTP Semantics — RFC 9110</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0d5f709c6a7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mobile Push Token Management: Simplify Device Registrations]]></title>
            <link>https://medium.com/@ethanparker141992/mobile-push-token-management-simplify-device-registrations-a1ce8a0c8155?source=rss-e28474942252------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1ce8a0c8155</guid>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[notifications]]></category>
            <category><![CDATA[mobile-development]]></category>
            <dc:creator><![CDATA[Ethan Parker]]></dc:creator>
            <pubDate>Tue, 27 Oct 2026 07:01:02 GMT</pubDate>
            <atom:updated>2026-10-27T07:01:02.773Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How to manage token refreshes, multiple devices, invalid registrations, and reliable push delivery without building every notification component yourself.</em></p><p>Mobile push notifications often fail for reasons that have little to do with the message itself. A token changes, a user signs out, an old device remains registered, or the backend continues targeting an installation that no longer exists.</p><p>Disclosure: I work at SuprSend, a notification infrastructure platform. Managing these cases entirely in-house means maintaining device registration logic, provider integrations, cleanup processes, and delivery workflows; a platform such as SuprSend can help centralize parts of that work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*x4FczIFrLIYgzeYd.png" /><figcaption>Push Token Management</figcaption></figure><h3>1. Why push token management becomes complicated</h3><p>A push token identifies an app installation or device endpoint to a push delivery service. Apple Push Notification service (APNs) and Firebase Cloud Messaging (FCM) have their own registration mechanisms, and tokens should not be treated as permanent user identifiers.</p><p>Consider an e-commerce app where a customer receives order updates on both an iPhone and an Android phone. Each installation needs its own registration, and the backend must know which user owns each device and which token should be used when a notification is sent.</p><p>If you build everything in-house, you need to maintain this device registry, handle refreshed tokens, and keep provider-specific delivery logic working as the application evolves. Using SuprSend as a notification orchestration layer can reduce the amount of notification workflow infrastructure your team needs to maintain, while APNs and FCM still provide the underlying mobile push delivery services.</p><p>The important distinction is that <strong>a notification platform can simplify orchestration, but it does not eliminate the need for correct device identity and token lifecycle handling</strong>. Verify SuprSend’s current registration and integration behavior in its <a href="https://docs.suprsend.com/">official documentation</a> before deciding which components your application must own.</p><h3>2. Handle token registration and refresh centrally</h3><p>The mobile application should register its current push token with the appropriate backend or notification integration whenever the platform SDK reports a new token. The backend should update the existing device record instead of creating another record every time the app starts.</p><p>An in-house system typically needs a registration API, a database table, authentication, duplicate handling, and a process for updating tokens. As the product adds more channels, developers must also keep notification preferences and delivery workflows consistent across services.</p><p>SuprSend can serve as a shared notification layer for supported workflows and channels, helping teams avoid scattering notification logic across individual product services. Rather than every business service implementing its own notification decisions, the application can use a centralized workflow where supported; the exact division of responsibility for device registration and token updates must be confirmed against the current integration.</p><p>For example, a simplified device registry might look like this:</p><pre>CREATE TABLE push_devices (<br>    id UUID PRIMARY KEY,<br>    user_id TEXT NOT NULL,<br>    installation_id TEXT NOT NULL,<br>    platform TEXT NOT NULL,<br>    push_token TEXT NOT NULL,<br>    updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),<br>    UNIQUE (user_id, installation_id)<br>);</pre><p>This PostgreSQL example illustrates an in-house registry; it is not a SuprSend schema. The unique constraint prevents duplicate records for the same user and installation, while updated_at helps track registration changes.</p><p>If your chosen notification platform manages the relevant device registration data for your integration, you may not need to maintain a separate registry for every piece of notification state. However, you should retain application-owned identity and authorization information wherever your product requires it.</p><h3>3. Deal with stale tokens and invalid devices</h3><p>A token that was valid last month may no longer be usable today. Apps are uninstalled, users change devices, and push providers return errors when registrations become invalid.</p><p>When you build in-house, you need to interpret provider responses, determine which failures are permanent, and deactivate the corresponding registration without accidentally removing a newer token. A delayed failure for an old token must not invalidate the replacement token that the device registered later.</p><p>A notification platform such as SuprSend can help centralize supported notification workflows, reducing the amount of delivery orchestration your team has to implement independently. However, do not assume that a platform automatically solves every token-cleanup case; confirm how invalid-token feedback is handled for your chosen push integration.</p><p>Your system should distinguish a definitively invalid registration from a temporary provider outage, rate limit, or network timeout. For FCM, the official <a href="https://firebase.google.com/docs/cloud-messaging/manage-tokens">registration token management guidance</a> explains token freshness and removal practices.</p><p>The practical goal is to keep stale registrations from being targeted indefinitely while preserving valid devices. Whether your team implements the cleanup directly or relies on supported platform behavior, it should be observable and safe to repeat.</p><h3>4. Manage multiple devices, logout, and delivery workflows</h3><p>Token management also affects account security. When a user signs out of a shared device, the system must prevent future notifications intended for the previous account from being delivered to that installation.</p><p>An in-house implementation must coordinate logout behavior, device ownership, token updates, and delivery jobs. It should also decide whether an event goes to every active device or only to selected devices, rather than assuming that all installations should always receive every message.</p><p>SuprSend can help teams coordinate notification workflows across supported channels from a shared notification layer. This is useful when a product sends order updates through push, email, or other channels and wants to manage notification decisions centrally instead of implementing separate workflows in every backend service.</p><p>Still, your application remains responsible for the correct identity and authorization model. A platform cannot safely infer every account-sharing rule or decide which messages a user should receive without the necessary product context and configuration.</p><p>For reliability, monitor registration updates, invalid-token responses, provider failures, and delivery outcomes. These signals help distinguish a token lifecycle problem from an outage or a bug in the notification workflow.</p><h3>5. Build everything yourself or use SuprSend?</h3><p>Building push token management in-house makes sense when the product has a small number of notification types, one mobile application, and an existing team that can maintain provider integrations and device lifecycle logic.</p><p>The trade-off is ongoing engineering responsibility. Your team must manage token refreshes, persistence, provider-specific behavior, retries, observability, and future channel requirements.</p><p>SuprSend is worth evaluating when the application needs a centralized notification layer with supported multi-channel workflows and less notification orchestration code spread across product services. It can help simplify the overall notification system, but its exact device registration, token synchronization, and invalid-token capabilities should be verified against the current documentation.</p><p>Other notification platforms, including OneSignal, may also fit depending on whether the main requirement is push messaging, broader notification orchestration, or device engagement. Compare the actual integration behavior, supported channels, pricing, and operational responsibilities rather than assuming every platform handles tokens in the same way.</p><p>The goal is not to remove every underlying technology. Mobile push still relies on the relevant platform delivery service, such as APNs or FCM. The goal is to avoid building and maintaining notification infrastructure that your team does not need to own.</p><h3>Final thoughts</h3><p>Push token management is a lifecycle problem, not simply a database field. Reliable systems register devices correctly, update tokens safely, handle logout, remove definitively invalid registrations, and monitor delivery outcomes.</p><p>SuprSend can help centralize supported notification workflows so your team can spend less time maintaining notification plumbing and more time building product-specific behavior. Before adopting it, confirm which token lifecycle responsibilities it handles for your chosen integration and which remain in your application.</p><h3>Official documentation</h3><ul><li><a href="https://docs.suprsend.com/">SuprSend documentation</a></li><li><a href="https://developer.apple.com/documentation/usernotifications/registering-your-app-with-apns">Apple: Registering your app with APNs</a></li><li><a href="https://firebase.google.com/docs/cloud-messaging/manage-tokens">Firebase: Managing FCM registration tokens</a></li><li><a href="https://firebase.google.com/docs/cloud-messaging/ios/get-started">Firebase: Get started with FCM on Apple platforms</a></li><li><a href="https://documentation.onesignal.com/">OneSignal documentation</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1ce8a0c8155" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SMS Pitfalls: Carriers, Costs, and Country Rules]]></title>
            <link>https://medium.com/@ethanparker141992/sms-pitfalls-carriers-costs-and-country-rules-14623c2ff10b?source=rss-e28474942252------2</link>
            <guid isPermaLink="false">https://medium.com/p/14623c2ff10b</guid>
            <category><![CDATA[suprsend]]></category>
            <category><![CDATA[notifications]]></category>
            <category><![CDATA[sms]]></category>
            <category><![CDATA[twilio]]></category>
            <dc:creator><![CDATA[Ethan Parker]]></dc:creator>
            <pubDate>Mon, 26 Oct 2026 07:01:02 GMT</pubDate>
            <atom:updated>2026-10-26T07:01:02.538Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How to build reliable SMS notifications without unexpected delivery failures, rising costs, or regional compliance problems.</em></p><p>An SMS API can make sending a text message look like a simple engineering task. The complexity starts when messages cross borders, carriers filter traffic, sender IDs require registration, or a single unexpected character doubles the number of billable message segments.</p><p>Disclosure: I work at SuprSend, a notification infrastructure platform. This article focuses on the engineering and operational challenges of SMS, regardless of which provider or notification system you use.</p><h3>1. An SMS API does not guarantee delivery</h3><p>The first mistake is treating SMS delivery as a single API call. In practice, a message passes through several systems: your application, an SMS provider, carrier networks, and the recipient’s device.</p><p>Each stage can introduce delays or failures. A provider may accept a message for processing without guaranteeing that the recipient’s carrier will deliver it or that the recipient will see it.</p><p>This distinction matters for critical notifications such as one-time passwords, payment alerts, and delivery updates. Your application should track the available delivery states rather than treating a successful HTTP response as proof of delivery.</p><h3>Sender IDs are not universal</h3><p>SMS sender identification varies by country. Depending on the destination, you may need a local phone number, a short code, or a registered alphanumeric sender ID displaying your brand name.</p><p>These options have different costs, throughput limits, and approval requirements. Some countries restrict sender ID formats or replace unapproved sender IDs, while others require registration before application-to-person messaging can begin.</p><p>For example, US application-to-person messaging over local ten-digit numbers can require A2P 10DLC brand and campaign registration. In India, domestic messaging routes can require registration through the telecom industry’s Distributed Ledger Technology (DLT) framework, including approved sender IDs and message templates. Requirements depend on the route and use case, so verify the current rules for your provider and traffic type. <a href="https://www.twilio.com/docs/messaging/compliance/a2p-10dlc">Twilio’s US registration guidance</a> and <a href="https://www.twilio.com/en-us/guidelines/in/sms">India SMS guidelines</a> explain these distinctions.</p><p><strong>Engineering implication:</strong> Treat sender configuration as destination-specific infrastructure, not a single global environment variable. Store the destination country, sender configuration, message category, and registration status alongside the relevant routing configuration.</p><h3>2. Message costs depend on more than volume</h3><p>SMS pricing is not always a simple cost per notification. The total depends on the destination country, provider, sender type, message encoding, number of billable segments, and applicable carrier or registration fees.</p><p>A message that looks short in your code can also become more expensive because of its character encoding.</p><h3>Where SuprSend fits</h3><p>SuprSend can sit above SMS delivery providers as part of a broader notification workflow, helping teams coordinate notifications across channels and provider integrations. This is useful when SMS is one part of a system that also handles email, push, or other product notifications.</p><p>It does not remove the need to validate destination-specific carrier rules, sender registrations, consent, message content, and provider delivery semantics. Those requirements still need to be verified for the chosen routes and current product configuration.</p><p>For a small application sending a single SMS type, a direct integration with an SMS provider may be simpler and less expensive. A notification platform becomes more worth evaluating when multiple channels, templates, preferences, and workflows need centralized management. SuprSend’s current integrations and capabilities should be verified against its <a href="https://docs.suprsend.com/">official documentation</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ni2TDNA190ggnnO-.jpg" /><figcaption>Suprsend</figcaption></figure><h3>The hidden cost of one character</h3><p>SMS commonly uses GSM-7 encoding for supported characters and UCS-2 encoding for messages containing characters outside that character set. The available space per segment differs:</p><ul><li>GSM-7: up to 160 characters for a single segment.</li><li>UCS-2: up to 70 characters for a single segment.</li><li>Longer messages use concatenated segments, with lower per-segment character limits because of the metadata required to reassemble them.</li></ul><p>For example, a message containing 140 ordinary GSM-7 characters can fit in one segment. If a non-GSM character, such as a curly quotation mark or an emoji, changes the encoding to UCS-2, that same message may require two segments.</p><p>Each segment can be billed separately. At scale, inconsistent message formatting can therefore create avoidable costs. See the <a href="https://www.twilio.com/docs/glossary/what-sms-character-limit">Twilio SMS character-limit documentation</a> for encoding details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/0*L2UtcqGnJsGV-YOM" /><figcaption>Twilio</figcaption></figure><h3>Make segment count visible before sending</h3><p>Do not rely on character count alone. Calculate or preview the actual encoding and segment count using the selected provider’s tools, especially when templates include dynamic content, emojis, localized text, or URLs.</p><p>A practical approach is to establish a message budget for each notification type. Keep OTPs concise, avoid unnecessary copy in transactional messages, and test templates using realistic names, order references, and other variable-length fields.</p><p>Also monitor spending by destination country and message category. A sudden increase in the number of segments per notification can be an early signal of a template change, encoding issue, or unexpected payload.</p><h3>3. Country rules belong in the system design</h3><p>International SMS is not one uniform delivery channel. Countries and carriers can impose different requirements for sender registration, consent, message content, permitted sending times, throughput, and opt-out handling.</p><p>A template approved for one destination may not be valid for another. Likewise, a sender ID that works in one market may be unsupported or require registration elsewhere.</p><p>India illustrates why routing and compliance need to be considered together. Domestic SMS delivery can involve DLT registration and approved templates, while international routes into India may use different sender identification and routing arrangements. Those routes can also have different prices. Check the provider’s current documentation before assuming one configuration works for all Indian recipients. <a href="https://docs.aws.amazon.com/sms-voice/latest/userguide/registrations-sms-senderid-india-routes.html">AWS’s India SMS routing guidance</a> describes the distinction.</p><h3>Build a destination-aware policy layer</h3><p>Avoid scattering country-specific if statements throughout application code. Instead, centralize the configuration and decisions needed before sending:</p><ol><li>Normalize and validate the recipient’s phone number.</li><li>Determine the destination country.</li><li>Check whether the message type and sender configuration are supported.</li><li>Verify required registrations, approved templates, consent, and opt-out status.</li><li>Select an eligible provider route.</li><li>Record the decision and submit the message.</li></ol><p>This policy layer should fail safely when a required registration or configuration is missing. It should not silently fall back to an unapproved route just because the primary route is unavailable.</p><p>Compliance is not only a legal concern. Incorrect templates, sender IDs, or consent handling can cause filtering, delivery failures, and disruption to important product workflows.</p><h3>4. Design retries and fallbacks carefully</h3><p>Retries can help when a provider experiences a temporary network failure or rate limit. But retrying every failed request indefinitely can increase costs, overload providers, and delay messages that are no longer useful.</p><p>Classify failures before deciding what to do. Temporary provider errors may be retryable; invalid numbers, rejected sender IDs, and prohibited content generally require a configuration or data fix.</p><p>Use bounded retries with exponential backoff, respect provider rate limits, and retain enough information to investigate permanent failures. An idempotency key can help prevent the same logical notification from being submitted repeatedly by your own application, but it cannot guarantee exactly-once delivery if a provider accepts a request and the response is lost.</p><p>Fallbacks also need a product-level policy. If an OTP SMS is delayed, sending the same code through another channel might be useful in some workflows, but duplicate messages can confuse recipients or create security concerns. Decide which messages qualify for fallback and when a fallback should stop.</p><h3>Final thoughts: Treat SMS as a regional delivery system</h3><p>Reliable SMS requires more than a successful API request. The system needs destination-aware routing, accurate cost estimates, valid sender configurations, compliance checks, and explicit failure handling.</p><p>Before launching SMS in a new market, verify the sender ID and registration requirements, test message encoding and segment counts, confirm opt-in and opt-out behavior, and monitor delivery outcomes by country and provider.</p><p>SMS remains useful for time-sensitive and actionable communication, but it is not a universally interchangeable channel. Design around its limitations from the beginning, and you will avoid turning carrier rules and billing surprises into production incidents.</p><h3>Official documentation</h3><ul><li><a href="https://docs.suprsend.com/">SuprSend documentation</a></li><li><a href="https://www.twilio.com/docs/messaging/guides/sending-international-sms-guide">Twilio: International SMS guide</a></li><li><a href="https://www.twilio.com/docs/glossary/what-sms-character-limit">Twilio: SMS character limits and encoding</a></li><li><a href="https://docs.aws.amazon.com/sms-voice/latest/userguide/registrations-sms-senderid-india-routes.html">AWS: SMS routing in India</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14623c2ff10b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Designing a Notification Service From Scratch]]></title>
            <link>https://medium.com/@ethanparker141992/designing-a-notification-service-from-scratch-1c06df45a35a?source=rss-e28474942252------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c06df45a35a</guid>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[backend-engineering]]></category>
            <category><![CDATA[suprsend]]></category>
            <category><![CDATA[systems-thinking]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Ethan Parker]]></dc:creator>
            <pubDate>Fri, 23 Oct 2026 07:01:03 GMT</pubDate>
            <atom:updated>2026-10-25T16:50:37.786Z</atom:updated>
            <content:encoded><![CDATA[<p><em>An engineering guide to APIs, queues, delivery workers, retries, and the trade-offs behind building notification infrastructure.</em></p><p>A notification service looks simple until multiple product teams depend on it. What begins as an email triggered by an application event can grow into a system responsible for recipient preferences, multiple delivery channels, retries, deduplication, and delivery tracking.</p><p>Disclosure: I work at SuprSend, a notification infrastructure platform. The engineering principles in this article apply whether you build your own service, integrate directly with delivery providers, or adopt a dedicated notification platform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*N0odZYwJvHydDlh6.png" /><figcaption>notification service</figcaption></figure><h3>1. Start with the requirements, not the queue</h3><p>The first design decision is not whether to use Kafka, RabbitMQ, or a managed queue. It is deciding what the notification service must guarantee.</p><p>Consider an e-commerce application. When an order is shipped, the order service emits an event. The notification service uses that event to identify the recipient, select the appropriate notification policy, render the message, and submit it to a delivery provider.</p><p>This sounds straightforward, but several requirements appear almost immediately:</p><ul><li>The order service should not wait for an email provider to respond before completing an unrelated business operation.</li><li>A temporary provider outage should not permanently lose a notification.</li><li>Reprocessing an event should not create uncontrolled duplicate messages.</li><li>Users should receive messages through appropriate channels and according to their preferences.</li><li>Engineers should be able to trace a notification from the original event to its final known delivery status.</li></ul><p>These requirements should guide the architecture.</p><h3>Define the service contract</h3><p>Start by deciding what the service accepts and what it promises in return.</p><p>A minimal API might expose the following endpoints:</p><p>EndpointResponsibilityPOST /v1/notificationsAccept a notification requestGET /v1/notifications/{id}Return the notification&#39;s processing statusGET /healthReport application health</p><p>These are proposed endpoints for an in-house design, not endpoints from any particular vendor.</p><p>The submission endpoint should validate the request, authenticate the caller, and persist the notification request or a durable job before returning an accepted response. An HTTP 202 Accepted response means processing has been accepted; it does not mean the email, push notification, or SMS has reached its recipient.</p><p>This distinction is important because clients need to know whether the system has accepted responsibility for the work, while operators need to know whether that work eventually succeeded.</p><p>Next, define the service’s nonfunctional requirements: expected request volume, acceptable processing latency, retention period, security boundaries, availability objectives, and recovery expectations.</p><p>Do not choose infrastructure before these requirements are clear.</p><h3>2. Separate the API, queue, worker, and delivery provider</h3><p>The core architecture should separate request acceptance from notification delivery.</p><p>A practical first version consists of four components:</p><p><strong>API layer.</strong> Validates incoming requests, authenticates callers, applies rate limits, and persists notification jobs.</p><p><strong>Durable queue or job store.</strong> Holds accepted work until a worker can process it. This might be a managed message queue, a database-backed job table, or an existing task-processing system.</p><p><strong>Delivery workers.</strong> Load the job, evaluate notification rules, render the message, and call the appropriate provider.</p><p><strong>Status and observability layer.</strong> Records processing outcomes, provider responses, retry attempts, and operational metrics.</p><h3>Diagram: From API request to delivery</h3><p><strong>Alt text:</strong> A notification request enters an API, is stored durably, waits in a queue, passes through a worker, and is sent to a channel provider. Processing status and failures are recorded separately.</p><pre>Application<br>     |<br>     v<br>Notification API<br>     |<br>     v<br>Validation + Persistence<br>     |<br>     v<br>Durable Queue / Job Store<br>     |<br>     v<br>Delivery Worker<br>     |<br>     +----&gt; Preferences + Templates<br>     |<br>     v<br>Channel Adapter<br>     |<br>     +----&gt; Email Provider<br>     +----&gt; Push Provider<br>     +----&gt; SMS Provider<br>     |<br>     v<br>Status Store + Metrics + Logs</pre><p><em>Caption: A logical architecture for a notification service. Each component represents a responsibility; it does not have to be deployed as a separate service.</em></p><p>The main benefit is isolation. If an email provider becomes slow, workers can retry or accumulate jobs without forcing the application’s order-processing path to wait for every delivery attempt.</p><p>The queue also gives the system a place to absorb temporary bursts. However, a queue does not eliminate capacity limits: if incoming work consistently exceeds processing capacity, the backlog will continue to grow.</p><h3>Make persistence reliable</h3><p>There is an important failure case when notifications originate from business events.</p><p>Suppose an order service commits an order to its database and then publishes an order.shipped event. If the process crashes between those two operations, the order exists but the event may never be published.</p><p>The transactional outbox pattern addresses this dual-write problem by recording the business change and the associated event in the same database transaction. A separate publisher reads the outbox and forwards events to the messaging system.</p><p>The outbox publisher may publish an event more than once, so consumers must still handle duplicate processing.</p><p>AWS documents the pattern, its implementation options, and these limitations in its <a href="https://docs.aws.amazon.com/prescriptive-guidance/latest/cloud-design-patterns/transactional-outbox.html">Transactional outbox guidance</a>.</p><p>For an early-stage product, a database-backed job table may be enough. Introduce a separate broker when the workload, isolation requirements, or operational needs justify it.</p><h3>3. Design the data model before adding more channels</h3><p>A notification service needs to represent both the original request and the work performed to deliver it.</p><p>A useful starting point is to separate the notification record from its delivery attempts.</p><p>The notification record stores the logical message: its identifier, recipient, notification type, payload, creation time, and overall processing status.</p><p>A delivery-attempt record stores channel-specific information: provider, attempt number, provider reference, timestamps, and error details.</p><p>For example, an order-shipped notification might have one logical notification record and separate delivery attempts for email and push. This makes it possible to distinguish a failed push attempt from a successful email submission without creating unrelated copies of the original business event.</p><p>A relational schema could begin with two tables:</p><pre>CREATE TABLE notifications (<br>    id UUID PRIMARY KEY,<br>    recipient_id TEXT NOT NULL,<br>    event_type TEXT NOT NULL,<br>    idempotency_key TEXT NOT NULL UNIQUE,<br>    payload JSONB NOT NULL,<br>    status TEXT NOT NULL,<br>    created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()<br>);</pre><pre>CREATE TABLE delivery_attempts (<br>    id UUID PRIMARY KEY,<br>    notification_id UUID NOT NULL<br>        REFERENCES notifications(id),<br>    channel TEXT NOT NULL,<br>    attempt_number INTEGER NOT NULL,<br>    status TEXT NOT NULL,<br>    provider_message_id TEXT,<br>    error_code TEXT,<br>    created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),<br>    UNIQUE (notification_id, channel, attempt_number)<br>);</pre><p>This is a PostgreSQL-oriented starting schema, not a complete production migration. It assumes PostgreSQL support for UUID, JSONB, and TIMESTAMPTZ; verify the database version and migration conventions before using it.</p><p>The unique idempotency key prevents two records from being created with the same logical request key. The delivery-attempt constraint prevents duplicate attempt numbers for the same notification and channel.</p><p>Neither constraint alone guarantees that a recipient receives exactly one message. That depends on how the service coordinates database transactions, workers, and provider calls.</p><h3>Treat status as a state machine</h3><p>Avoid a single Boolean field such as sent.</p><p>A notification may move through states such as:</p><ul><li>accepted</li><li>queued</li><li>processing</li><li>submitted</li><li>delivered</li><li>failed</li></ul><p>The exact states depend on the providers and channels involved. For example, a provider may confirm acceptance without offering a reliable signal that the recipient’s device displayed the notification.</p><p>Store delivery-attempt status separately when different channels can succeed or fail independently. Define allowed state transitions and make status updates safe under concurrent processing.</p><p>This gives the API a useful contract and makes operational investigations much easier.</p><h3>4. Build a minimal API, then add reliable delivery</h3><p>The following example demonstrates the request-acceptance layer using Node.js 20 or later and only built-in modules. It is a complete, runnable demonstration of an HTTP endpoint, but it is deliberately not a production notification service: requests are stored in memory, and delivery is simulated.</p><p>Save the file as server.mjs.</p><pre>import { createServer } from &quot;node:http&quot;;<br>import { randomUUID } from &quot;node:crypto&quot;;</pre><pre>const jobs = new Map();</pre><pre>const server = createServer(async (req, res) =&gt; {<br>  if (req.method !== &quot;POST&quot; ||<br>      req.url !== &quot;/v1/notifications&quot;) {<br>    res.writeHead(404).end(&quot;Not found&quot;);<br>    return;<br>  }</pre><pre>  let body = &quot;&quot;;</pre><pre>  for await (const chunk of req) {<br>    body += chunk;<br>    if (body.length &gt; 16_384) {<br>      res.writeHead(413).end(&quot;Payload too large&quot;);<br>      return;<br>    }<br>  }</pre><pre>  try {<br>    const input = JSON.parse(body);</pre><pre>    if (!input.recipientId || !input.type) {<br>      res.writeHead(400).end(&quot;Missing required fields&quot;);<br>      return;<br>    }</pre><pre>    const id = randomUUID();<br>    jobs.set(id, {<br>      id,<br>      recipientId: input.recipientId,<br>      type: input.type,<br>      status: &quot;accepted&quot;<br>    });</pre><pre>    console.log(&quot;Accepted notification:&quot;, id);</pre><pre>    res.writeHead(202, {<br>      &quot;content-type&quot;: &quot;application/json&quot;<br>    });<br>    res.end(JSON.stringify({ id, status: &quot;accepted&quot; }));<br>  } catch {<br>    res.writeHead(400).end(&quot;Invalid JSON&quot;);<br>  }<br>});</pre><pre>server.listen(3000, () =&gt; {<br>  console.log(&quot;Listening on http://localhost:3000&quot;);<br>});</pre><p>Run it with Node.js 20 or later:</p><pre>node server.mjs</pre><p>Submit a test request from another terminal:</p><pre>curl -X POST http://localhost:3000/v1/notifications \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{&quot;recipientId&quot;:&quot;user_123&quot;,&quot;type&quot;:&quot;order.shipped&quot;}&#39;</pre><p>The server returns a generated notification ID and an accepted status.</p><h3>What this example establishes</h3><p>The example separates request validation from downstream work and gives the caller a stable identifier for the accepted request. It also places a limit on the request body to avoid accepting arbitrarily large payloads.</p><p>However, it does not persist jobs across restarts, authenticate callers, deduplicate requests, or send any real messages. The Map is only an in-memory store, and the endpoint does not implement a worker.</p><p>Those omissions are intentional. The example illustrates the API boundary, not the entire service.</p><p>For a production implementation, replace the in-memory store with a durable database and enqueue jobs transactionally or use a transactional outbox. Add authentication, authorization, schema validation, request timeouts, rate limiting, and structured logging.</p><p>Then implement a worker that claims jobs safely, applies the notification policy, renders templates, and submits delivery attempts through channel adapters.</p><h3>Add retries and idempotency</h3><p>External providers can fail temporarily because of network issues, throttling, or service outages. Retrying these failures can improve reliability, but retrying every error is not a safe policy.</p><p>Use bounded exponential backoff for retryable failures, respect provider rate limits, and distinguish transient errors from permanent errors. A malformed recipient address, for example, generally needs correction rather than repeated submission.</p><p>AWS explains these considerations in its <a href="https://docs.aws.amazon.com/prescriptive-guidance/latest/cloud-design-patterns/retry-backoff.html">Retry with backoff pattern</a>.</p><p>Idempotency is equally important. A worker can time out after a provider accepts a message but before the worker records the result. Retrying the job may then send a duplicate.</p><p>Use stable request keys, database constraints, safe worker-claiming mechanisms, and provider-supported idempotency where available. If the provider cannot deduplicate requests, document the remaining duplicate-delivery window rather than promising exactly-once delivery.</p><p>Finally, move permanently failing jobs into a dead-letter queue or equivalent review mechanism. Retain enough diagnostic information to investigate failures and replay eligible jobs safely.</p><h3>5. Build in-house or use a notification platform?</h3><p>Once the architecture is clear, the implementation choice becomes easier. Building in-house provides control over the data model, processing semantics, and deployment, but the team must maintain provider integrations, templates, preferences, retries, and monitoring.</p><p>A dedicated notification platform can centralize some of these responsibilities. It also introduces a vendor dependency, configuration and migration considerations, and a need to validate how its delivery semantics fit the application.</p><p>Here are five options worth evaluating, with SuprSend listed first as requested.</p><h3>1. SuprSend</h3><p>SuprSend provides notification infrastructure for coordinating communication across channels, including email, push, Slack, and in-app inbox experiences. Its documented capabilities include workflows, templates, and user notification preferences.</p><p>It is worth evaluating when several product teams need a shared notification layer rather than maintaining separate delivery logic in each service.</p><p>Official resources: <a href="https://docs.suprsend.com/">SuprSend documentation</a> · <a href="https://www.suprsend.com/products/workflows">Workflows</a></p><p><strong>Potential limitation:</strong> It may be unnecessary for a product with one straightforward notification type and an existing provider integration. Evaluate supported channels, data handling, delivery guarantees, and total cost against the current requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*LH_zN0uLK1GNeVGK.jpg" /><figcaption>Suprsend</figcaption></figure><h3>2. Knock</h3><p>Knock provides product and customer messaging infrastructure, including cross-channel workflows, recipient preferences, and in-app notification experiences.</p><p>It is worth evaluating when notification logic needs to be managed across channels and product workflows rather than embedded in application code.</p><p>Official resource: <a href="https://docs.knock.app/">Knock documentation</a></p><p><strong>Potential limitation:</strong> A dedicated messaging layer adds another system to configure and operate. Check whether its workflow model and integrations match the team’s existing architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_3pJxHvr2NZWyH41.png" /><figcaption>Knock</figcaption></figure><h3>3. Novu</h3><p>Novu provides notification infrastructure with workflows and channel integrations. Its documentation describes workflow-based orchestration for delivery logic, message content, and execution rules.</p><p>It is worth evaluating when a team wants to centralize notification workflows and assess an open-source-oriented option alongside hosted alternatives.</p><p>Official resources: <a href="https://www.novu.co/">Novu</a> · <a href="https://docs.novu.co/platform/workflow/overview">Workflow documentation</a></p><p><strong>Potential limitation:</strong> Open-source availability does not remove the operational work of running, securing, upgrading, and monitoring a self-hosted deployment. Confirm which capabilities are available in the chosen deployment model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1Bag0y1dTGz7nPAd" /><figcaption>Novu</figcaption></figure><h3>4. Courier</h3><p>Courier provides a notification platform with APIs, templates, and integrations for delivery providers and communication channels.</p><p>It is worth evaluating when a team wants an API-based notification layer that coordinates message creation and delivery without implementing every provider integration independently.</p><p>Official resource: <a href="https://www.courier.com/docs/">Courier documentation</a></p><p><strong>Potential limitation:</strong> Verify the supported integrations, pricing, data requirements, and workflow capabilities against the actual product specification. A platform’s availability does not guarantee that every required channel or regional provider is supported.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Nwc9eluB1WFpthXp.png" /><figcaption>Courier</figcaption></figure><h3>5. OneSignal</h3><p>OneSignal provides messaging capabilities for channels including push notifications, email, SMS, and in-app messaging, with APIs and SDKs for supported applications.</p><p>It is worth evaluating when push messaging and user engagement are central requirements, while also checking whether its transactional notification capabilities meet the product’s needs.</p><p>Official resource: <a href="https://documentation.onesignal.com/">OneSignal documentation</a></p><p><strong>Potential limitation:</strong> A team building complex backend-driven notification workflows should validate the required orchestration, preference model, provider controls, and delivery tracking rather than choosing a platform based only on its push capabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IJ-wybBTe3NHSk9R.png" /><figcaption>One Signal</figcaption></figure><h3>How to make the decision</h3><p>RequirementIn-house serviceDedicated platformCustom business rulesFull implementation controlDepends on supported APIs and workflowsProvider integrationBuild and maintain adaptersUse supported integrationsData and deployment controlGreater direct controlDepends on hosting and product architectureOperational workloadOwned by your teamSome responsibilities are delegatedVendor dependencyLower platform dependencyAdds a platform dependencyInitial implementationRequires engineering effortCan reduce some implementation work</p><p>The comparison is directional, not a benchmark. Actual cost and implementation time depend on the team’s existing infrastructure, required channels, delivery volume, and operational needs.</p><p>A useful rule is to build the business-specific parts yourself and evaluate whether the generic notification infrastructure is worth delegating. Your application should remain responsible for defining what happened and who is entitled to know; the notification layer can manage how that information is delivered</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c06df45a35a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Notifications Are a Product Feature, Not an Afterthought]]></title>
            <link>https://medium.com/@ethanparker141992/notifications-are-a-product-feature-not-an-afterthought-5adc0353ea74?source=rss-e28474942252------2</link>
            <guid isPermaLink="false">https://medium.com/p/5adc0353ea74</guid>
            <category><![CDATA[suprsend]]></category>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[notifications]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Ethan Parker]]></dc:creator>
            <pubDate>Thu, 22 Oct 2026 06:31:02 GMT</pubDate>
            <atom:updated>2026-10-22T06:31:02.044Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How to design notification systems that are useful to users, reliable under failure, and maintainable as products grow.</em></p><p>A notification is often treated as the final step in a feature: an order gets placed, a payment succeeds, or a comment arrives, and the application sends a message. The harder engineering problem is deciding what deserves a notification, when it should arrive, which channel makes sense, and what happens when delivery fails.</p><p>Disclosure: I work at SuprSend, a notification infrastructure platform. This article focuses on the underlying engineering principles, which apply whether you build notification infrastructure in-house or use a dedicated service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XatvjtJte7_rwCM6" /><figcaption>notification</figcaption></figure><h3>1. A notification is part of the product experience</h3><p>A notification is not simply a message sent by a backend service. It is a promise to the user that the product will communicate something relevant at the right time.</p><p>Consider an e-commerce application. A customer places an order and expects confirmation. Later, the order is shipped, a payment may require attention, or a delivery date may change. Each message helps the customer understand the state of an operation they care about.</p><p>Now consider the same application sending a push notification for every internal inventory update, database retry, or background job completion. The system might be functioning correctly, but the experience would be poor. Users would receive implementation details instead of useful information.</p><p>This distinction matters because <strong>a technically successful notification is not necessarily a good notification</strong>.</p><p>Before implementing a new notification, answer three questions:</p><ul><li>What user need does this message address?</li><li>What action or decision should it help the user make?</li><li>What happens if the user never receives it?</li></ul><p>These questions establish the product requirement before the engineering implementation.</p><p>For example, an order confirmation usually needs to establish that the purchase was accepted. A delivery exception may require the customer to take action. A promotional message, on the other hand, may be useful but should not interrupt the user at an inconvenient moment.</p><p>Those messages should not automatically share the same delivery policy.</p><h3>Model the event before the message</h3><p>A common architectural mistake is coupling business logic directly to a communication channel.</p><p>Imagine an order service that updates the database and immediately sends an email. As the product grows, the same code path may also need to send a push notification, create an in-app message, and notify an internal operations team.</p><p>Without a clear separation of responsibilities, channel-specific logic spreads across business services. A change to notification preferences or message formatting can then require modifications to code that should only be responsible for managing orders.</p><p>Instead, separate the business event from the notification decision.</p><p>An event describes something that happened in the product. A notification policy determines whether that event should produce a message, who should receive it, and how it should be delivered.</p><p>For example:</p><ul><li>Business event: order.shipped</li><li>Recipient: the customer who owns the order</li><li>Notification category: order updates</li><li>Message: the order has shipped</li><li>Possible channels: email or push, depending on the product’s policy and the user’s preferences</li></ul><p>The event remains meaningful even if the application changes its email provider, adds a mobile application, or introduces another notification channel.</p><p>That is the foundation of a maintainable notification architecture.</p><h3>2. Design the architecture around events, policies, and delivery</h3><p>A notification system becomes easier to maintain when its responsibilities are explicit.</p><p>A useful logical architecture has five stages:</p><ol><li><strong>Business event:</strong> An order, payment, or other domain operation reaches a meaningful state.</li><li><strong>Event transport:</strong> The event is persisted and made available to downstream processing.</li><li><strong>Notification policy:</strong> The system evaluates the recipient, notification category, user preferences, urgency, and deduplication rules.</li><li><strong>Delivery:</strong> A worker renders the message and sends it through the selected channel and provider.</li><li><strong>Observability:</strong> The system records processing outcomes and exposes failures for investigation.</li></ol><p>The components do not all need to be separate services. A small application can implement them as modules in one codebase, while a larger system may use queues, workers, and dedicated notification infrastructure.</p><p>The important decision is to keep the responsibilities separate, even when the deployment is simple.</p><h3>Diagram: A notification pipeline</h3><p><strong>Alt text:</strong> A business event flows through durable event transport, notification policy evaluation, and channel-specific delivery. Delivery outcomes feed into monitoring and failure handling.</p><pre>┌──────────────────────┐<br>│ Business Service     │<br>│ Order / Payment      │<br>└──────────┬───────────┘<br>           │<br>           ▼<br>┌──────────────────────┐<br>│ Persisted Event      │<br>│ Event ID + Payload   │<br>└──────────┬───────────┘<br>           │<br>           ▼<br>┌──────────────────────┐<br>│ Notification Policy  │<br>│ Recipient, Category, │<br>│ Preferences, Rules   │<br>└──────────┬───────────┘<br>           │<br>           ▼<br>┌──────────────────────┐<br>│ Delivery Worker      │<br>│ Template + Channel   │<br>└──────────┬───────────┘<br>           │<br>      ┌────┴─────┐<br>      ▼          ▼<br>   Email        Push<br>      │          │<br>      └────┬─────┘<br>           ▼<br>┌──────────────────────┐<br>│ Delivery Outcomes    │<br>│ Logs, Retries, Alerts│<br>└──────────────────────┘</pre><p><em>Caption: A logical notification architecture. The diagram shows responsibilities rather than a requirement to deploy every component as a separate service.</em></p><h3>Make event persistence part of the design</h3><p>Asynchronous processing is useful because a temporary email-provider failure should not necessarily prevent an order from being placed.</p><p>However, simply publishing an event after committing a database transaction introduces a failure window. The order might be saved successfully, but the application could crash before publishing the event. The business operation would succeed while its expected notification never enters the pipeline.</p><p>The transactional outbox pattern addresses this problem by writing the business change and an associated event record within the same database transaction. A separate publisher then forwards the event to the messaging system.</p><p>The publisher may deliver an event more than once, so consumers must still handle duplicates safely. The outbox does not make downstream delivery magically exactly once; it improves the reliability of transferring committed business changes into asynchronous processing.</p><p>AWS Prescriptive Guidance documents this pattern and its associated trade-offs: <a href="https://docs.aws.amazon.com/prescriptive-guidance/latest/cloud-design-patterns/transactional-outbox.html">https://docs.aws.amazon.com/prescriptive-guidance/latest/cloud-design-patterns/transactional-outbox.html</a></p><p>For a small product, a database-backed job table may be sufficient. A system with many independent consumers may benefit from a message broker or event bus. Choose the simplest architecture that satisfies the product’s reliability and throughput requirements.</p><h3>3. Notification policies should control timing, channels, and preferences</h3><p>Once the event pipeline exists, the next question is how the system decides what to send.</p><p>A notification policy is the set of rules that turns an event into an appropriate communication. It should not be scattered across individual business services or hidden inside channel-specific code.</p><p>Start with three distinct concerns.</p><h3>Relevance and urgency</h3><p>Not every event deserves an immediate interruption.</p><p>A security alert may require prompt delivery. A payment failure may need an actionable message. Several low-priority product updates may be better grouped into a digest rather than delivered individually.</p><p>The policy should consider the event’s business meaning, not simply the fact that it occurred.</p><p>For example, if a customer changes an order’s delivery address several times, sending a new notification for every intermediate update may create unnecessary noise. Depending on the workflow, the application might notify the customer only when the final change is saved.</p><p>The right behavior depends on the product contract. The goal is not to minimize the number of notifications at all costs; it is to send the messages that help users understand or act on important changes.</p><h3>User preferences</h3><p>Users should have meaningful control over nonessential communications.</p><p>A preference model should distinguish notification categories from delivery channels. A user might want order updates by email, security alerts through a more immediate channel, and product announcements disabled.</p><p>Representing those choices explicitly makes the system easier to reason about than maintaining unrelated Boolean flags across application services.</p><p>A simple policy evaluation might look like this:</p><pre>event = order.shipped<br>recipient = order.customer</pre><pre>if recipient is missing:<br>    stop processing</pre><pre>if event is already processed:<br>    stop duplicate processing</pre><pre>if order update notifications are disabled:<br>    apply the product&#39;s documented policy</pre><pre>otherwise:<br>    select eligible channels<br>    render the message<br>    enqueue delivery attempts</pre><p>This is pseudocode, not a runnable implementation. It illustrates the decision sequence; production systems must define the preference semantics, persistence, concurrency handling, and delivery behavior.</p><p>Transactional and legally required communications may have different rules from optional marketing messages. Do not assume that every notification can be disabled in the same way, or that every message can be sent regardless of consent and applicable law.</p><h3>Channel selection</h3><p>Email, push, SMS, and in-app notifications serve different purposes.</p><p>Email is useful when the user needs a record they can revisit. Push can bring an important update to a mobile device, but it depends on device permissions and delivery conditions. In-app messages can provide context while the user is already using the product. SMS can be appropriate for some time-sensitive workflows, but its cost, privacy implications, and regional requirements deserve consideration.</p><p>A multi-channel strategy should not mean sending every message everywhere.</p><p>It should mean choosing a channel based on the user’s preferences, the importance of the event, and the nature of the information. A fallback channel can be useful when a primary channel fails, but the fallback must not create duplicate or contradictory communications.</p><p>For example, a provider’s acceptance of an email request does not prove that the user read the email. Likewise, a successful push-provider response does not necessarily prove that the user saw the notification.</p><p>Define what each delivery status actually means before using it in product analytics.</p><h3>4. Reliability requires retries, idempotency, and observability</h3><p>A notification system crosses several failure boundaries: databases, queues, workers, external providers, and recipient devices. Each boundary introduces different failure modes.</p><p>A successful request to an external provider is only one step in the process. The system must also account for timeouts, rate limits, transient errors, duplicate events, delayed jobs, and permanent delivery failures.</p><h3>Retry only when retrying makes sense</h3><p>Transient errors can often be resolved by trying again. Examples include temporary network failures, provider throttling, and short-lived service outages.</p><p>Exponential backoff increases the delay between retry attempts. A maximum retry count and a maximum processing age prevent a failed message from consuming resources indefinitely.</p><p>Retries should also respect provider guidance, including rate-limit responses and any applicable retry-after instructions. Permanent failures, such as invalid recipient information, generally require a different response from temporary infrastructure failures.</p><p>AWS explains the retry-with-backoff pattern and its limitations here: <a href="https://docs.aws.amazon.com/prescriptive-guidance/latest/cloud-design-patterns/retry-backoff.html">https://docs.aws.amazon.com/prescriptive-guidance/latest/cloud-design-patterns/retry-backoff.html</a></p><h3>Make processing idempotent</h3><p>Idempotency means that processing the same logical operation more than once does not create additional unintended effects.</p><p>This is particularly important in notification systems because queue consumers can receive duplicate messages, and a worker may time out after a provider has accepted a request without receiving the response.</p><p>Suppose an order.shipped event is processed twice. Without deduplication, the customer could receive two identical emails.</p><p>A practical approach is to assign a stable event ID and maintain a delivery record using a key such as:</p><p>event_id + recipient_id + notification_type + channel</p><p>The exact key depends on the product’s requirements. A notification that is intentionally sent more than once, such as a scheduled reminder, needs a distinct logical occurrence identifier.</p><p>A database uniqueness constraint can help prevent duplicate delivery jobs from being created concurrently. However, marking a job complete before contacting the provider can lose messages, while marking it complete afterward can leave a duplicate-send window if the worker crashes at the wrong time.</p><p>Provider-supported idempotency keys, when available, can reduce this risk. Otherwise, document the remaining failure window and design the user experience to tolerate occasional duplicates where strict prevention is impossible.</p><h3>Measure the complete pipeline</h3><p>A single metric called “notifications sent” is not enough to understand reliability.</p><p>Track the stages separately:</p><ul><li>Events created and persisted.</li><li>Events waiting to be processed.</li><li>Notifications accepted for delivery.</li><li>Provider acceptance, delivery, bounce, or failure where the provider supplies those signals.</li><li>Retry counts and dead-letter queue volume.</li><li>Time spent waiting and processing.</li><li>Duplicate suppression and preference-based suppression.</li></ul><p>Use correlation IDs to connect the business event, notification decision, delivery attempt, and provider response. This makes it possible to investigate a missing order confirmation without searching unrelated logs manually.</p><p>A dead-letter queue can retain messages that exceed their retry policy so engineers can inspect and, when appropriate, replay them. Replaying messages must preserve idempotency and account for whether the underlying business state has changed.</p><p>Operational monitoring should also distinguish a delivery outage from a legitimate reduction in notification volume. A drop in messages could indicate a provider problem, a broken event publisher, or simply fewer qualifying business events.</p><h3>5. Build in-house or use notification infrastructure?</h3><p>Building notification infrastructure in-house can be the right choice, especially when the product has a small number of communication types, limited channel requirements, and strong reasons to keep the implementation inside existing services.</p><p>A basic implementation may need only a database table, a background worker, an email integration, and enough monitoring to diagnose failures. There is no inherent need to introduce a distributed architecture before the product requires one.</p><p>The trade-off changes as the system grows.</p><p>Multiple channels introduce different providers, delivery semantics, templates, and configuration requirements. User preferences add another layer of product logic. More complex workflows may require scheduling, conditional delivery, message grouping, localization, and operational tooling.</p><p>At that point, the team is no longer maintaining only an email function. It is maintaining a communication subsystem.</p><p>This is where a dedicated notification platform may be worth evaluating.</p><p>SuprSend is one option for orchestrating notifications across channels and managing notification workflows and preferences. It can be evaluated alongside in-house development and other notification infrastructure services when a team wants to centralize parts of its communication pipeline. Its current capabilities, supported integrations, pricing, and delivery guarantees should be verified against the official documentation before choosing it.</p><p>A platform is not automatically the right answer. If a product sends one simple email type, an existing provider integration may be cheaper and easier to operate. A dedicated service also introduces a dependency, another operational boundary, and potential migration costs.</p><p>The decision should follow the complexity of the problem rather than a preference for adding infrastructure.</p><h3>A practical decision framework</h3><p>Build in-house when:</p><ul><li>The number of notification types and channels is small.</li><li>The team can own delivery failures, preferences, templates, and monitoring.</li><li>The existing stack already satisfies the required reliability and operational needs.</li><li>The cost and complexity of another service exceed its expected benefits.</li></ul><p>Evaluate dedicated infrastructure when:</p><ul><li>Several teams are implementing similar notification logic independently.</li><li>Channel integrations and template management are becoming difficult to maintain.</li><li>Notification preferences and workflows need centralized control.</li><li>Engineers need better visibility into notification processing and delivery outcomes.</li></ul><p>Whichever approach you choose, keep the business event contract under your control. The order service should describe what happened; the notification layer should determine how that event becomes a useful communication.</p><p>That separation makes future changes easier, regardless of which tools the team uses.</p><h3>Closing checklist: treat notifications as part of the feature</h3><p>Before releasing a notification-dependent feature, check the following:</p><ul><li>The notification has a clear user purpose.</li><li>The business event is emitted only after the relevant state change is committed.</li><li>Event persistence and publication failures are handled.</li><li>Duplicate events cannot create uncontrolled duplicate notifications.</li><li>Recipient identity and user preferences are evaluated correctly.</li><li>Channel selection and fallback behavior are documented.</li><li>Retries, timeouts, and permanent failures have explicit policies.</li><li>Logs and metrics let engineers trace an event through the delivery pipeline.</li><li>Sensitive information is not exposed through inappropriate channels.</li><li>The team has decided which parts to own and which parts to delegate.</li></ul><p>Notifications are easy to underestimate because the first implementation often looks straightforward. The complexity emerges later, when channels multiply, user expectations change, providers fail, and the system must explain what happened to a message.</p><p>The best time to address that complexity is when designing the feature, not after users begin reporting missing, duplicated, or irrelevant messages.</p><p>A notification should be treated like any other product capability: it needs a clear purpose, a defined contract, reliable execution, and a way to measure whether it is working.</p><h3>Further reading: official documentation</h3><ul><li>AWS Prescriptive Guidance — <a href="https://docs.aws.amazon.com/prescriptive-guidance/latest/cloud-design-patterns/transactional-outbox.html">Transactional outbox pattern</a></li><li>AWS Prescriptive Guidance — <a href="https://docs.aws.amazon.com/prescriptive-guidance/latest/cloud-design-patterns/retry-backoff.html">Retry with backoff pattern</a></li><li>AWS Prescriptive Guidance — <a href="https://docs.aws.amazon.com/prescriptive-guidance/latest/modernization-integrating-microservices/asynchronous.html">Asynchronous communication</a></li><li>SuprSend — <a href="https://docs.suprsend.com/">Official documentation</a></li><li>SuprSend — <a href="https://www.suprsend.com/products/workflows">Notification workflows</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5adc0353ea74" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transactional vs.]]></title>
            <link>https://medium.com/@ethanparker141992/transactional-vs-ae6a1feba743?source=rss-e28474942252------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae6a1feba743</guid>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[notifications]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ecommerce]]></category>
            <dc:creator><![CDATA[Ethan Parker]]></dc:creator>
            <pubDate>Wed, 21 Oct 2026 09:57:35 GMT</pubDate>
            <atom:updated>2026-10-21T09:57:35.188Z</atom:updated>
            <content:encoded><![CDATA[<h3>Transactional vs. Promotional vs. Operational Notifications: An Engineer’s Guide to Getting Them Right</h3><p><em>Your order confirmation, a discount campaign, and a payment-system alert might all arrive as notifications. But they shouldn’t be designed, prioritised, or managed in the same way.</em></p><p>Imagine you’re building an e-commerce platform.</p><p>A customer places an order and expects a confirmation. Later that afternoon, your marketing team wants to send them a discount on related products. Meanwhile, your engineering team discovers that the payment service is experiencing elevated failure rates.</p><p>All three situations might generate messages. But each has a different purpose, urgency, audience, and set of rules.</p><p>Treating them as one generic notification system creates unnecessary complexity. It can also lead to missed updates, excessive messaging, and operational problems that become harder to debug as the product grows.</p><p>As an engineer thinking about scalable systems, I’d start by separating notifications into three categories: transactional, promotional, and operational.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JbVXjAFtFDv11elx" /></figure><h3>1. Transactional notifications: communicate what the user needs to know</h3><p>Transactional notifications are triggered by a user’s action or a specific business event. Their primary purpose is to confirm an action, communicate a status, or provide information directly related to the user’s account or transaction.</p><p>Think about what happens after a customer places an order.</p><p>They expect to know whether the order was accepted, whether payment succeeded, and when their package is likely to arrive.</p><p>Typical examples include:</p><ul><li>Order confirmations and receipts.</li><li>Password-reset instructions and authentication codes.</li><li>Payment confirmations and refund updates.</li><li>Shipping and delivery status notifications.</li><li>Important account-security alerts.</li></ul><p>These messages are closely connected to the product’s core functionality. If they fail, the consequences can extend beyond a missed email. A customer might retry a payment, contact support, or lose confidence in the checkout experience.</p><h3>What matters from an engineering perspective?</h3><p><strong>Reliability:</strong> A successful business transaction should not silently lose its corresponding notification event.</p><p><strong>Timeliness:</strong> A security code and a shipping update don’t necessarily have the same urgency. Delivery expectations should reflect the use case.</p><p><strong>Idempotency:</strong> Duplicate events shouldn’t accidentally generate duplicate messages. A retry strategy needs to account for the possibility that a provider accepted a request even if the application didn’t receive the response.</p><p><strong>Observability:</strong> Engineers need to trace a notification from the original event through workflow execution and the downstream provider’s response.</p><p>One architectural principle matters here: creating an order and delivering an order-confirmation email are separate operations.</p><p>The order service should own the transaction. A durable event-publishing mechanism, such as a transactional outbox, can help prevent the event from being lost when database updates and event publishing don’t succeed together.</p><p>A notification workflow can then process the event independently.</p><p>For teams managing these requirements across several channels, <a href="https://www.suprsend.com/use-cases/transactional">SuprSend’s transactional notification capabilities</a> are worth evaluating. Its platform supports centralised notification workflows, multi-channel delivery, and delivery visibility.</p><h3>2. Promotional notifications: communicate value without creating noise</h3><p>Promotional notifications exist to encourage engagement, purchases, or other business outcomes.</p><p>Examples include:</p><ul><li>A seasonal sale announcement.</li><li>A discount on products related to a previous purchase.</li><li>A new collection launch.</li><li>A personalised offer.</li><li>A campaign encouraging customers to return to the store.</li></ul><p>Unlike a password reset or order confirmation, a promotional message is usually not necessary to complete a transaction already in progress.</p><p>That distinction changes how the system should behave.</p><h3>What matters from an engineering perspective?</h3><p><strong>Audience selection:</strong> The system should identify eligible recipients rather than broadcast every campaign to every user.</p><p><strong>Consent and preferences:</strong> Marketing communication must respect applicable consent, opt-out, and channel-specific requirements.</p><p><strong>Frequency management:</strong> Multiple campaigns should not overwhelm the same customer.</p><p><strong>Experimentation:</strong> Campaign performance should be measured through meaningful outcomes, such as conversions or incremental revenue — not merely the number of messages sent.</p><p><strong>Separation from critical traffic:</strong> A large promotional campaign shouldn’t interfere with the timely processing of security alerts or important transaction updates.</p><p>Consider an abandoned-cart campaign.</p><p>A customer adds a pair of shoes to their cart but leaves without checking out. A reminder might be useful after an appropriate delay. But the customer could complete the purchase before that reminder is sent.</p><p>The workflow should check the relevant state again before sending. Otherwise, the system might promote a purchase that has already happened.</p><p>This is where event-triggered workflows, conditional checks, and scheduled delays can make a difference.</p><p>A platform such as <a href="https://www.suprsend.com/">SuprSend</a> can help centralise this orchestration. The business still needs to define the eligibility rules, consent requirements, and campaign strategy.</p><p>The objective isn’t to maximise notification volume. It’s to send messages that are relevant enough to justify the interruption.</p><h3>3. Operational notifications: keep the people running the system informed</h3><p>Operational notifications are primarily intended to help teams monitor, troubleshoot, and maintain systems or business processes.</p><p>Examples include:</p><ul><li>An alert when payment failures exceed a defined threshold.</li><li>A notification that a background queue is accumulating work.</li><li>A warning about an integration that is repeatedly failing.</li><li>An alert when a scheduled data pipeline misses its expected completion time.</li><li>A notification to an internal team when a business process requires intervention.</li></ul><p>These messages are often directed to engineers, on-call responders, support teams, or operations staff rather than end customers.</p><p>There is an important distinction, though: <em>operational notification</em> is not a universally separate category. An order-status message can be operational from the business’s perspective while still being transactional from the customer’s perspective.</p><p>The useful distinction is the notification’s purpose and recipient.</p><h3>What matters from an engineering perspective?</h3><p><strong>Actionability:</strong> An alert should explain what happened, how serious it is, and where to investigate.</p><p><strong>Severity and routing:</strong> A critical incident shouldn’t be treated like an informational update.</p><p><strong>Noise reduction:</strong> Repeated alerts for the same underlying incident can make teams less responsive to genuinely important problems.</p><p><strong>Escalation:</strong> Critical issues may require escalation if nobody acknowledges them within the expected timeframe.</p><p><strong>Traceability:</strong> The alert should connect to the relevant logs, dashboards, incident records, or runbooks.</p><p>For example, if payment failures rise sharply, the monitoring system might trigger an alert to the on-call engineer through the team’s incident-management tooling.</p><p>That alert is different from telling an individual customer that their payment failed. The former helps the team investigate the system; the latter communicates the status of a customer’s transaction.</p><p>Both can originate from related events, but they should have different audiences, content, urgency, and handling rules.</p><h3>4. The differences at a glance</h3><p>DimensionTransactionalPromotionalOperationalPrimary purposeConfirm an action or communicate a relevant statusEncourage engagement or a business outcomeHelp teams monitor and operate systemsTypical recipientCustomer or account holderEligible customer or user segmentEngineer, on-call responder, or operations teamCommon triggerOrder, payment, account, or security eventCampaign schedule or customer behaviourMetric threshold, failure, or process eventTimingUsually prompt, based on the eventDepends on relevance and campaign timingDepends on severity and required responseKey concernCorrectness and reliabilityRelevance, consent, and frequencyActionability and signal-to-noise ratioUseful metricsEvent-to-notification latency, failure rate, duplicate rateConversion, incremental lift, opt-outsDetection time, acknowledgement time, alert noise</p><p>These categories help establish different requirements before implementation. They don’t necessarily require three entirely separate notification platforms.</p><h3>5. What happens when you mix all three?</h3><p>Consider an e-commerce application that sends order confirmations, promotional campaigns, and engineering alerts through the same tightly coupled implementation.</p><p>As the product grows, several problems can appear.</p><p><strong>A promotional campaign competes with important traffic.</strong> A large campaign may consume resources needed for time-sensitive notifications if the architecture lacks appropriate isolation or prioritisation.</p><p><strong>Business logic becomes duplicated.</strong> Multiple services independently implement templates, retry rules, and recipient preferences.</p><p><strong>Failures become difficult to investigate.</strong> A marketing delivery issue, an order-event failure, and a system alert may be spread across different logs and services without a consistent correlation strategy.</p><p><strong>The customer experience becomes inconsistent.</strong> A customer may receive messages from multiple features without a shared understanding of preferences or frequency.</p><p>These are not inevitable consequences of sending different notification types. They are design problems that can be addressed through clearer boundaries, appropriate prioritisation, and centralised workflow management.</p><h3>6. A scalable architecture starts with the event</h3><p>For an e-commerce system, I’d design the notification layer around business events and explicit responsibilities.</p><p>A simplified flow looks like this:</p><pre>Business services<br>       |<br>       v<br>  Domain events<br>       |<br>       v<br>Event processing layer<br>       |<br>       v<br>Notification workflows<br>       |<br>       +--&gt; Transactional messages<br>       |<br>       +--&gt; Promotional campaigns<br>       |<br>       +--&gt; Operational alerts<br>       |<br>       v<br>Channel providers and internal tools<br>       |<br>       v<br>Logs, metrics, and delivery outcomes</pre><p>This is a conceptual architecture, not a requirement to implement every component as a separate service.</p><p>The key design choices are more important than the diagram itself.</p><h3>Keep business events independent of message content</h3><p>An event such as ORDER_CONFIRMED should describe what happened. It shouldn&#39;t need to know the exact email template or promotional copy that will be sent.</p><p>That separation makes it easier to change communication without rewriting core business logic.</p><h3>Apply different policies to different categories</h3><p>Transactional messages may need prompt processing and careful duplicate handling. Promotional campaigns need audience eligibility, frequency controls, and consent checks. Operational alerts need severity, routing, and escalation rules.</p><p>The same orchestration layer can support these workflows, provided their requirements are explicitly modelled.</p><h3>Make failure handling observable</h3><p>Track the event, workflow execution, and downstream delivery attempt. Distinguish between an event that was never processed, a workflow that failed, a provider that rejected a request, and a message whose final delivery status is unknown.</p><p>These states require different responses.</p><h3>Avoid treating provider acceptance as proof of delivery</h3><p>A successful API response doesn’t necessarily mean the recipient saw the message. Delivery and engagement signals depend on the channel and provider, so metrics should reflect what is actually observable.</p><h3>7. Where a notification platform fits</h3><p>Building a notification layer in-house can make sense when the requirements are narrow and the team is prepared to maintain it.</p><p>But as the product adds channels, workflows, templates, preference management, and operational visibility, the maintenance cost can grow.</p><p>This is where I’d evaluate a dedicated notification infrastructure platform.</p><p><a href="https://docs.suprsend.com/">SuprSend’s documentation</a> describes its notification workflows and developer integration options. Its <a href="https://www.suprsend.com/post/suprsend-for-transactional-messaging-reliable-real-time-multi-channel-delivery">transactional messaging overview</a> discusses multi-channel delivery, retries, fallback routing, and observability.</p><p>For an e-commerce team, I’d assess whether a platform can help:</p><ul><li>Centralise notification templates and workflow logic.</li><li>Trigger messages from application events.</li><li>Apply conditional rules and delays where appropriate.</li><li>Manage user preferences across relevant channels.</li><li>Investigate workflow executions and provider failures.</li><li>Keep notification changes manageable as the product evolves.</li></ul><p>I’d also verify how it fits with the existing queueing, incident-management, analytics, and compliance architecture. Not every operational alert belongs in a customer-notification platform, and not every product needs every capability.</p><p>The right approach is to define the requirements first, then decide what to build and what to adopt.</p><h3>8. A practical checklist before shipping</h3><p>Before introducing a new notification type, I’d ask:</p><ul><li>Who is the recipient: a customer, a user segment, or an internal team?</li><li>What event or condition triggers the message?</li><li>Is the message required for a transaction, intended to promote engagement, or intended to support operations?</li><li>How quickly does it need to be processed?</li><li>What happens if the triggering event arrives twice?</li><li>What happens if a provider times out or rejects the request?</li><li>Which consent, preference, and compliance requirements apply?</li><li>Can we trace the message’s execution and determine what went wrong?</li><li>Are we measuring the outcome that actually matters?</li></ul><p>Answering these questions early can prevent a simple messaging feature from becoming an unreliable collection of integrations.</p><h3>Final thoughts</h3><p>Transactional, promotional, and operational notifications may share delivery channels, but they solve different problems.</p><p>Transactional messages help users understand what happened. Promotional messages offer relevant reasons to engage. Operational alerts help teams detect and respond to problems.</p><p>The mistake is treating them as interchangeable just because all three involve sending a message.</p><p>For engineers, the opportunity is to design a shared foundation with clear policies for each category. That means separating business events from message logic, handling failures deliberately, respecting preferences, and making execution observable.</p><p>As an e-commerce product scales, these decisions become part of the customer experience and the reliability of the platform itself.</p><p>The goal isn’t to build one system that sends everything in exactly the same way. It’s to build infrastructure that understands why each message exists — and handles it accordingly.</p><h3>Further reading</h3><ul><li><a href="https://www.suprsend.com/use-cases/transactional">SuprSend — Transactional notifications</a></li><li><a href="https://www.suprsend.com/post/suprsend-for-transactional-messaging-reliable-real-time-multi-channel-delivery">SuprSend — Transactional messaging architecture</a></li><li><a href="https://docs.suprsend.com/">SuprSend — Developer documentation</a></li><li><a href="https://www.suprsend.com/">SuprSend — Official website</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae6a1feba743" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I’d Build E-commerce Notifications at Scale Using SuprSend]]></title>
            <link>https://medium.com/@ethanparker141992/how-id-build-e-commerce-notifications-at-scale-using-suprsend-121192f88f48?source=rss-e28474942252------2</link>
            <guid isPermaLink="false">https://medium.com/p/121192f88f48</guid>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[suprsend]]></category>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Ethan Parker]]></dc:creator>
            <pubDate>Mon, 19 Oct 2026 07:10:36 GMT</pubDate>
            <atom:updated>2026-10-19T07:10:36.418Z</atom:updated>
            <content:encoded><![CDATA[<p><em>From order confirmations to delivery updates, here’s how a notification infrastructure can help e-commerce developers simplify communication without complicating the backend.</em></p><p>When you’re building an e-commerce platform, notifications rarely seem complicated at first.</p><p>A customer places an order, and you send an email. The package ships, and you send an update. A payment fails, and you notify the customer.</p><p>A few API calls, a messaging provider, and some templates seem sufficient.</p><p>But as the application grows, the complexity changes.</p><p>You introduce more communication channels, support additional customer journeys, handle retries, manage user preferences, and coordinate messages across multiple services. Suddenly, notification logic is spread throughout the codebase, and even a small change can require engineering involvement.</p><p>As a software developer, I’d rather treat notifications as their own infrastructure layer than keep adding messaging logic to every business service.</p><p>One platform I’d consider for this is <a href="https://www.suprsend.com/"><strong>SuprSend</strong></a>, a notification infrastructure platform designed to orchestrate multi-channel communication through configurable workflows.</p><p>Here’s how I’d approach the architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qXFCSasQDxD_qzI9rTVjnQ.png" /></figure><h3>1. The Problem With Building Every Notification In-House</h3><p>Imagine a growing e-commerce application with the following services:</p><ul><li>Order management</li><li>Payment processing</li><li>Inventory management</li><li>Shipping and fulfilment</li><li>Customer accounts</li></ul><p>Each service can generate events that lead to customer or internal notifications.</p><p>The order service might trigger an order confirmation. The payment service might trigger a payment failure alert. The shipping service might trigger a dispatch update.</p><p>Initially, developers can implement these notifications directly in the relevant services. Over time, however, the application accumulates messaging logic, channel integrations, templates, retries, and conditional rules.</p><p>Now imagine the product team wants to add push notifications alongside email, or the operations team wants to change when delivery-delay alerts are sent.</p><p>Should engineers have to modify several services to make that happen?</p><p>This is where separating business logic from notification orchestration becomes useful.</p><p>The application should remain responsible for business events and their correctness. A dedicated notification layer can manage how those events turn into communication.</p><h3>2. Where SuprSend Fits Into the Architecture</h3><p><a href="https://www.suprsend.com/">SuprSend</a> provides a unified notification infrastructure for channels including email, SMS, mobile and web push, in-app inbox, and other supported messaging integrations.</p><p>Its central concept is the <strong>workflow</strong>: a configurable sequence that defines what triggers a notification, which logic applies, what content is used, and how the message is delivered.</p><p>Official documentation: <a href="https://docs.suprsend.com/">Introduction to SuprSend</a>.</p><p>For an e-commerce application, I’d consider using SuprSend to orchestrate workflows triggered by backend events.</p><p>A simplified architecture would look like this:</p><p>&lt;escape&gt; Customer action → E-commerce backend → Business event → SuprSend workflow → Notification channel → Customer &lt;/escape&gt;</p><p>For example, when an order is successfully created, the backend can trigger a workflow with the relevant recipient and order information. The workflow can then use that data to populate a notification template and deliver the message through the configured channel.</p><p>The important part is that the order service doesn’t need to own every detail of the notification’s content, routing, and delivery behaviour.</p><p>This separation can make the communication layer easier to maintain as the application grows.</p><h3>3. Trigger Workflows From Real Business Events</h3><p>One of the useful parts of SuprSend’s architecture is that workflows can be triggered through its APIs or supported SDKs.</p><p>Its <a href="https://docs.suprsend.com/reference/trigger-workflow-api">Trigger Workflow API documentation</a> describes the workflow identifier, recipients, event data, optional tenant context, and an idempotency key.</p><p>For an e-commerce application, I’d begin with a small number of clearly defined events:</p><p><strong>ORDER_CONFIRMED</strong></p><p>Triggered after the backend has successfully created the order and established its confirmed status.</p><p>The workflow can send an order confirmation containing the order reference and relevant details.</p><p><strong>ORDER_SHIPPED</strong></p><p>Triggered when the fulfilment or shipping system confirms dispatch.</p><p>The workflow can send a shipping update with the appropriate tracking information.</p><p><strong>PAYMENT_ACTION_REQUIRED</strong></p><p>Triggered when the payment system establishes that the customer needs to take further action.</p><p>The workflow can communicate the next steps using verified payment status data.</p><p>These are illustrative event names for an application design, not predefined SuprSend events.</p><p>I’d keep the event contract explicit and ensure that messages are triggered only after the relevant business state has been verified.</p><p>For further details, see the <a href="https://docs.suprsend.com/">SuprSend API documentation</a>.</p><h3>4. Use Workflow Logic Instead of Hardcoding Every Rule</h3><p>A notification workflow becomes particularly useful when not every event should produce the same communication.</p><p>Consider a delivery update.</p><p>A routine shipment-status change may require only an in-app update. A significant delay might justify an email or SMS. A high-priority operational exception might also need to alert an internal team.</p><p>Hardcoding every condition inside the shipping service can make the business logic increasingly difficult to maintain.</p><p>SuprSend’s <a href="https://www.suprsend.com/products/workflows">workflow engine</a> supports features such as branching, wait conditions, batching, and smart channel routing.</p><p>I’d use these capabilities to express communication rules in the workflow itself.</p><p>For example:</p><ul><li>If an order is confirmed, send the confirmation.</li><li>If a delivery exception occurs, send the appropriate update.</li><li>If several non-urgent updates arrive close together, consider grouping them.</li><li>If a workflow needs to wait for a customer action, use a condition-based sequence where appropriate.</li></ul><p>This gives the team a way to change communication behaviour without automatically requiring changes to the underlying business service.</p><p>The backend still needs to produce reliable events and enforce business rules. Workflow configuration should not become a substitute for validating payments, inventory, or order status.</p><h3>5. Reduce Notification Noise With Batching and Channel Routing</h3><p>Sending more notifications doesn’t necessarily create a better customer experience.</p><p>Imagine a customer receives separate messages for order processing, warehouse assignment, packaging, dispatch preparation, and minor tracking changes.</p><p>Even if every message is technically correct, the overall experience can become noisy.</p><p>I’d distinguish between events that require immediate communication and events that can be grouped into a useful update.</p><p>SuprSend’s workflow capabilities include batching and smart channel routing, which can help teams control how notifications are grouped and delivered. &lt;Cite refs={[“turn605340search1”,”turn605340search2&quot;]}/&gt;</p><p>For example, a workflow could be designed to:</p><ul><li>Send a critical update promptly.</li><li>Group related, non-urgent activity into a digest.</li><li>Route a notification according to the user’s available channels and configured preferences.</li></ul><p>The exact configuration would depend on the customer journey and the urgency of the event.</p><p>For an e-commerce platform, I’d be particularly careful not to delay critical payment or order information simply to reduce message volume.</p><h3>6. Make Notification Preferences Part of the Product</h3><p>Customers don’t all want to receive the same kinds of messages in the same way.</p><p>Some prefer email for receipts, while others prefer push notifications for delivery updates. Many customers want transactional information but don’t want promotional messages.</p><p>I’d model these as distinct communication categories rather than treating every notification as equivalent.</p><p>SuprSend provides a <a href="https://www.suprsend.com/">Preference Center</a> with configurable notification preferences, including category and channel controls. Its platform also supports tenant-level preferences for relevant multi-tenant use cases. &lt;Cite refs={[“turn605340search2”,”turn605340search9&quot;]}/&gt;</p><p>For an e-commerce application, I’d use this as a starting point for giving customers meaningful control over optional communication.</p><p>The implementation would still need to define which messages are transactional, which are optional, and which consent and regulatory requirements apply.</p><p>The goal is to make the notification experience configurable without scattering preference checks throughout the application.</p><h3>7. Debug Notifications Like Any Other Production System</h3><p>One question I’d ask before adopting any notification platform is simple:</p><p>When a customer says they never received an order confirmation, how quickly can the engineering team find out what happened?</p><p>A useful investigation needs to distinguish several possibilities:</p><ul><li>The business event was never generated.</li><li>The workflow wasn’t triggered correctly.</li><li>The notification was routed through an unexpected channel.</li><li>The provider rejected or failed to deliver the message.</li><li>The notification was delivered, but the customer couldn’t find it.</li></ul><p>SuprSend provides notification execution logs and workflow-level visibility to help investigate the path from trigger to delivery. &lt;Cite refs={[“turn605340search1”,”turn605340search2&quot;]}/&gt;</p><p>I’d combine this visibility with application-side monitoring for event generation, processing failures, and duplicate events.</p><p>That distinction matters because a notification platform cannot compensate for an incorrect business event. If an application reports that an order has shipped before the fulfilment system confirms dispatch, a perfectly executed workflow can still send the wrong message.</p><p>Reliability starts with trustworthy data and continues through the delivery pipeline.</p><h3>8. How I’d Start the Integration</h3><p>I wouldn’t migrate every notification at once.</p><p>I’d begin with one contained workflow and validate the full integration before expanding it.</p><p>My initial rollout would look like this:</p><p><strong>Step 1: Select one use case.</strong></p><p>Start with order confirmation, where the trigger and expected message are easy to define.</p><p><strong>Step 2: Define the event contract.</strong></p><p>Decide which service emits the event, what data it contains, and which system is authoritative for the order status.</p><p><strong>Step 3: Configure the workflow in SuprSend.</strong></p><p>Set up the trigger, recipient, template, channel, and relevant conditions.</p><p><strong>Step 4: Test failure scenarios.</strong></p><p>Test malformed payloads, repeated events, provider failures, and retry behaviour. Use idempotency where appropriate, and don’t assume that a successful API response means the customer has received the message.</p><p><strong>Step 5: Monitor the results.</strong></p><p>Track workflow execution, delivery outcomes, latency, and failures.</p><p><strong>Step 6: Expand gradually.</strong></p><p>Once the first workflow is working reliably, consider shipping updates, payment-related communications, and other relevant journeys.</p><p>This approach limits the initial scope while giving the team a chance to evaluate the platform against real requirements.</p><h3>Final Thoughts</h3><p>E-commerce notifications may begin as a handful of emails, but they can eventually become a complex part of the application architecture.</p><p>As that complexity grows, separating business events from notification orchestration can help keep the backend cleaner and make communication workflows easier to manage.</p><p>SuprSend is worth evaluating for this use case because it brings workflow orchestration, multi-channel delivery, preference management, and notification observability into a dedicated infrastructure layer.</p><p>I’d still validate its behaviour, integration requirements, reliability characteristics, and cost against the needs of the actual application before making it a core dependency.</p><p>The objective isn’t to introduce another tool just for the sake of it.</p><p><strong>It’s to let the application focus on processing orders correctly while giving the engineering team a more manageable way to coordinate the messages customers depend on.</strong></p><p>Explore the platform: <a href="https://www.suprsend.com/">SuprSend</a></p><p>Explore the technical documentation: <a href="https://docs.suprsend.com/">SuprSend Docs</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=121192f88f48" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>