<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: David</title>
    <description>The latest articles on DEV Community by David (@heydavy).</description>
    <link>https://dev.to/heydavy</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4152639%2F61ecbd1a-a6d5-4c47-8913-0353158aec1b.jpg</url>
      <title>DEV Community: David</title>
      <link>https://dev.to/heydavy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/heydavy"/>
    <language>en</language>
    <item>
      <title>I didn't want Redis + workers just to run an HTTP request later</title>
      <dc:creator>David</dc:creator>
      <pubDate>Wed, 30 Sep 2026 16:00:11 +0000</pubDate>
      <link>https://dev.to/heydavy/i-didnt-want-redis-workers-just-to-run-an-http-request-later-1b9n</link>
      <guid>https://dev.to/heydavy/i-didnt-want-redis-workers-just-to-run-an-http-request-later-1b9n</guid>
      <description>&lt;p&gt;A common requirement in backend applications sounds simple:&lt;/p&gt;

&lt;p&gt;"Do this later."&lt;/p&gt;

&lt;p&gt;Maybe it's sending an email, processing an order, calling another service, generating something asynchronously or retrying a failed operation.&lt;/p&gt;

&lt;p&gt;But the architecture can quickly become:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;API → Redis → Queue → Worker → Retry Logic → Monitoring&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;There's nothing wrong with that architecture. For complex background processing, it's often exactly what you want.&lt;/p&gt;

&lt;p&gt;But I started wondering about the simpler case.&lt;/p&gt;

&lt;p&gt;What if the job is already representable as an HTTP request?&lt;/p&gt;

&lt;p&gt;That's the idea behind a project I've been building called &lt;strong&gt;Asynclay&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The model is intentionally narrow:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;application → Asynclay → HTTP endpoint&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The application submits a target URL, payload and optional execution time.&lt;/p&gt;

&lt;p&gt;Asynclay persists the job, executes it independently, retries failures and records what happened.&lt;/p&gt;

&lt;p&gt;Building it led me much deeper into distributed systems than I expected.&lt;/p&gt;

&lt;p&gt;The dispatcher uses PostgreSQL &lt;code&gt;FOR UPDATE SKIP LOCKED&lt;/code&gt; to allow multiple instances to claim work without normally processing the same job concurrently.&lt;/p&gt;

&lt;p&gt;Jobs use leases so a worker dying halfway through execution doesn't leave them stuck forever.&lt;/p&gt;

&lt;p&gt;Delivery is at-least-once rather than pretending exactly-once HTTP delivery exists, so targets receive a stable job identifier they can use for idempotency.&lt;/p&gt;

&lt;p&gt;Retries use backoff and failed executions remain observable.&lt;/p&gt;

&lt;p&gt;And because users can provide arbitrary target URLs, the executor also needs to treat every outbound request as potentially hostile — including SSRF, private IP ranges, DNS changes and redirects.&lt;/p&gt;

&lt;p&gt;The result is deliberately not an alternative to every queue or workflow system.&lt;/p&gt;

&lt;p&gt;If you need complex workflows, CPU-heavy processing, custom workers or complete control over infrastructure, tools such as BullMQ and dedicated workers make much more sense.&lt;/p&gt;

&lt;p&gt;The use case I'm interested in is narrower:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"I have an HTTP endpoint. Execute it later and make sure failures are retried."&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I'm reaching the stage where feedback from actual developers is more useful than adding another feature.&lt;/p&gt;

&lt;p&gt;Asynclay is available here:&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://asynclay.com/" rel="noopener noreferrer" class="c-link"&gt;
            Asynclay — Schedule HTTP Jobs &amp;amp; Webhooks With Automatic Retries
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            Schedule delayed HTTP callbacks with automatic retries, idempotency and full execution logs through a simple REST API. Free tier included.
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fasynclay.com%2Ffavicon.ico" width="16" height="16"&gt;
          asynclay.com
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;I'd particularly like to hear where you think this model breaks down — or what would prevent you from trusting an external service with background execution.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>javascript</category>
      <category>api</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
