1 comments

  • b_llc2 days ago
    A stateless pattern I use to batch telemetry at the edge while driving Cloudflare write costs to zero.
    • fwlr1 hour ago
      Cool pattern. Critics will say “falsehoods programmers believe about time” but it’s a cloud service, any time oddity that would break this would also break a lot more important stuff, so it’s fine.<p>Ugly code though.<p><pre><code> &#x2F;&#x2F; env QUEUES = [EVEN_QUEUE, ODD_QUEUE] &#x2F;&#x2F; producers env.QUEUES[hour % 2].send … &#x2F;&#x2F; consumer env.QUEUES[1 + hour % 2]</code></pre>