Urgent.News

What's breaking now, across thousands of outlets.

Tech

Building an x402-aware crawler in Go: what Cloudflare's Monetization Gateway means for web scraping

57% of internet traffic today is AI and web scraping bots — up from just 20% in 2021. For site owners, this has meant a frustrating binary: block bots using services like Cloudflare or Akamai and risk cutting off legitimate AI traffic, or allow them and get nothing in return. x402 offers a third path. HTTP 402 — "Payment Required" — has existed in the spec since 1991 but was never practically…

Cloudflare has reclaimed approximately 100TB of RAM without altering any physical RAM modules in its servers. The company achieved this by redesigning the memory layout of each DNS cache entry. Systems engineer Sebastiaan Neuteboom detailed five Rust-level changes in a technical blog post, which reduced the size of each cached entry from 953 bytes to 420 bytes, while simultaneously increasing the cache's performance.

Insert throughput improved by 43%, and lookup latency decreased by 19%. These changes equate to the combined DDR5 memory of 130 servers, making the most of the high cost of server-grade DDR5 memory. The first of the five changes involved replacing Rust's growable Vec and String containers with fixed-size boxed slices, which saved over 15TB of memory by eliminating capacity fields that were never used once cached.

Other modifications included collapsing three record lists in every DNS response into one buffer, indexing them with 2-byte offsets, and dropping redundant owner names that duplicated the queried domain. This last change, storing record data as length-prefixed raw wire-format bytes, also improved CPU cache locality, resulting in faster copy operations from the stored buffer to outgoing responses.

Cloudflare's benchmarks revealed that insert throughput increased from 625,000 to 893,000 entries per second, while lookup latency decreased from 828 to 670 nanoseconds. Over the rollout, which spanned from mid-May to early July, p99 resident memory per instance fell from 9.3GB to 5.3GB. This memory-efficient strategy is Cloudflare's second large memory-reclamation project in the past year, following the FL2 rewrite of its request-handling layer in Rust last September.

The company continues to prioritize efficiency in its hardware choices, such as switching to AMD's 96-core EPYC 9684X for its Gen 12 servers. The reclaimed RAM will be used to bolster larger DNS caches, increasing hit rates and reducing query traffic to authoritative servers.

Written by urgent.news from Tom's Hardware's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

This story

This is one outlet's version. Read the fullest account.

Read the original at dev.to →

More in Tech

My test report printed "0/96, 0% pass rate". The truth was my account was out of credit

Something you can do right now Open any script you have that prints a score — an eval, a CI check, an audit tool, a health check — and ask it one question: If the infrastructure fails (out of credit…

  • Script printed false red light due to infrastructure failure
  • Author discovered missing question bank of 4 cases per skill
  • False red light removed after adding blind case classification

What Wallet Popups Don’t Tell You: A Developer-Friendly Guide to Web3 Permissions

A polished “Connect Wallet” button can make a Web3 app feel simple. One click, one popup, one confirmation. But the popup is only the final step of a much larger decision.

  • Wallet popups often conceal complex actions behind simple connection buttons.
  • Developers must distinguish request types clearly in user interfaces.
  • Strong Web3 products prioritize transparency and user understanding.

Building Roamstead: How Google Cloud Helped Me Create a Collaborative Housing Agent for Southeast Asia

Moving to another country can unlock a better quality of life, lower housing costs, and a new sense of possibility. But finding a home across borders is much harder than opening a real estate website…

  • Roamstead platform assists in finding housing abroad in Southeast Asia.
  • Google Cloud enabled Roamstead's creation as collaborative agentic system.
  • Platform presents curated catalog of 240 real property listings across three cities.

More from Sunday 30 August →