<?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[CodeX - Medium]]></title>
        <description><![CDATA[Everything connected with Tech &amp; Code. Follow to join our 1M+ monthly readers - Medium]]></description>
        <link>https://medium.com/codex?source=rss----29038077e4c6---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>CodeX - Medium</title>
            <link>https://medium.com/codex?source=rss----29038077e4c6---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 03:22:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/codex" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[Near 1 Trillion Parameter AI Model Just Ran on Public Infrastructure. Here’s What Made It Possible]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/codex/near-1-trillion-parameter-ai-model-just-ran-on-public-infrastructure-heres-what-made-it-possible-d3c4c80fb24f?source=rss----29038077e4c6---4"><img src="https://cdn-images-1.medium.com/max/1672/1*gLYgqBIimGXafd7HW88vbg.png" width="1672"></a></p><p class="medium-feed-snippet">You don&#x2019;t always need a purpose built cluster. You need software that respects your hardware&#x2019;s weakest link.</p><p class="medium-feed-link"><a href="https://medium.com/codex/near-1-trillion-parameter-ai-model-just-ran-on-public-infrastructure-heres-what-made-it-possible-d3c4c80fb24f?source=rss----29038077e4c6---4">Continue reading on CodeX »</a></p></div>]]></description>
            <link>https://medium.com/codex/near-1-trillion-parameter-ai-model-just-ran-on-public-infrastructure-heres-what-made-it-possible-d3c4c80fb24f?source=rss----29038077e4c6---4</link>
            <guid isPermaLink="false">https://medium.com/p/d3c4c80fb24f</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[PhynixAI]]></dc:creator>
            <pubDate>Thu, 03 Dec 2026 20:01:02 GMT</pubDate>
            <atom:updated>2026-12-04T03:15:00.369Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Mastering AI Coding Agents: The Six Thinking Skills Every Developer Needs]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/codex/mastering-ai-coding-agents-the-six-thinking-skills-every-developer-needs-6200b0119134?source=rss----29038077e4c6---4"><img src="https://cdn-images-1.medium.com/max/1145/1*I4ke2NsxUONMJqnrhxV-qA.png" width="1145"></a></p><p class="medium-feed-snippet">How to guide AI agents through requirements, coding, testing, and production decisions</p><p class="medium-feed-link"><a href="https://medium.com/codex/mastering-ai-coding-agents-the-six-thinking-skills-every-developer-needs-6200b0119134?source=rss----29038077e4c6---4">Continue reading on CodeX »</a></p></div>]]></description>
            <link>https://medium.com/codex/mastering-ai-coding-agents-the-six-thinking-skills-every-developer-needs-6200b0119134?source=rss----29038077e4c6---4</link>
            <guid isPermaLink="false">https://medium.com/p/6200b0119134</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Vijayaraghavn Ramalingam]]></dc:creator>
            <pubDate>Thu, 03 Dec 2026 12:46:01 GMT</pubDate>
            <atom:updated>2026-12-03T12:46:01.556Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[After Rust, Laravel Now Has Go: How to Try It from Scratch]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/codex/after-rust-laravel-now-has-go-how-to-try-it-from-scratch-28d31631e608?source=rss----29038077e4c6---4"><img src="https://cdn-images-1.medium.com/max/1672/1*-E5SBBo9Zi_6ziv-ajtTMQ.png" width="1672"></a></p><p class="medium-feed-snippet">In my last piece, we looked at Laravel Rust, and you might have thought, &#x201C;So Laravel isn&#x2019;t just PHP anymore.&#x201D; Well, the story isn&#x2019;t over.</p><p class="medium-feed-link"><a href="https://medium.com/codex/after-rust-laravel-now-has-go-how-to-try-it-from-scratch-28d31631e608?source=rss----29038077e4c6---4">Continue reading on CodeX »</a></p></div>]]></description>
            <link>https://medium.com/codex/after-rust-laravel-now-has-go-how-to-try-it-from-scratch-28d31631e608?source=rss----29038077e4c6---4</link>
            <guid isPermaLink="false">https://medium.com/p/28d31631e608</guid>
            <category><![CDATA[laravel-framework]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Developer Awam]]></dc:creator>
            <pubDate>Thu, 03 Dec 2026 08:18:54 GMT</pubDate>
            <atom:updated>2026-12-03T08:18:53.581Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Stop Building for Google Scale When You Have 1,000 Users]]></title>
            <link>https://medium.com/codex/stop-building-for-google-scale-when-you-have-1-000-users-b571179b972e?source=rss----29038077e4c6---4</link>
            <guid isPermaLink="false">https://medium.com/p/b571179b972e</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[mvp]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Saif Ur Rehman]]></dc:creator>
            <pubDate>Thu, 03 Dec 2026 08:18:49 GMT</pubDate>
            <atom:updated>2026-12-03T08:18:48.287Z</atom:updated>
            <content:encoded><![CDATA[<p>A practical guide to premature optimization, MVP backend architecture, and knowing when scalability actually matters.</p><p>Your product has 1,000 users. A teammate opens a planning document and proposes splitting the backend into microservices, adding Kafka, deploying Kubernetes, introducing read replicas, and preparing for “Google scale.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jxifRktO7yCjea8tBVpVfA.jpeg" /></figure><p>Meanwhile, users are abandoning onboarding because a dashboard request takes nine seconds. The database has no index on the column every list view filters by. A third-party API has no timeout. When it slows down, your entire request path slows down with it.</p><p>This is premature optimization in its most expensive form: building for a scale you do not have while neglecting the reliability problems you already have.</p><p>Premature optimization does not mean ignoring performance. Donald Knuth’s often-quoted line is more nuanced than the version usually repeated in engineering meetings: avoid small efficiencies most of the time, but identify and optimize the critical paths once you know where they are.</p><p>The goal is not to build an app that can never scale. The goal is to build the smallest system that works reliably today, remains understandable tomorrow, and can evolve when real usage gives you a reason to change it.</p><h3>Premature optimization is not poor architecture</h3><p>Premature optimization is adding infrastructure, abstraction, or performance work before you have evidence that it solves a real problem.</p><p><strong>It can look like this:</strong></p><ul><li>Splitting a working backend into six microservices because “we may need to scale.”</li><li>Adding Redis caching to every endpoint before identifying a hot read path.</li><li>Introducing Kafka because event-driven architecture sounds production-grade.</li><li>Sharding a database before the current database is close to a measurable limit.</li><li>Building multi-region active-active infrastructure before the product has meaningful traffic.</li><li>Creating generic plugin systems for requirements no customer has requested.</li></ul><p>Pragmatic software architecture is different. It makes deliberate choices that solve today’s problems without making tomorrow’s necessary changes unnecessarily expensive.</p><p>A modular monolith, a managed relational database, structured logs, metrics, error tracking, database migrations, and a simple deployment pipeline are not signs of an immature system. For many products with 1,000 users, they are a strong production foundation.</p><p>The distinction matters because “simple” should not mean careless. A single-service backend can still have poor data boundaries, no observability, unsafe migrations, and no recovery plan. Those problems do not disappear when you add microservices; they usually become harder to diagnose.</p><h3>Design for change, not for imaginary scale</h3><p>AWS Well-Architected guidance emphasizes designing for change rather than designing for a fixed end state. That principle is especially useful early in a product’s life, when the biggest risk is not insufficient scale — it is building the wrong product or making future product changes prohibitively expensive.</p><p>At 1,000 users, your architecture should make these changes reasonably safe:</p><ul><li>Add a new product feature.</li><li>Change a business rule.</li><li>Add a new integration.</li><li>Fix a production incident quickly.</li><li>Onboard another engineer.</li><li>Recover from a bad deployment.</li><li>Add a measured performance improvement.</li></ul><p><strong>It does not need to make these changes effortless:</strong></p><ul><li>Serve millions of concurrent users.</li><li>Support arbitrary multi-tenant isolation.</li><li>Process high-volume event streams.</li><li>Operate across multiple regions.</li><li>Support every possible future extension point.</li></ul><h3>A practical backend default</h3><p>For many early SaaS products, a sensible starting point is:</p><pre>Client<br>  → Load balancer<br>    → Stateless application instances<br>      → Managed PostgreSQL<br>      → Object storage<br>      → Background worker / queue, only when needed</pre><p>This is not “no architecture.” It is an architecture with clear responsibilities:</p><ul><li><strong>Stateless application layer:</strong> Handles HTTP requests and can be restarted or scaled horizontally.</li><li><strong>Managed database:</strong> Owns durable business data, transactions, constraints, and backups.</li><li><strong>Object storage:</strong> Stores files, exports, media, and other large binary data.</li><li><strong>Background workers:</strong> Handle work that should not block a user request.</li><li><strong>Observability:</strong> Tells you what the system is doing when something breaks.</li></ul><p>A modular monolith is often the best version of this approach. Keep modules separated by domain — such as accounts, billing, notifications, and core product functionality — but deploy them together until there is a concrete reason to separate them.</p><h3>Measure before you optimize</h3><p>You cannot make a good scaling decision without knowing what your system is actually doing.</p><p><strong>“1,000 users” is not a capacity specification. It does not tell you:</strong></p><ul><li>How many users are active at the same time.</li><li>How many requests each user makes.</li><li>Whether traffic is concentrated in one region or time zone.</li><li>Whether the product serves large files, runs AI inference, or performs expensive reports.</li><li>Whether a marketing campaign will create a 50x traffic spike.</li><li>Whether the bottleneck is the application, database, network, third-party API, or background job system.</li></ul><p>Before adding caching, replicas, queues, or a new service, collect evidence.</p><h3>Instrument the user journey</h3><p>Start with a small, consistent observability baseline:</p><ul><li>Request latency by route and status code.</li><li>Error rate by route and error type.</li><li>Database query duration and slow-query logs.</li><li>External API latency and failure rate.</li><li>Queue depth, processing latency, and retry rate.</li><li>CPU, memory, disk, and connection-pool utilization.</li><li>Business events, such as sign-ups, purchases, uploads, or failed jobs.</li></ul><p><strong>A basic request-timing middleware can provide immediate value:</strong></p><pre>@app.before_request<br>def start_request_timer():<br>    g.start_time = time.perf_counter()<br>    g.request_id = request.headers.get(&quot;X-Request-ID&quot;, str(uuid.uuid4()))<br><br>@app.after_request<br>def record_request_metrics(response):<br>    duration_ms = (time.perf_counter() - g.start_time) * 1000<br><br>    logger.info(<br>        &quot;request_completed&quot;,<br>        extra={<br>            &quot;request_id&quot;: g.request_id,<br>            &quot;method&quot;: request.method,<br>            &quot;path&quot;: request.path,<br>            &quot;status_code&quot;: response.status_code,<br>            &quot;duration_ms&quot;: round(duration_ms, 2),<br>        },<br>    )<br><br>    response.headers[&quot;X-Request-ID&quot;] = g.request_id<br>    return response</pre><p>This does not solve performance problems by itself. It gives you the evidence needed to decide whether there is a problem, where it lives, and whether it affects users.</p><h3>Define an SLO before choosing infrastructure</h3><p>Google SRE recommends defining service-level objectives in terms that matter to users, rather than treating infrastructure metrics as the primary measure of success.</p><p><strong>For example:</strong></p><pre>SLO: 99% of authenticated dashboard requests complete within 500 ms<br>over a rolling 28-day window.<br><br>Error budget: 1% of requests may exceed the target.</pre><p>That is more useful than “the server should use less than 70% CPU.” CPU utilization can be high while users are unaffected, or low while a database connection pool is exhausted and requests are timing out.</p><p><strong>Alert on symptoms first:</strong></p><ul><li>Availability fell below the objective.</li><li>Error rate increased.</li><li>p95 or p99 latency exceeded the target.</li><li>Background jobs are backing up.</li><li>A critical integration is failing.</li></ul><p>Then use logs, traces, and database metrics to identify the cause.</p><h3>Fix the bottlenecks you already have</h3><p>Most products with 1,000 users do not fail because they lack a service mesh. They fail because of avoidable application and data-access problems.</p><h3>Remove obvious database inefficiencies</h3><p>A common early failure is an unbounded query that becomes slower as data grows.</p><p><strong>Problematic pattern:</strong></p><pre># Loads every order into memory before filtering<br>orders = Order.objects.all()<br><br>recent_orders = [<br>    order for order in orders<br>    if order.created_at &gt;= thirty_days_ago<br>]</pre><p><strong>A better approach is to push filtering, ordering, and limits into the database:</strong></p><pre>recent_orders = (<br>    Order.objects<br>    .filter(created_at__gte=thirty_days_ago)<br>    .order_by(&quot;-created_at&quot;)<br>    .only(&quot;id&quot;, &quot;customer_id&quot;, &quot;total_amount&quot;, &quot;created_at&quot;)[:50]<br>)</pre><p>Also look for:</p><ul><li>Missing indexes on frequently filtered or sorted columns.</li><li>N+1 queries in list views.</li><li>Queries that load related records unnecessarily.</li><li>Missing pagination on admin dashboards and exports.</li><li>Long transactions that hold database connections.</li><li>Reports that run during peak traffic instead of in a background job.</li></ul><p>These fixes often deliver more value than adding a cache, a replica, or another service.</p><h3>Add timeouts and failure boundaries</h3><p>A slow dependency can take down an otherwise healthy application.</p><pre>response = requests.post(<br>    PAYMENT_API_URL,<br>    json=payload,<br>    timeout=(3, 10),<br>)</pre><p>For external calls, define:</p><ul><li>A connection timeout.</li><li>A read timeout.</li><li>A bounded retry policy.</li><li>A circuit breaker or failure threshold where appropriate.</li><li>A clear fallback behavior.</li><li>Metrics for latency, errors, and retries.</li></ul><p>Do not blindly retry every request. Retrying a non-idempotent payment request, for example, can create duplicate charges. Make the operation idempotent, use an idempotency key, or queue the work with careful delivery semantics.</p><h3>Use background work only when it is genuinely asynchronous</h3><p>Not every side effect needs a queue. But some work should not happen inside a user-facing request:</p><ul><li>Sending emails.</li><li>Generating PDFs or reports.</li><li>Processing uploads.</li><li>Calling slow third-party APIs.</li><li>Sending webhooks.</li><li>Running data exports.</li><li>Performing bulk updates.</li></ul><p>A queue is useful when the work is delayed, retryable, independent of the HTTP response, or likely to fail temporarily.</p><pre>def create_invoice(invoice_data):<br>    invoice = Invoice.objects.create(**invoice_data)<br><br>    deliver_invoice.delay(invoice.id)<br><br>    return invoice</pre><p>The request returns quickly, while the delivery job retries independently if the email provider is temporarily unavailable.</p><p>But do not introduce a queue merely to make the architecture look more sophisticated. A queue adds serialization, monitoring, retry handling, dead-letter handling, and operational complexity.</p><h3>The 1,000-user scaling blueprint</h3><p>A practical architecture for an early product should optimize for reliability, delivery speed, and operability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wbpuB3kn_PQkGa_ZpHHkRQ.png" /></figure><p>This does not mean a monolith is always correct. If your organization already has separate teams, independent release cadences, strict compliance boundaries, or a mature platform, services may be justified earlier. But the decision should be based on organizational and technical constraints — not the assumption that microservices are inherently more scalable.</p><h3>When caching is appropriate</h3><p>Add caching when you can identify a concrete benefit:</p><ul><li>A read-heavy endpoint repeatedly computes the same expensive result.</li><li>The data can tolerate a defined level of staleness.</li><li>You have a clear invalidation strategy.</li><li>The cache failure mode is understood.</li><li>You can measure the improvement.</li></ul><p>A cache is not free. It introduces stale data, invalidation complexity, serialization costs, and another dependency that can fail.</p><p><strong>Do not cache:</strong></p><ul><li>Highly personalized data without a careful key strategy.</li><li>Data that must always be current.</li><li>Results that are cheap to calculate.</li><li>Endpoints before you know their traffic pattern.</li><li>Everything “just in case.”</li></ul><h3>When a queue is appropriate</h3><p>Add a queue when work needs to be decoupled from the request path:</p><ul><li>The operation can safely run later.</li><li>The operation must survive transient third-party failures.</li><li>The operation is expensive and should not block the user.</li><li>You need retries, scheduling, or rate limiting.</li><li>You need to protect the database from bursty work.</li></ul><p>Do not add a queue because an email could theoretically be slow. If sending an email is fast, reliable, and non-critical, a direct call with a timeout may be simpler.</p><h3>When to add complexity</h3><p>Use triggers, not anxiety.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*um3OciQ4-jg2z8jiUF6oDw.png" /></figure><p>The important question is not, “Can this handle a million users?”</p><p>The better question is, “What evidence tells us the current system is approaching a limit, and what is the smallest change that removes that constraint?”</p><h3>A migration and adoption checklist</h3><p>Before changing your architecture, verify:</p><ul><li>You have a defined availability, latency, and error-rate target.</li><li>You have production metrics for the affected user journeys.</li><li>You have identified the actual bottleneck with profiling, tracing, or database analysis.</li><li>You have a rollback plan for the change.</li><li>Database migrations are backward-compatible where possible.</li><li>Backups exist and have been restored in a test environment.</li><li>External calls have timeouts, bounded retries, and failure handling.</li><li>Background jobs are idempotent or safe to retry.</li><li>Load tests reflect realistic traffic, not only synthetic happy paths.</li><li>Alerts point to user-facing symptoms, not just infrastructure noise.</li><li>The team understands the operational cost of the new component.</li><li>The change solves a current, measurable problem.</li></ul><p>If you cannot explain the problem a new architectural component solves, the metric that proves it is needed, and the way you will operate it, wait.</p><h3>Build for evidence, not fear</h3><p>A system with 1,000 users does not need to be built for Google’s traffic. It needs to be built well enough that its first real growth problem is visible, diagnosable, and fixable.</p><p><strong>Invest early in:</strong></p><ul><li>Clear module boundaries.</li><li>A reliable database and backup strategy.</li><li>Observability.</li><li>Safe migrations.</li><li>Sensible timeouts and retries.</li><li>A deployment process that supports rollback.</li><li>Load testing before major launches.</li></ul><p><strong>Delay investing in:</strong></p><ul><li>Microservices.</li><li>Database sharding.</li><li>Complex event-driven systems.</li><li>Multi-region deployments.</li><li>Kubernetes without an operational reason.</li><li>Caches without a measured need.</li></ul><p>The best architecture is not the one that looks most impressive in a system-design discussion. It is the one that lets a small team ship value quickly, operate the product confidently, and scale deliberately when the evidence says it is time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b571179b972e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codex/stop-building-for-google-scale-when-you-have-1-000-users-b571179b972e">Stop Building for Google Scale When You Have 1,000 Users</a> was originally published in <a href="https://medium.com/codex">CodeX</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exactly Once Processing is a Lie. Here is What We Do Instead]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/codex/exactly-once-processing-is-a-lie-here-is-what-we-do-instead-2124a047ceaa?source=rss----29038077e4c6---4"><img src="https://cdn-images-1.medium.com/max/2600/0*idNZmbvWXdj430px" width="6000"></a></p><p class="medium-feed-snippet">Stop Chasing Guarantees. Build for Duplicates</p><p class="medium-feed-link"><a href="https://medium.com/codex/exactly-once-processing-is-a-lie-here-is-what-we-do-instead-2124a047ceaa?source=rss----29038077e4c6---4">Continue reading on CodeX »</a></p></div>]]></description>
            <link>https://medium.com/codex/exactly-once-processing-is-a-lie-here-is-what-we-do-instead-2124a047ceaa?source=rss----29038077e4c6---4</link>
            <guid isPermaLink="false">https://medium.com/p/2124a047ceaa</guid>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[golang]]></category>
            <dc:creator><![CDATA[Yaninyz witty]]></dc:creator>
            <pubDate>Thu, 03 Dec 2026 08:18:13 GMT</pubDate>
            <atom:updated>2026-12-03T08:18:12.289Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Proxmox Storage Configuration: Practical Setup Examples]]></title>
            <link>https://medium.com/codex/proxmox-storage-configuration-practical-setup-examples-e12fbd6c71e7?source=rss----29038077e4c6---4</link>
            <guid isPermaLink="false">https://medium.com/p/e12fbd6c71e7</guid>
            <category><![CDATA[proxmox]]></category>
            <category><![CDATA[virtualization]]></category>
            <category><![CDATA[data-storage]]></category>
            <category><![CDATA[homelab]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[NAKIVO]]></dc:creator>
            <pubDate>Thu, 03 Dec 2026 08:17:59 GMT</pubDate>
            <atom:updated>2026-12-03T08:17:58.097Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PGL7L6b2_XIR30G7p8SWTA.jpeg" /></figure><p>Minor storage configuration details can significantly affect system behavior. For example, a disk intended for thin provisioning may be fully allocated, a zvol may report high space usage, or an iSCSI mount may not remount after reboot. These issues can disrupt backups and complicate recovery.</p><p>We’re sharing the most useful checks for setting up or reviewing a Proxmox host, whether you are a homelab user or an administrator managing production VMs.</p><p><strong>Thin provisioning checks</strong></p><p><strong>1</strong>. <strong>LVM-Thin</strong>: Run ‘<em>lvs -a | grep vm-&lt;VMID&gt;-disk-&lt;NUM&gt;</em>’ on converted or migrated disks. If the Data% column is blank, the disk is thick provisioned. To resolve, migrate to thin-capable storage or, if already on such storage, run ‘lvchange -ay’.</p><p><strong>2. ZFS:</strong> The ‘<em>thin provision</em>’ checkbox is not available during creation. Double-click the new storage and select it in the Edit: ZFS window.</p><p><strong>3. zvol reservation:</strong> if ZFS get reservation &lt;zvol&gt; returns a non-zero value, then zfs set reservation=none &lt;zvol&gt; should free up the reserved space.</p><p><strong>4. Discard:</strong> Enable discard for VM disks to allow the guest to issue TRIM. On ZFS, TRIM may not reduce USED, so compare REFER and USED values.</p><p><strong>Other storage types</strong></p><ul><li><strong>Directory:</strong> Partition and format the disk, add it to /etc/fstab, and leave preallocation set to Default.</li><li><strong>NFS and SMB:</strong> Add these under Datacenter &gt; Storage &gt; Add. Proxmox mounts them at /mnt/pve/.</li><li><strong>iSCSI:</strong> Partition and format the LUN, mount it by UUID with _netdev in /etc/fstab, then add the mount point as Directory storage.</li><li><strong>ZFS:</strong> Zvols support only Raw format. Use a Directory datastore on the pool for QCOW2.</li></ul><p><strong>Quick example</strong></p><p>Create a VM with a 12GB QCOW2 disk on a directory or SMB datastore and install the guest OS. Then run ‘<strong>du -h</strong> &lt;disk&gt;.qcow2’. In our test, the disk used about 5.1GB of the 12GB provisioned, which demonstrates proper thin provisioning.</p><p><strong>Pitfalls</strong></p><ul><li><strong>If dd</strong> fails with ‘No such file or directory’ on an LV, reactivate it with ‘lvchange -ay’.</li><li>When copying a disk with <strong>dd</strong>, double-check that ‘<strong>if</strong>’ and ‘<strong>of</strong>’ are correct. Reversing them will overwrite the original disk.</li></ul><p><strong>Full workflow</strong></p><p>Our blog provides step-by-step examples for LVM-Thin, ZFS (zvols vs QCOW2 and unexpected USED space), Directory, NFS, SMB, and iSCSI, using both the web interface and CLI.</p><p>Read it here: <a href="https://www.nakivo.com/blog/proxmox-storage-configuration/?utm_source=Medium&amp;utm_campaign=blog_post_Proxmox_storage_configuration">https://www.nakivo.com/blog/proxmox-storage-configuration/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e12fbd6c71e7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codex/proxmox-storage-configuration-practical-setup-examples-e12fbd6c71e7">Proxmox Storage Configuration: Practical Setup Examples</a> was originally published in <a href="https://medium.com/codex">CodeX</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[8 Best AI Gateways]]></title>
            <link>https://medium.com/codex/8-best-ai-gateways-f170e53501a4?source=rss----29038077e4c6---4</link>
            <guid isPermaLink="false">https://medium.com/p/f170e53501a4</guid>
            <category><![CDATA[ai-tools]]></category>
            <category><![CDATA[ai-gateway]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[mcps]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Kevin Meneses González]]></dc:creator>
            <pubDate>Thu, 03 Dec 2026 08:17:51 GMT</pubDate>
            <atom:updated>2026-12-03T08:17:50.520Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kSkmonp-gLuqGEDhWSed3Q.jpeg" /></figure><p>Most teams don’t choose an AI gateway. They end up with one.</p><p>It starts with one OpenAI key in an environment variable. Then someone adds Anthropic for long contexts, a Groq model for cheap classification, and a fallback “just in case”. Six months later you have:</p><ul><li>provider keys spread across services,</li><li>retry logic copied into every repo,</li><li>and no idea which team spent $4,000 on tokens last week.</li></ul><p>That’s the point where an <strong>AI gateway</strong> stops being optional.</p><p>It sits between your application and every LLM provider. Your code talks to one OpenAI-compatible endpoint, and the gateway handles routing, failover, caching, budgets, guardrails and logs. The best one for you depends on where it has to run, how much traffic it carries, and whether your agents need MCP tools.</p><p>My top pick is <a href="https://www.getmaxim.ai/bifrost">Bifrost</a>, the open-source gateway from Maxim AI (<a href="https://github.com/maximhq/bifrost">GitHub</a>). It’s written in Go, runs inside your own infrastructure, and adds microseconds of overhead rather than milliseconds. The other seven cover managed, edge, API-management and Kubernetes-native setups.</p><h3>What is an AI gateway?</h3><p>It’s a proxy layer for LLM traffic. It exposes one API (usually OpenAI-compatible) and forwards each request to the right provider and model.</p><p>A regular API gateway counts requests. This kind of proxy also counts <strong>tokens and dollars</strong>, because a single request can cost $0.0001 or $2 depending on the model and the prompt.</p><p>The core jobs:</p><ul><li><strong>Routing and failover</strong>: retry, fall back to another provider, load-balance across keys.</li><li><strong>Cost control</strong>: budgets and rate limits per team, app or customer.</li><li><strong>Caching</strong>: return a stored answer for repeated (or semantically similar) prompts.</li><li><strong>Governance and guardrails</strong>: who can call which model, and what’s allowed in prompts and responses.</li><li><strong>Observability</strong>: tokens, latency, cost and errors per request, exported to your monitoring stack.</li></ul><p>Agent workloads added two more jobs: managing <strong>MCP tool access</strong>, so an agent sees only the tools it’s allowed to call, and governing <strong>agent-to-agent (A2A) traffic</strong>.</p><h3>How I picked these 8 gateways</h3><p>I checked each gateway’s documentation and pricing page on 30 November 2026 against seven criteria:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3GBSTMLJ_X6jOLMNI8_AnQ.png" /></figure><p>Where a vendor’s docs don’t mention a feature, I say “not documented” instead of guessing.</p><h3>The 8 best AI gateways at a glance</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K5nwormPbpbR1yqsEp0uzA.png" /></figure><h3>Open-source AI gateways</h3><h4>1. Bifrost: the fastest open-source gateway</h4><p><a href="https://www.getmaxim.ai/bifrost">Bifrost</a> is an open-source gateway built by Maxim AI. It gives you one OpenAI-compatible API in front of 35+ providers (OpenAI, Anthropic, AWS Bedrock, Google Vertex, Azure, Groq, Mistral, Ollama and more), and runs as a single Go binary in your own infrastructure. The code is on <a href="https://github.com/maximhq/bifrost">GitHub</a> under Apache-2.0, with around 10k stars.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WPUP0GPYD62W7-cQ.png" /></figure><p>Speed is why it’s #1. Bifrost adds about <strong>11 µs of overhead per request at a sustained 5,000 RPS</strong> on a t3.xlarge instance (<a href="https://docs.getbifrost.ai/benchmarking/getting-started">benchmarks</a>). At that level the proxy is invisible next to model latency, which is measured in hundreds of milliseconds.</p><p>The feature set covers the whole list from the previous section:</p><ul><li><strong>Routing and failover</strong>: automatic <a href="https://docs.getbifrost.ai/features/retries-and-fallbacks">retries and fallbacks</a> across providers, plus weighted <a href="https://docs.getbifrost.ai/features/keys-management">load balancing across keys</a>.</li><li><a href="https://docs.getbifrost.ai/features/semantic-caching"><strong>Semantic caching</strong></a>: exact-match hashing plus embedding similarity, so “What’s your refund policy?” and “How do refunds work?” can hit the same cached answer.</li><li><strong>Governance</strong>: <a href="https://docs.getbifrost.ai/features/governance/virtual-keys">virtual keys</a> per team, app or customer, each with its own <a href="https://docs.getbifrost.ai/features/governance/budget-and-limits">budgets and rate limits</a>. Your real provider keys never leave Bifrost.</li><li><strong>MCP gateway</strong>: Bifrost connects to <a href="https://docs.getbifrost.ai/mcp/overview">MCP servers</a> and controls which tools each client sees. <a href="https://docs.getbifrost.ai/mcp/code-mode">Code Mode</a> lets the model write code against the tools instead of loading every tool definition into the context, which cuts tokens on agents with large toolsets.</li><li><a href="https://docs.getbifrost.ai/features/agent-gateway/overview"><strong>Agent Gateway</strong></a>: Bifrost sits between your applications and your agents over the A2A protocol. It decides who can call each agent, routes the requests and logs every agent session.</li><li><strong>Observability</strong>: request logs in the built-in UI, plus <a href="https://docs.getbifrost.ai/features/observability/otel">OpenTelemetry</a> and <a href="https://docs.getbifrost.ai/features/observability/prometheus">Prometheus</a> export.</li><li><strong>Enterprise</strong>: <a href="https://docs.getbifrost.ai/enterprise/guardrails">guardrails</a>, <a href="https://docs.getbifrost.ai/enterprise/clustering">clustering</a>, SSO and <a href="https://docs.getbifrost.ai/enterprise/secret-management">secret management</a>.</li></ul><p>It’s also a <a href="https://docs.getbifrost.ai/features/drop-in-replacement">drop-in replacement</a> for the OpenAI, Anthropic and Google GenAI SDKs: you change the base URL and nothing else. It even works as the backend for coding agents like <a href="https://docs.getbifrost.ai/cli-agents/overview">Claude Code and Codex CLI</a>.</p><p><strong>Pros</strong></p><ul><li>Lowest overhead of any gateway on this list (11 µs at 5k RPS).</li><li>LLM, MCP and agent traffic in one platform, with semantic caching and virtual-key budgets in the open-source version.</li><li>Runs fully inside your VPC, on-prem or air-gapped: prompts never touch a third party.</li></ul><p><strong>Cons</strong></p><ul><li>You operate it yourself (or buy Enterprise for clustering and support).</li><li>SSO, guardrails and clustering are Enterprise features.</li></ul><p><strong>Best for:</strong> enterprises running mission-critical AI workloads that need one place to route, govern and secure LLM, MCP and agent traffic, with low latency and full control over data and access. It fits regulated industries that require air-gapped, VPC-isolated or on-prem deployments.</p><p><strong>Pricing:</strong> open source and free. <a href="https://www.getmaxim.ai/bifrost/pricing">Enterprise</a> is custom-priced with a 14-day free trial.</p><h4>Getting started with Bifrost in 2 minutes</h4><p>The <a href="https://docs.getbifrost.ai/quickstart/gateway/setting-up">gateway quickstart</a> is one command:</p><pre>npx -y @maximhq/bifrost<br>docker run -p 8080:8080 maximhq/bifrost</pre><p>Open http://localhost:8080, add your provider keys in the UI, and point the <a href="https://docs.getbifrost.ai/integrations/openai-sdk/overview">OpenAI SDK</a> at it. Models use the provider/model format, and a fallbacks list tells Bifrost where to go if the primary fails:</p><pre>from openai import OpenAI</pre><pre>client = OpenAI(<br>    base_url=&quot;http://localhost:8080/v1&quot;,<br>    api_key=&quot;sk-bf-your-virtual-key&quot;,  # a Bifrost virtual key, not a provider key<br>)</pre><pre>response = client.chat.completions.create(<br>    model=&quot;openai/gpt-4o-mini&quot;,<br>    messages=[{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Summarize this support ticket in one line.&quot;}],<br>    extra_body={<br>        &quot;fallbacks&quot;: [&quot;anthropic/claude-3-5-haiku-20241022&quot;, &quot;groq/llama-3.3-70b-versatile&quot;]<br>    },<br>)</pre><pre>print(response.choices[0].message.content)</pre><p>If OpenAI returns an error or times out, Bifrost retries the request on Anthropic, then Groq. Your application code doesn’t change.</p><p>From here you can add:</p><ul><li>a virtual key per customer with a monthly budget,</li><li>semantic caching for repeated support questions,</li><li>an MCP server so your agent gets tools through the same endpoint.</li></ul><h4>2. LiteLLM: the most widely adopted Python proxy</h4><p><a href="https://www.litellm.ai/">LiteLLM</a> is an open-source Python SDK and proxy server that exposes one OpenAI-compatible endpoint for 100+ providers. It’s the default choice for many Python teams because it started as a library and grew into a full proxy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7V8iP-6_Yn4ulICk.png" /></figure><p>The proxy handles retries, fallbacks (including context-window fallbacks), several routing strategies, exact and semantic caching on Redis or Qdrant, and virtual keys with spend tracking. See the <a href="https://docs.litellm.ai/docs/proxy/quick_start">proxy quickstart</a> and <a href="https://docs.litellm.ai/docs/proxy/virtual_keys">virtual keys docs</a>.</p><p><strong>Pros</strong></p><ul><li>Huge provider coverage and a large community (64k GitHub stars).</li><li>Works as a Python SDK and as a standalone proxy.</li><li>Integrations with Langfuse, Datadog, OpenTelemetry and Prometheus.</li></ul><p><strong>Cons</strong></p><ul><li>Budgets and virtual keys need a Postgres database.</li><li>SSO beyond five users, audit logs, RBAC and JWT auth sit behind the <a href="https://www.litellm.ai/enterprise">Enterprise license</a>.</li><li>Python runtime: at 500 RPS, <a href="https://www.getmaxim.ai/bifrost/resources/benchmarks">LiteLLM’s P99 latency was 90.72 s, compared with 1.68 s for Bifrost</a>.</li></ul><p><strong>Best for:</strong> Python teams that want a familiar SDK and moderate traffic.</p><p><strong>Pricing:</strong> open source (MIT, except the enterprise/ directory). Enterprise is custom-priced with a 30-day trial.</p><h4>3. Agent Router (formerly Envoy AI Gateway): Kubernetes-native</h4><p><a href="https://theagentrouter.ai/">Agent Router</a> is the new name of the Envoy project, now part of the Agentic AI Foundation. It’s built on Envoy Proxy and Envoy Gateway, and version 1.3.0 shipped on 18 November 2026. The <a href="https://theagentrouter.ai/docs">docs</a> cover both a standalone aigw run mode and the full Kubernetes setup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kdrvvCujwfsJFdTI.png" /></figure><p>It routes to 22 providers through OpenAI- and Anthropic-compatible endpoints, with provider fallback, token-based quotas per team or model, MCP tool routing and OpenTelemetry GenAI traces.</p><p><strong>Pros</strong></p><ul><li>Apache-2.0, vendor-neutral, built on Envoy.</li><li>Token quotas per team, app or model, now with weekly/monthly/yearly windows.</li><li>MCP tool catalog filtered per caller.</li></ul><p><strong>Cons</strong></p><ul><li>Full features assume Kubernetes and Envoy Gateway.</li><li>No response caching or built-in guardrails documented in the open-source project.</li></ul><p><strong>Best for:</strong> platform teams already running Envoy on Kubernetes.</p><p><strong>Pricing:</strong> open source. A hosted version exists through Tetrate; pricing isn’t published.</p><h3>AI gateways in API management platforms</h3><h4>4. Kong AI Gateway: AI on top of an API gateway you may already run</h4><p><a href="https://konghq.com/products/kong-ai-gateway">Kong AI Gateway</a> adds AI plugins to Kong’s API gateway, managed through Konnect. If your company already routes its APIs through Kong, this is the shortest path to governing LLM traffic too. Kong’s <a href="https://developer.konghq.com/ai-gateway/">docs</a> cover routing, load balancing, semantic caching, token rate limits, PII sanitization, prompt guards and an MCP server entity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*baOtSJGOtJKtPp_u.png" /></figure><p><strong>Pros</strong></p><ul><li>Mature API-management platform with AI plugins on top.</li><li>Strong guardrail set: prompt guards, PII sanitizer, AWS/Azure/GCP content-safety integrations.</li><li>MCP and A2A traffic governance.</li></ul><p><strong>Cons</strong></p><ul><li>Semantic cache and advanced AI rate limiting are enterprise plugins.</li><li>The Plus plan caps you at 5 models and 10M requests a month; fully self-hosted means custom-priced Gateway Enterprise.</li></ul><p><strong>Best for:</strong> enterprises standardized on Kong.</p><p><strong>Pricing:</strong> AI Management Plus from $25/month plus usage (1M requests included, $200 per extra 1M, $100/month per model above 5). See <a href="https://konghq.com/pricing">Kong pricing</a>.</p><h4>5. Azure API Management: the option for Azure shops</h4><p><a href="https://learn.microsoft.com/en-us/azure/api-management/genai-gateway-capabilities">Azure API Management</a> includes a set of LLM-specific capabilities on top of APIM. It manages OpenAI, Anthropic Messages (v2 tiers), Vertex AI and Bedrock backends, with round-robin, weighted and priority load balancing, a circuit breaker, token quotas (llm-token-limit), semantic caching on Azure Managed Redis, and Azure AI Content Safety.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gsyuAIRiD7wvxedP.png" /></figure><p><strong>Pros</strong></p><ul><li>Native fit with Azure identity, monitoring and networking.</li><li>Token-per-minute limits and token metrics per consumer.</li><li>Can expose REST APIs as MCP servers.</li></ul><p><strong>Cons</strong></p><ul><li>Features vary by tier, and the unified OpenAI-compatible API is still in preview.</li><li>Semantic caching needs a Redis cache you provision and pay for separately.</li></ul><p><strong>Best for:</strong> companies whose AI stack already runs on Azure.</p><p><strong>Pricing:</strong> per APIM tier and unit; the dedicated tier for this use case shows “coming soon” on the <a href="https://azure.microsoft.com/en-us/pricing/details/api-management/">pricing page</a>.</p><h3>Managed AI gateways</h3><h4>6. Cloudflare AI Gateway: free analytics at the edge</h4><p><a href="https://developers.cloudflare.com/ai-gateway/">Cloudflare’s gateway</a> proxies LLM calls through Cloudflare’s network. Analytics, caching and rate limiting are free on every plan, and you can add retries, model fallbacks and dynamic routes with percentage splits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*paU8F_ckvRLN5dPD.png" /></figure><p><strong>Pros</strong></p><ul><li>Core features free; inference passes through with no markup.</li><li>Easy to add if you’re already on Cloudflare.</li><li>DLP scanning and spend limits.</li></ul><p><strong>Cons</strong></p><ul><li>Caching only matches identical requests.</li><li>MCP isn’t documented; Unified Billing adds a 5% fee on purchased credits.</li></ul><p><strong>Best for:</strong> teams already on Cloudflare that want logs and caching with zero ops.</p><p><strong>Pricing:</strong> free core features; log limits depend on your Workers plan. See <a href="https://developers.cloudflare.com/ai-gateway/reference/pricing/">Cloudflare’s pricing docs</a>.</p><h4>7. Vercel AI Gateway: built for the AI SDK</h4><p><a href="https://vercel.com/ai-gateway">Vercel’s gateway</a> gives you 400+ models behind one key, with no markup on tokens. It plugs into the Vercel AI SDK, the OpenAI SDK and the Anthropic Messages API. The <a href="https://vercel.com/docs/ai-gateway">docs</a> cover ordered fallbacks, budgets per team, project or key, and request logs with per-request cost.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YdXBK_XbLlSQydh5.png" /></figure><p><strong>Pros</strong></p><ul><li>No token markup and no platform fee.</li><li>Zero setup if you deploy on Vercel.</li><li>Budgets at team, project, key and member level.</li></ul><p><strong>Cons</strong></p><ul><li>Hosted only: traffic goes through Vercel.</li><li>No response cache, guardrails or MCP documented; budgets exclude BYOK spend.</li></ul><p><strong>Best for:</strong> Next.js and AI SDK apps hosted on Vercel.</p><p><strong>Pricing:</strong> pay-as-you-go credits at provider list price, plus a monthly free credit. See <a href="https://vercel.com/docs/ai-gateway/pricing">Vercel’s pricing</a>.</p><h4>8. OpenRouter: the model marketplace</h4><p><a href="https://openrouter.ai/">OpenRouter</a> is a hosted marketplace with 600+ models from many providers behind one API key. It routes by price, throughput and latency, falls back across providers, and adds an exact-match response cache. See the <a href="https://openrouter.ai/docs/quickstart">quickstart</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*P671r7WbiUyW5BKj.png" /></figure><p><strong>Pros</strong></p><ul><li>The widest model catalog, including free models.</li><li>One credit balance for every provider.</li><li>Good for prototyping and model comparison.</li></ul><p><strong>Cons</strong></p><ul><li>5.5% fee on credit purchases (8% on Business).</li><li>Hosted only; SSO is Enterprise-only; no MCP documented.</li></ul><p><strong>Best for:</strong> prototyping and apps that want many models without managing provider accounts.</p><p><strong>Pricing:</strong> provider list prices plus the credit-purchase fee. See <a href="https://openrouter.ai/pricing">OpenRouter pricing</a>.</p><h3>AI gateway pricing compared</h3><p>Prices from each vendor’s pricing page, checked 30 November 2026.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ShAx_s1Y1sjGgPZw7KY6rg.png" /></figure><p>The open-source options cost nothing in fees, but you pay for the servers and the time to run them. At 5,000 requests per second, that’s where per-request overhead matters: the less CPU the proxy needs per request, the smaller the instance you pay for.</p><h3>How to choose the right AI gateway</h3><p>Four questions settle most decisions:</p><ol><li><strong>Can prompts leave your network?</strong> If not, you need a self-hosted option: Bifrost, LiteLLM or Agent Router.</li><li><strong>How much traffic?</strong> At thousands of RPS, overhead and memory become real costs. Bifrost’s Go runtime is built for that range.</li><li><strong>Do your agents use MCP tools or talk to other agents?</strong> Bifrost, LiteLLM, Kong, Agent Router and Azure APIM document MCP support; Bifrost, Kong and Azure APIM also cover A2A. Cloudflare, Vercel and OpenRouter document neither.</li><li><strong>What’s already in your stack?</strong> Kong shops should look at Kong, Azure shops at APIM, Vercel apps at Vercel’s gateway.</li></ol><p>If you’re starting fresh and want one platform that covers routing, caching, budgets, MCP and agents without a vendor in the request path, start with <a href="https://github.com/maximhq/bifrost">Bifrost</a>.</p><h3>FAQs</h3><h4>What is the best AI gateway for enterprises?</h4><p>For self-hosted production workloads, Bifrost: it’s open source, adds about 11 µs of overhead at 5,000 RPS, and includes semantic caching, virtual-key budgets, an MCP gateway and an Agent Gateway. Managed options like Vercel and Cloudflare are simpler if you’re fine with a hosted proxy.</p><h4>Is there an open-source AI gateway?</h4><p>Yes. Bifrost (Apache-2.0), LiteLLM (MIT, except its enterprise directory) and Agent Router (Apache-2.0) are all open source and self-hostable.</p><h4>What is the difference between an AI gateway and an API gateway?</h4><p>An API gateway manages requests: auth, routing and rate limits per call. The AI version adds LLM-specific controls: token and cost budgets, provider fallbacks, semantic caching, prompt guardrails and MCP tool governance.</p><h4>What is the difference between an AI gateway and an LLM gateway?</h4><p>In practice, they’re the same thing. “AI” is the broader label and increasingly covers agent traffic (MCP tools, agent-to-agent calls) as well as LLM requests.</p><h4>How much does an AI gateway cost?</h4><p>Open-source options like Bifrost and LiteLLM are free; you pay for your own infrastructure. Managed services either pass tokens through at list price (Vercel, Cloudflare) or charge a fee on credits (OpenRouter: 5.5%). API-management platforms like Kong charge per control plane, request volume and model.</p><p>This layer used to be a convenience. With agents calling tools and models thousands of times a minute, it’s now where cost, reliability and security get decided.</p><p>Pick the one that runs where your data has to stay. For most teams building in-house, that’s <a href="https://www.getmaxim.ai/bifrost">Bifrost</a>.</p><p><em>Originally published at </em><a href="https://kevinmeneses.com/en/articles/best-ai-gateways"><em>kevinmeneses.com</em></a><em> on December 2, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f170e53501a4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codex/8-best-ai-gateways-f170e53501a4">8 Best AI Gateways</a> was originally published in <a href="https://medium.com/codex">CodeX</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Laravel Now Has a Rust Version. Do You Need to Know Rust First? Let’s Break It Down]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/codex/laravel-now-has-a-rust-version-do-you-need-to-know-rust-first-lets-break-it-down-803851c7b6a5?source=rss----29038077e4c6---4"><img src="https://cdn-images-1.medium.com/max/1672/1*78jWNnooEwTNIV1fG6thKA.png" width="1672"></a></p><p class="medium-feed-snippet">Picture this: your app is live, and three days later a bug report comes in. A query compared the votes column against the wrong type, and&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/codex/laravel-now-has-a-rust-version-do-you-need-to-know-rust-first-lets-break-it-down-803851c7b6a5?source=rss----29038077e4c6---4">Continue reading on CodeX »</a></p></div>]]></description>
            <link>https://medium.com/codex/laravel-now-has-a-rust-version-do-you-need-to-know-rust-first-lets-break-it-down-803851c7b6a5?source=rss----29038077e4c6---4</link>
            <guid isPermaLink="false">https://medium.com/p/803851c7b6a5</guid>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[rust]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[php]]></category>
            <dc:creator><![CDATA[Developer Awam]]></dc:creator>
            <pubDate>Thu, 03 Dec 2026 08:17:46 GMT</pubDate>
            <atom:updated>2026-12-03T08:17:45.102Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[A commit check I never had would have refused 37 of my last 3,140 commits]]></title>
            <link>https://medium.com/codex/a-commit-check-i-never-had-would-have-refused-37-of-my-last-3-140-commits-5d51713585a1?source=rss----29038077e4c6---4</link>
            <guid isPermaLink="false">https://medium.com/p/5d51713585a1</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Muhammad Azhar]]></dc:creator>
            <pubDate>Thu, 03 Dec 2026 08:17:39 GMT</pubDate>
            <atom:updated>2026-12-03T08:17:38.696Z</atom:updated>
            <content:encoded><![CDATA[<h4>Eight were backslash escapes that turned into invisible bytes in code, and three of those are still in it</h4><p>Two days ago I wrote about a \1 in a deploy script that reached the server as byte 0x01. A sed replacement that should have printed a number printed a control character instead, the drain loop never saw zero, and every update sat out a ten-minute timeout. <a href="https://medium.com/@azhar.great/a-1-in-my-deploy-script-became-byte-0x01-and-every-update-waited-ten-minutes-1e0e996e3963">That story is here.</a></p><p>It ended with a census of the files as they stand today. The question I kept putting off was the other direction: if a check had been running on every commit, how many would it have stopped, and would the stops have been worth the noise?</p><p>So I wrote the check and replayed it.</p><h3>The check</h3><p>It reads the staged diff, looks only at added lines, and refuses any byte from 0x01 to 0x1F except tab, line feed, form feed and carriage return. Git already treats a file with a NUL in its first 8,000 bytes as binary and leaves it out of the text diff, so I let git make that call rather than guessing from file extensions.</p><pre>import re, subprocess, sys<br>sys.stdout.reconfigure(encoding=&quot;utf-8&quot;, errors=&quot;replace&quot;)<br>BAD = re.compile(rb&quot;[\x01-\x08\x0b\x0e-\x1f]&quot;)<br>args = [&quot;git&quot;, &quot;-c&quot;, &quot;core.quotepath=off&quot;, &quot;diff&quot;, &quot;-U0&quot;, &quot;--no-color&quot;, &quot;--no-ext-diff&quot;, &quot;--no-textconv&quot;]<br>args += [sys.argv[1] + &quot;^!&quot;] if len(sys.argv) &gt; 1 else [&quot;--cached&quot;]<br>diff = subprocess.run(args, capture_output=True, check=True).stdout<br>path, hits = None, []<br>for line in diff.split(b&quot;\n&quot;):<br>    if line.startswith(b&quot;+++ &quot;):<br>        path = line[6:].rstrip(b&quot;\t&quot;).decode(&quot;utf-8&quot;, &quot;replace&quot;)<br>    elif line.startswith(b&quot;+&quot;) and path:<br>        for m in BAD.finditer(line[1:]):<br>            hits.append((path, m.group()[0], line[1:].decode(&quot;utf-8&quot;, &quot;replace&quot;)))<br>for path, byte, text in hits:<br>    shown = re.sub(r&quot;[\x01-\x08\x0b\x0e-\x1f]&quot;, lambda m: &quot;^&quot; + chr(ord(m.group()) + 64), text.strip())<br>    print(f&quot;{path}: byte 0x{byte:02x} in: {shown[:100]}&quot;)<br>if hits:<br>    print(f&quot;refused: {len(hits)} control byte(s). Usually a backslash escape lost on the way in.&quot;)<br>sys.exit(1 if hits else 0)</pre><p>With no argument it checks what is staged. Given a commit id it checks what that commit added, which is how the replay works. Here it is on the commit that broke the deploy, and on the fix three hours later.</p><figure><img alt="Terminal output of ctlbyte_check.py. On commit 64ffed31f it reports byte 0x01 in CareBridge deploy lib.sh, inside a sed replacement that should end in backslash 1, prints refused: 1 control byte(s), exit 1. On the fix, commit 4096d9d19, exit 0." src="https://cdn-images-1.medium.com/max/1024/1*FRH09FqL9NBlU5sRhdTV0w.png" /><figcaption>The check replayed on the commit that broke the deploy (refused, exit 1) and on its fix (exit 0). Real output.</figcaption></figure><h3>The replay</h3><p>This repository has 3,140 non-merge commits between 1 August and 1 December 2026, and nothing checks them: there is no pre-commit hook and no core.hooksPath. My first attempt piped git log -p for all of them into Python and went past 3 GB of memory before I killed it, because some tracked files are R8 mapping files over 100 MB. The version that finished compares each changed file before and after the commit and counts the bad bytes on both sides. It took about 21 minutes.</p><p>38 commits added at least one control byte. I ran the real check on each of the 38 and it refused 37. The one it let through was a pure rename, where the diff has no added lines.</p><figure><img alt="Bar chart of the 38 commits, out of 3,140, that added a control byte: 8 lost escapes in scripts or source, 11 in ledgers or docs, 2 re-added old damage, 1 written raw on purpose, 15 third-party or generated files, and 1 pure rename the check did not refuse." src="https://cdn-images-1.medium.com/max/1024/1*AbRxDTIvARp8V34y8cfNig.png" /><figcaption>What the 38 commits that added a control byte actually were, 1 August to 1 December 2026.</figcaption></figure><p>The biggest group isn’t mine. Fifteen commits brought in third-party or generated files: node_modules, a Python virtual environment, Kotlin incremental build caches, a whole browser profile with its Safe Browsing stores, and the ANSI escape codes in someone else&#39;s Android project. The check is right that the bytes are there and wrong that I want to be stopped for them, so in practice it needs a short path allowlist. Most of those files should never have been committed, and a refusal would at least have made me look.</p><p>One commit wrote a control byte on purpose. A unit test in Astra Recorder’s directory module builds a legacy contact fingerprint with its separator bytes typed raw, while the production code it mirrors writes &#39;\u0001&#39;. Both compile to the same character. Asking for the escaped form is fair.</p><p>Two carried old damage forward: a restore after a cleanup, and a ledger moved to a new folder while a stub stayed at the old path, so git saw 18,507 new lines instead of a rename.</p><h3>Eleven in ledgers</h3><p>Eleven commits put the bytes into Markdown, mostly the ledger for my X campaign, and they share one shape. A Windows path written into a ledger row, like _0925r4_src\bal1.txt, went through something that read \b as an escape, and the row now holds a backspace where the b was. src\approvals became byte 0x07 and &quot;pprovals&quot;. None of those lines is code. They quietly corrupt files I later quote as evidence.</p><h3>Eight in code</h3><p>These are what the check is for. Every row is a backslash escape that something between me and the file interpreted. Five are \b: inside a raw string it is a regex word boundary, in a normal string it is a backspace, and when the r prefix goes missing or a tool rewrites the text on the way in, you get 0x08. One is the \1 from the deploy story. The last two are C:\code in throwaway Python scripts, where \co came out as Control-O (0x0F) and the rest of the path was mangled on the same line.</p><figure><img alt="Table of eight commits. Five turned backslash b into byte 0x08, one turned backslash 1 into 0x01, two turned a C drive path into 0x0f. Three were fixed after 4 minutes, 43 minutes and 3 hours 20 minutes, two files were deleted, and three are still in the code after 55, 72 and 112 days." src="https://cdn-images-1.medium.com/max/1024/1*_VhRtEUVeq3QZNY49TUXTA.png" /><figcaption>The eight commits where an escape was lost in a script or source file, and where each one stands today.</figcaption></figure><p>The ones that got fixed are the ones that failed loudly. The scheduler’s run-task.ps1 pointed at a helper whose name now began with a backspace, and that was fixed four minutes later. The deploy loop took 3 hours and 20 minutes, because a ten-minute wait on every update is hard to miss.</p><p>The three still in the code fail silently, which is why they’re still there:</p><ul><li>The log redactors in Mock Location and Astra Recorder, since 11 August. With backspaces where the word boundaries should be, lat=51.5074 and a recording&#39;s file name both pass through untouched. 112 days.</li><li>The pairing-code regex in the ADB Nexus test harness, since 20 September. It never finds a six-digit code. The same file had the same mistake fixed at 00:26 that night, and at 00:45 it came back in a different regex. 72 days.</li><li>The never-tap list in AI Factory’s live check, since 7 October. A button that says only “Add” or “Pay” isn’t on it any more; “Add to cart” still is, because “cart” matches. 55 days.</li></ul><p>So of 37 refusals, eight are the case I care about. Over four months that’s one useful stop about every two weeks, against fifteen I’d have allowlisted and eleven that would have kept a ledger honest. Each refusal costs reading one line that names the file and the byte.</p><p>Neither the check nor the three fixes is in yet. As of 1 December the three lines are still in the code and the check is a script in a folder, not a hook. When that changes, the same replay over the same 3,140 commits gives the after, measured the same way as this before.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d51713585a1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codex/a-commit-check-i-never-had-would-have-refused-37-of-my-last-3-140-commits-5d51713585a1">A commit check I never had would have refused 37 of my last 3,140 commits</a> was originally published in <a href="https://medium.com/codex">CodeX</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Will Rust replace C, C++, Python, Java and C# in the AI era?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/codex/will-rust-replace-c-c-python-java-and-c-in-the-ai-era-0a870375c272?source=rss----29038077e4c6---4"><img src="https://cdn-images-1.medium.com/max/2600/0*L6fylCPkrBx28VF2" width="2600"></a></p><p class="medium-feed-snippet">When AI makes coding cheaper to write, the performance, the safety and the cost of running the software are going to be more important&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/codex/will-rust-replace-c-c-python-java-and-c-in-the-ai-era-0a870375c272?source=rss----29038077e4c6---4">Continue reading on CodeX »</a></p></div>]]></description>
            <link>https://medium.com/codex/will-rust-replace-c-c-python-java-and-c-in-the-ai-era-0a870375c272?source=rss----29038077e4c6---4</link>
            <guid isPermaLink="false">https://medium.com/p/0a870375c272</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Thành Đô Nguyễn]]></dc:creator>
            <pubDate>Thu, 03 Dec 2026 08:17:36 GMT</pubDate>
            <atom:updated>2026-12-03T08:17:35.517Z</atom:updated>
        </item>
    </channel>
</rss>