<?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 Somen on Medium]]></title>
        <description><![CDATA[Stories by Somen on Medium]]></description>
        <link>https://medium.com/@somen6562?source=rss-8f291855d1ab------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ZaNpSjnLENVIcCx-</url>
            <title>Stories by Somen on Medium</title>
            <link>https://medium.com/@somen6562?source=rss-8f291855d1ab------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 23:32:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@somen6562/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[Our AWS Bill Dropped 80%: Replacing Heavy Node.js Containers with a 15MB Rust Binary]]></title>
            <link>https://medium.com/@somen6562/our-aws-bill-dropped-80-replacing-heavy-node-js-containers-with-a-15mb-rust-binary-fc20519702ad?source=rss-8f291855d1ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc20519702ad</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[rust]]></category>
            <dc:creator><![CDATA[Somen]]></dc:creator>
            <pubDate>Sat, 07 Nov 2026 12:00:32 GMT</pubDate>
            <atom:updated>2026-11-07T12:00:32.100Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y7xrQDfLi1um3Uqeo3QCUg.jpeg" /><figcaption>Why are engineering teams burning thousands of dollars on AWS ECS and Kubernetes? See the real memory, CPU, and cost breakdown of replacing heavy Node.js containers with Nitrox.</figcaption></figure><p>Every engineering team eventually hits the <strong>Cloud Infrastructure Wall</strong>.</p><p>It usually starts with a simple Node.js microservice. You dockerize it, deploy it to AWS ECS (or Google Cloud Run / Kubernetes), and everything feels great.</p><p>Then your traffic doubles.</p><p>Suddenly:</p><ul><li>Your container memory spikes.</li><li>V8 Garbage Collection kicks in under heavy load, causing 300ms p99 latency spikes.</li><li>A slight memory leak in a third-party npm package causes ECS tasks to crash with OOMKilled (Out Of Memory).</li><li>To stay safe, your DevOps team sets container memory reservations to <strong>1GB or 2GB per replica</strong>.</li></ul><p>Multiply that across 20 microservices, 3 environments (Dev, Staging, Production), and auto-scaling rules, and your monthly AWS invoice begins to look like a small mortgage.</p><p>Here is the story and cold, hard data of what happens when you swap that bloated runtime for <a href="https://github.com/KTBsomen/nitrox"><strong>Nitrox</strong></a>.</p><h3>The Hidden Tax of the V8 Runtime</h3><p>Node.js is an engineering marvel, but it was never designed for hyper-dense, low-memory container environments.</p><p>When you boot a Node.js Express service inside Docker:</p><ol><li><strong>The V8 JIT Engine</strong> takes ~50MB just to initialize.</li><li><strong>node_modules Resolution</strong> loads hundreds of nested files into memory.</li><li>An idle Express app commonly sits at <strong>150MB to 300MB of RAM</strong> before handling a single request.</li><li>Under 5,000 requests/sec, heap fragmentation pushes memory to <strong>600MB–800MB</strong>.</li></ol><h3>Now compare that to Nitrox:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*3MdZat5gR6FKwbw0XvQArw.png" /></figure><h3>The Real Cost Breakdown on AWS ECS / Fargate</h3><p>Let’s look at real cloud economics.</p><p>Assume an architecture of <strong>15 microservices</strong>, each running <strong>4 replicas</strong> for high availability across multi-AZs (60 total task instances).</p><h3>Architecture 1: The Node.js / Express Setup</h3><ul><li>Task allocation: <strong>0.5 vCPU + 1.0 GB RAM</strong> per instance</li><li>Total compute: 30 vCPU, 60 GB RAM</li><li>Fargate Monthly Compute Cost (us-east-1): <strong>~$1,150 / month</strong></li><li>Auto-scaling peak buffers (traffic surges): <strong>+$600 / month</strong></li><li><strong>Total Monthly Cost: ~$1,750 / month</strong></li></ul><h3>Architecture 2: The Nitrox Setup</h3><p>Because Nitrox consumes only <strong>12MB to 24MB</strong> and has zero garbage collection overhead:</p><ul><li>Task allocation: <strong>0.25 vCPU + 0.5 GB RAM</strong> (the absolute minimum AWS Fargate even allows!)</li><li>You can comfortably run <strong>10 Nitrox microservices on a single medium EC2 instance</strong> or drastically scale down Fargate tasks.</li><li>Fargate Monthly Compute Cost: <strong>~$280 / month</strong></li><li><strong>Total Monthly Cost: ~$280 / month</strong></li></ul><h3>Annual Savings: Over $17,600/year on compute alone.</h3><p>And this doesn’t even count the savings on egress bandwidth, faster CI/CD build minutes (deploying a 15MB binary takes 4 seconds instead of pushing a 1.2GB image), and reduced observability logging overhead.</p><h3>Why Nitrox Gives You This Efficiency Without Sacrificing Developer Velocity</h3><p>Traditionally, achieving this level of efficiency meant hiring C++ or Go systems engineers and rewriting your codebase in verbose, alien syntax.</p><p>With Nitrox, your team continues to write clean, expressive endpoints:</p><pre>use nitrox::prelude::*;</pre><pre>#[tokio::main]<br>async fn main() -&gt; Result&lt;()&gt; {<br>    let app = Nitrox::new();</pre><pre>    app.get(&quot;/api/products&quot;, |_req, res| async move {<br>        // Blazingly fast JSON response directly on Tokio<br>        res.json(json!({<br>            &quot;status&quot;: &quot;success&quot;,<br>            &quot;items&quot;: [&quot;Laptop&quot;, &quot;Monitor&quot;, &quot;Keyboard&quot;]<br>        }))<br>    });</pre><pre>    app.listen(3000).await<br>}</pre><p>You get:</p><ul><li><strong>Zero GC Pauses:</strong> Deterministic p99 latency without stop-the-world garbage collection.</li><li><strong>Microscopic Docker Containers:</strong> A Debian-slim or Alpine runner containing just your compiled binary.</li><li><strong>Instant Scaling:</strong> Tasks boot in <strong>12 milliseconds</strong>, making scale-to-zero serverless and auto-scaling groups responsive to sudden traffic spikes.</li></ul><h3>The Takeaway</h3><p>Speed isn’t just a vanity benchmark. <strong>Performance is a balance sheet feature.</strong></p><p>When your backend uses 94% less memory, your infrastructure becomes cheaper, your deployments become instant, and your on-call engineers stop getting woken up by OOMKilled notifications.</p><p>⭐ <strong>Explore the Nitrox repo:</strong> <a href="https://github.com/KTBsomen/nitrox">https://github.com/KTBsomen/nitrox</a><br>📊 <strong>Check out benchmarks:</strong> <a href="https://github.com/KTBsomen/nitrox-benchmarks">https://github.com/KTBsomen/nitrox-benchmarks</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc20519702ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Production REST API in Rust with Express-Like Simplicity]]></title>
            <link>https://medium.com/@somen6562/building-a-production-rest-api-in-rust-with-express-like-simplicity-548b5c163e62?source=rss-8f291855d1ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/548b5c163e62</guid>
            <category><![CDATA[expressjs]]></category>
            <category><![CDATA[rust]]></category>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[webdev]]></category>
            <dc:creator><![CDATA[Somen]]></dc:creator>
            <pubDate>Fri, 06 Nov 2026 16:03:30 GMT</pubDate>
            <atom:updated>2026-11-06T16:03:30.367Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BE6nwkJM1Hvn7sOlXK7qdA.jpeg" /><figcaption>Building a Production REST API in Rust with Express-Like Simplicity</figcaption></figure><h3>Building a Production REST API in Rust with Express-Like Simplicity</h3><p>If you come from the JavaScript (Express/Fastify) or Python (FastAPI/Flask) worlds, you are used to building APIs at the speed of thought. You define a route, parse JSON from the body, extract URL parameters, and return a response.</p><p>When web developers transition to traditional Rust web frameworks like Axum or Actix, they often hit a brick wall. Routing requires managing complex extractor tuples (Path, Query, Json, State), and one misplaced generic type triggers compiler errors that look like cryptographic puzzles.</p><p>In this guide, we will build a complete, production-ready <strong>CRUD REST API in Rust in under 15 minutes</strong> using <a href="https://github.com/KTBsomen/nitrox"><strong>Nitrox</strong></a> — without fighting trait bounds or lifetime errors.</p><h3>What We Are Building</h3><p>A complete <strong>User Management API</strong> supporting:</p><ul><li>GET /api/users — List all users</li><li>GET /api/users/:id — Fetch user by ID</li><li>POST /api/users — Create user with JSON validation</li><li>PUT /api/users/:id — Update existing user</li><li>DELETE /api/users/:id — Remove user</li><li>Built-in logging, CORS headers, and standard HTTP error handling</li></ul><h3>Step 1: Project Setup</h3><p>Create a new Rust binary project:</p><pre>cargo new user-api --bin<br>cd user-api</pre><p>Open Cargo.toml and add the following dependencies:</p><pre>[dependencies]<br>nitrox = &quot;0.0.1&quot;<br>tokio = { version = &quot;1&quot;, features = [&quot;full&quot;] }<br>serde = { version = &quot;1.0&quot;, features = [&quot;derive&quot;] }<br>serde_json = &quot;1.0&quot;<br>uuid = { version = &quot;1.0&quot;, features = [&quot;v4&quot;] }</pre><p>That’s all you need. Nitrox bundles <strong>Hyper</strong>, <strong>Tokio</strong>, and matchit routing under the hood.</p><h3>Step 2: Define Your Data Models</h3><p>In src/main.rs, define your data structures using Serde:</p><pre>use nitrox::prelude::*;<br>use serde::{Deserialize, Serialize};<br>#[derive(Debug, Clone, Serialize, Deserialize)]<br>pub struct User {<br>    pub id: Option&lt;String&gt;,<br>    pub name: String,<br>    pub email: String,<br>    #[serde(default)]<br>    pub role: Option&lt;String&gt;,<br>}<br>#[derive(Debug, Deserialize)]<br>pub struct CreateUserDto {<br>    pub name: String,<br>    pub email: String,<br>    pub role: Option&lt;String&gt;,<br>}</pre><pre>think this is a data model</pre><p>Notice how clean this is. No framework-specific magic traits — just standard Rust structs.</p><h3>Step 3: Writing the Express-Style Routes</h3><p>Now let’s build the application. Look how familiar this syntax is:</p><pre>use nitrox::prelude::*;<br>use uuid::Uuid;<br>#[tokio::main]<br>async fn main() -&gt; Result&lt;()&gt; {<br>    let app = Nitrox::new();<br>    // 1. Global Middleware<br>    app.use_middleware(logger());<br>    app.use_middleware(cors(&quot;*&quot;));<br>    // 2. Health Check<br>    app.get(&quot;/health&quot;, |_req, res| async move {<br>        res.json(json!({ &quot;status&quot;: &quot;healthy&quot;, &quot;uptime&quot;: &quot;ok&quot; }))<br>    });<br>    // 3. GET /api/users - List Users<br>    app.get(&quot;/api/users&quot;, |_req, res| async move {<br>        let sample_users = vec![<br>            json!({ &quot;id&quot;: &quot;u-101&quot;, &quot;name&quot;: &quot;Alice Johnson&quot;, &quot;email&quot;: &quot;alice@company.com&quot; }),<br>            json!({ &quot;id&quot;: &quot;u-102&quot;, &quot;name&quot;: &quot;Bob Smith&quot;, &quot;email&quot;: &quot;bob@company.com&quot; }),<br>        ];<br>        res.json(json!({ &quot;success&quot;: true, &quot;data&quot;: sample_users }))<br>    });<br>    // 4. GET /api/users/:id - Fetch by ID<br>    app.get(&quot;/api/users/:id&quot;, |req, res| async move {<br>        let user_id = req.param(&quot;id&quot;).unwrap_or_default();<br>        <br>        if user_id.is_empty() {<br>            return Ok(res.bad_request(&quot;User ID is required&quot;));<br>        }<br>        res.json(json!({<br>            &quot;id&quot;: user_id,<br>            &quot;name&quot;: &quot;Alice Johnson&quot;,<br>            &quot;email&quot;: &quot;alice@company.com&quot;<br>        }))<br>    });<br>    // 5. POST /api/users - Create User with JSON Parsing<br>    app.post(&quot;/api/users&quot;, |req, res| async move {<br>        match req.json::&lt;CreateUserDto&gt;() {<br>            Ok(payload) =&gt; {<br>                let new_user = json!({<br>                    &quot;id&quot;: Uuid::new_v4().to_string(),<br>                    &quot;name&quot;: payload.name,<br>                    &quot;email&quot;: payload.email,<br>                    &quot;role&quot;: payload.role.unwrap_or_else(|| &quot;user&quot;.to_string())<br>                });<br>                res.status(201).json(json!({<br>                    &quot;message&quot;: &quot;User created successfully&quot;,<br>                    &quot;data&quot;: new_user<br>                }))<br>            }<br>            Err(err) =&gt; res.bad_request(&amp;format!(&quot;Invalid JSON payload: {}&quot;, err)),<br>        }<br>    });<br>    // 6. PUT /api/users/:id - Update User<br>    app.put(&quot;/api/users/:id&quot;, |req, res| async move {<br>        let user_id = req.param(&quot;id&quot;).unwrap_or_default();<br>        match req.json::&lt;CreateUserDto&gt;() {<br>            Ok(payload) =&gt; res.json(json!({<br>                &quot;message&quot;: &quot;User updated&quot;,<br>                &quot;id&quot;: user_id,<br>                &quot;data&quot;: payload<br>            })),<br>            Err(err) =&gt; res.bad_request(&amp;format!(&quot;Malformed input: {}&quot;, err)),<br>        }<br>    });<br>    // 7. DELETE /api/users/:id - Remove User<br>    app.delete(&quot;/api/users/:id&quot;, |req, res| async move {<br>        let user_id = req.param(&quot;id&quot;).unwrap_or_default();<br>        res.json(json!({<br>            &quot;message&quot;: &quot;User deleted&quot;,<br>            &quot;id&quot;: user_id<br>        }))<br>    });<br>    // Start server<br>    println!(&quot;🚀 Server listening on http://127.0.0.1:3000&quot;);<br>    app.listen(3000).await<br>}</pre><pre>Nitrox::with_state() is another initializer</pre><h3>Step 4: Testing Your Endpoints</h3><p>Start your server:</p><pre>cargo run</pre><p>Your server compiles in seconds and listens on port 3000. Open a new terminal and test it with curl:</p><h3>Create a User:</h3><pre>curl -X POST http://localhost:3000/api/users \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{&quot;name&quot;: &quot;Devin Roy&quot;, &quot;email&quot;: &quot;devin@example.com&quot;, &quot;role&quot;: &quot;admin&quot;}&#39;</pre><p><strong>Response:</strong></p><pre>{<br>  &quot;message&quot;: &quot;User created successfully&quot;,<br>  &quot;data&quot;: {<br>    &quot;id&quot;: &quot;e932b1f8-9844-42b4-8e10-91c6e42bca81&quot;,<br>    &quot;name&quot;: &quot;Devin Roy&quot;,<br>    &quot;email&quot;: &quot;devin@example.com&quot;,<br>    &quot;role&quot;: &quot;admin&quot;<br>  }<br>}</pre><h3>Fetch by ID:</h3><pre>curl http://localhost:3000/api/users/e932b1f8</pre><h3>What Makes This Different?</h3><p>Compare what you just wrote with other Rust frameworks:</p><ol><li><strong>No Extractor Hell:</strong> In Axum, mixing up the order of (Path, Json) vs (Json, Path) in handler arguments causes compilation to fail with a wall of trait error messages. In Nitrox, you simply inspect req.param(&quot;id&quot;) and call req.json::&lt;T&gt;().</li><li><strong>Predictable Fluent Responses:</strong> Chain .status(201).header(&quot;X-Custom&quot;, &quot;Val&quot;).json(...) naturally, exactly like Express or Fastify.</li><li><strong>No Lifetime Gymnastics:</strong> You don’t have to define references with &#39;a or manage complex boxing manually.</li></ol><p>You get the safety and 150k req/sec speed of native compiled Rust, with the development velocity of Node.js.</p><h3>What’s Next?</h3><p>Tomorrow in <strong>Day 3</strong>, we will look at the real-world economics of replacing heavy Node.js containers with Nitrox:<br><strong>“Our AWS Bill Dropped 80%: Replacing Heavy Node.js Containers with a 15MB Rust Binary”</strong></p><p>⭐ <strong>Star Nitrox on GitHub:</strong> <a href="https://github.com/KTBsomen/nitrox">https://github.com/KTBsomen/nitrox</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=548b5c163e62" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Rust Web Development Sucked for Web Developers (Until Now)]]></title>
            <link>https://medium.com/@somen6562/why-rust-web-development-sucked-for-web-developers-until-now-f4bfb2f5eab5?source=rss-8f291855d1ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4bfb2f5eab5</guid>
            <category><![CDATA[webdev]]></category>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[rust]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[expressjs]]></category>
            <dc:creator><![CDATA[Somen]]></dc:creator>
            <pubDate>Thu, 05 Nov 2026 11:10:01 GMT</pubDate>
            <atom:updated>2026-11-05T11:10:01.984Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H3ejDiwBQsX7ceh0I_trJQ.jpeg" /><figcaption>Why Rust Web Development Sucked for Web Developers</figcaption></figure><p><strong>Why Rust Web Development Sucked for Web Developers (Until Now)</strong></p><p>Let’s be brutally honest for a moment: <strong>Rust web development has had an elitism problem.</strong></p><p>For the last five years, tech Twitter, Hacker News, and Reddit have proclaimed that Rust is the undisputed future of fast, memory-safe backend engineering. And on paper, it sounds irresistible:</p><ul><li><strong>Zero garbage collection pauses</strong></li><li><strong>10x to 50x the throughput of Node.js and Python</strong></li><li><strong>Microscopic 12MB RAM usage</strong> instead of Node’s 400MB bloat</li><li><strong>Zero random runtime crashes</strong> at 3:00 AM</li></ul><p>Naturally, thousands of backend engineers working in Node.js (Express/Fastify), Python (FastAPI/Django), and Go decided to give Rust a try. They downloaded the Rust toolchain, opened the documentation for the mainstream Rust web frameworks (Axum, Actix-web, Rocket), and were immediately greeted by this:</p><pre>// The &quot;idiomatic&quot; Rust web way: Trait acrobatics just to read a URL parameter<br>async fn update_user(<br>    Path((org_id, user_id)): Path&lt;(u32, String)&gt;,<br>    State(pool): State&lt;Arc&lt;AppState&gt;&gt;,<br>    Json(payload): Json&lt;UpdateUserDto&gt;,<br>) -&gt; Result&lt;impl IntoResponse, StatusCode&gt; {<br>    // 35 lines of trait bounds and extractor compiler errors later...<br>}</pre><p>If you missed a single parenthesis or mismatched a tuple type in your extractor, the compiler hit you with a <strong>60-line error message</strong> referencing nested trait bounds like Handler&lt;T, B&gt; and Service&lt;Request&lt;Body&gt;&gt;.</p><p>At that moment, 95% of web developers closed their terminals and thought:</p><blockquote>“I just wanted to build a simple REST API by Friday. Why does building a web endpoint feel like writing a compiler?”</blockquote><h3>The Misalignment: Systems Programmers vs. Web Developers</h3><p>The fundamental flaw in modern Rust web ecosystems isn’t the Rust language itself. <strong>It’s the persona these frameworks were built for.</strong></p><p>Most Rust web frameworks were designed <strong>by systems engineers, for systems engineers</strong>. They prioritize compile-time extractor purity and monomorphized zero-cost abstractions above everything else.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KLesvMyrHgM6OQADPum6dg.png" /></figure><p>Web developers don’t build operating systems. We build authenticated APIs, webhooks, dashboards, payment integrations, and microservices. We want <strong>speed and safety</strong>, but not at the expense of our sanity.</p><h3>Breaking the Mental Model: Enter `Nitrox`</h3><p>What if you didn’t have to choose between developer speed and raw system performance?</p><p>What if you could write backend code that looks <strong>identical to Express.js</strong>, but compiles down to a blazingly fast native binary running on <strong>Hyper and Tokio</strong>?</p><p>That is why <a href="https://github.com/KTBsomen/nitrox"><strong>Nitrox</strong></a> was created.</p><p>Here is what a complete, production-ready REST server looks like in Nitrox:</p><pre>use nitrox::prelude::*;</pre><pre>#[tokio::main]<br>async fn main() -&gt; Result&lt;()&gt; {<br>    let app = Nitrox::new();</pre><pre>    // Standard Express-style middleware<br>    app.use_middleware(logger());<br>    app.use_middleware(cors(&quot;*&quot;));</pre><pre>    // Familiar routing: No extractor gymnastics<br>    app.get(&quot;/&quot;, |_req, res| async move {<br>        res.json(json!({<br>            &quot;message&quot;: &quot;Welcome to Nitrox!&quot;,<br>            &quot;status&quot;: &quot;online&quot;<br>        }))<br>    });</pre><pre>    app.get(&quot;/users/:id&quot;, |req, res| async move {<br>        let user_id = req.param(&quot;id&quot;).unwrap_or_default();<br>        res.json(json!({<br>            &quot;user_id&quot;: user_id,<br>            &quot;role&quot;: &quot;engineer&quot;<br>        }))<br>    });</pre><pre>    // Start server on port 3000<br>    println!(&quot;🚀 Server running on http://localhost:3000&quot;);<br>    app.listen(3000).await<br>}</pre><p>Look at that code.</p><ul><li>No Path&lt;(T,)&gt; tuple extractors.</li><li>No obscure IntoResponse trait errors.</li><li>No lifetime annotations cluttering your handler.</li><li>Just clean, intuitive req and res closures that any JavaScript, Python, or Go engineer can understand in 30 seconds.</li></ul><h3>Why Hardcore Purists Will Complain (And Why We Don’t Care)</h3><p>When purists see Nitrox, their first reaction is often:</p><blockquote>“Wait! Using req.param(\&quot;id\&quot;) and closures with res.json() isn&#39;t the idiomatic Rust way! It looks like JavaScript!&quot;</blockquote><p><strong>That is the entire point.</strong></p><p>Ergonomics matter. Developer velocity matters. Onboarding a junior engineer without forcing them through 4 months of type theory matters.</p><p>Under the hood, Nitrox sacrifices none of Rust’s core superpowers:</p><ol><li><strong>Raw Tokio &amp; Hyper Engine:</strong> Your server handles <strong>150,000+ requests per second</strong>.</li><li><strong>True Memory Safety:</strong> No segfaults, no race conditions, no NullPointerException, and no unhandled promise crashes.</li><li><strong>12MB Memory Footprint:</strong> While your Express.js app burns 350MB of RAM idle, Nitrox sips 12MB. You can run 30 microservices on a single $10 VPS.</li></ol><h3>The 10-Day Road to Mastering Rust Web APIs</h3><p>Over the next 10 days, we are breaking down everything you need to build, deploy, and scale enterprise-grade backends using Nitrox:</p><ul><li><strong>Day 2:</strong> Building a Complete REST API in 10 Minutes (CRUD &amp; Validation)</li><li><strong>Day 3:</strong> Cutting AWS Bills by 80% with Microscopic Docker Binaries</li><li><strong>Day 4:</strong> Express-Style Middleware Pipelines That Just Work</li><li><strong>Day 5:</strong> Handling Multipart File Uploads Like Multer</li><li><strong>Day 6:</strong> Database-Agnostic Setup (SQLx, PostgreSQL, Mongo, Redis)</li><li><strong>Day 7:</strong> 100,000 Concurrent WebSockets on a $5 Server</li><li><strong>Day 8:</strong> Built-in API Security: Helmet, CORS &amp; Rate Limiting</li><li><strong>Day 9:</strong> 15MB Multi-Stage Docker Builds for Production</li><li><strong>Day 10:</strong> The Ergonomics Manifesto: Why Simplicity Always Wins</li></ul><h3>Quick Start: Try It in 60 Seconds</h3><p>Ready to see what ergonomic Rust feels like?</p><p>Add Nitrox to your Cargo.toml:</p><pre>[dependencies]<br>nitrox = &quot;0.0.1&quot;<br>tokio = { version = &quot;1&quot;, features = [&quot;full&quot;] }<br>serde_json = &quot;1.0&quot;</pre><p>Then run cargo run. You now have an enterprise-grade, memory-safe, 150k req/sec web server running on your machine.</p><p>⭐ <strong>Check out the project on GitHub:</strong> <a href="https://github.com/KTBsomen/nitrox">https://github.com/KTBsomen/nitrox</a></p><h3>What’s your take?</h3><p>Have complex trait extractors kept you from adopting Rust for backend web services? Drop your thoughts in the comments below!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4bfb2f5eab5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Install Conda in Kaggle or Google Colab (2026 Updated Guide)]]></title>
            <link>https://medium.com/@somen6562/how-to-install-conda-in-kaggle-or-google-colab-2026-updated-guide-c9f590958db9?source=rss-8f291855d1ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9f590958db9</guid>
            <category><![CDATA[conda]]></category>
            <category><![CDATA[anaconda]]></category>
            <category><![CDATA[mamba]]></category>
            <category><![CDATA[google-colab]]></category>
            <category><![CDATA[kaggle]]></category>
            <dc:creator><![CDATA[Somen]]></dc:creator>
            <pubDate>Tue, 09 Jun 2026 13:54:36 GMT</pubDate>
            <atom:updated>2026-06-09T13:54:36.703Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Install Conda in Kaggle or Google Colab (2026 Updated Guide)</h3><p><strong>Tags:</strong> conda kaggle google-colab miniconda python data-science machine-learning jupyter cloud-notebooks tutorial</p><figure><img alt="How to install conda in Kaggle or Google Colab code" src="https://cdn-images-1.medium.com/max/1024/1*ghMvsZI34f_A4jWaA24kfA.jpeg" /></figure><p>If you’ve ever tried to use a library that’s only available through conda not pip Inside a Kaggle notebook or Google Colab session, you know the frustration. These cloud notebooks ship with pip and Python pre-installed, but <strong>conda is nowhere to be found</strong>.</p><p>Good news: you can install Miniconda in just a few lines of code. And as of mid-2026, there’s one important extra step you need to know about: <strong>accepting Anaconda’s Terms of Service</strong>. Skip it, and your conda install commands will fail silently with a CondaToSNonInteractiveError.</p><p>This guide walks you through the complete, working method tested on both Kaggle and Google Colab.</p><h3>Why Would You Even Need Conda in a Cloud Notebook?</h3><p>Kaggle and Colab are excellent environments free GPU/TPU access, pre-installed data science libraries, and zero setup. But they have limitations:</p><ul><li><strong>pip can’t install everything.</strong> Libraries like rdkit, cudatoolkit, openmm, or certain bioinformatics packages are only distributed through conda channels.</li><li><strong>Environment reproducibility.</strong> If your local workflow uses a environment.yml, you want the cloud to match it exactly.</li><li><strong>Compiled binaries.</strong> Conda packages often ship pre-compiled C/C++ extensions that are tricky to build from source in a notebook environment.</li></ul><h3>The Complete Installation Code</h3><p>Here’s the full, copy-paste-ready snippet. Run this in a single cell at the <strong>top of your notebook</strong>, before anything else.</p><pre># Step 1: Download Miniconda installer<br>!curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh</pre><pre># Step 2: Run the installer silently (-b = batch mode, -f = force reinstall)<br>!bash Miniconda3-latest-Linux-x86_64.sh -b -f</pre><pre># Step 3: Add conda to the current session&#39;s PATH<br>import os<br>os.environ[&#39;PATH&#39;] = f&quot;/root/miniconda3/bin:{os.environ[&#39;PATH&#39;]}&quot;</pre><pre># Step 4: Accept Anaconda&#39;s Terms of Service (required since July 2025)<br>!conda tos accept --override-channels --channel <a href="https://repo.anaconda.com/pkgs/main">https://repo.anaconda.com/pkgs/main</a><br>!conda tos accept --override-channels --channel <a href="https://repo.anaconda.com/pkgs/r">https://repo.anaconda.com/pkgs/r</a></pre><p>That’s it. Let’s break down exactly what each step does and why it matters.</p><h3>Step-by-Step Breakdown</h3><h3>Step 1 : Download the Installer</h3><pre>!curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh</pre><p>This downloads the latest Miniconda shell installer for 64-bit Linux directly from Anaconda’s official repository. Both Kaggle and Colab run on Linux (typically Ubuntu), so this is the correct architecture. The file is around 155 MB and should download in seconds, given the cloud environment’s fast network.</p><blockquote><strong><em>Why Miniconda and not Anaconda?</em></strong><em> Anaconda is a full distribution with 300+ pre-installed packages (over 3 GB). Miniconda is the minimal installer just Python and conda which is much faster to install in an ephemeral notebook session. You can always install what you need afterward.</em></blockquote><h3>Step 2 : Run the Installer</h3><pre>!bash Miniconda3-latest-Linux-x86_64.sh -b -f</pre><p>Two flags are doing the heavy lifting here:</p><ul><li><strong>-b (batch mode):</strong> Suppresses all interactive prompts. Without this, the installer would hang waiting for you to type &quot;yes&quot; to license agreements.</li><li><strong>-f (force):</strong> Allows the installer to proceed even if the target directory (/root/miniconda3) already exists. This is useful if you re-run the cell.</li></ul><p>A successful install ends with installation finished. and sets the install prefix to /root/miniconda3.</p><blockquote><strong><em>Note:</em></strong><em> You may see a warning about </em><em>PYTHONPATH being set. This is normal in Kaggle/Colab environments. It won&#39;t break anything, but it&#39;s something to be aware of if you&#39;re mixing conda and system Python packages.</em></blockquote><h3>Step 3 : Update PATH for the Current Session</h3><pre>import os<br>os.environ[&#39;PATH&#39;] = f&quot;/root/miniconda3/bin:{os.environ[&#39;PATH&#39;]}&quot;</pre><p>This is the key step that’s easy to miss. The installer <em>installs</em> conda to /root/miniconda3/bin, but it doesn&#39;t automatically make the conda command available in your current notebook session. Shell init files like .bashrc are not sourced in a Jupyter/IPython kernel.</p><p>By prepending the conda bin directory to PATH, you&#39;re telling Python (and all subsequent !shell commands) where to find conda, python, pip, and any packages you install.</p><blockquote><strong><em>Important:</em></strong><em> This PATH update only lives for the </em><strong><em>current session</em></strong><em>. Every time the Kaggle/Colab runtime resets, you’ll need to re-run these cells. Consider placing them in a dedicated “setup” cell at the top of your notebook.</em></blockquote><h3>Step 4 : Accept the Terms of Service (New in 2026!)</h3><pre>!conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main<br>!conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r</pre><p><strong>This is the step that most older tutorials are missing.</strong> On July 15, 2025, Anaconda updated its Terms of Service. Miniconda now ships with a conda-anaconda-tos plugin that enforces ToS acceptance before you can install packages from Anaconda&#39;s default channels (pkgs/main and pkgs/r).</p><p>If you skip this step and try to run conda install &lt;package&gt;, you&#39;ll get:</p><pre>CondaToSNonInteractiveError: Terms of Service have not been accepted for the following channels.<br>Please accept or remove them before proceeding:<br>  • https://repo.anaconda.com/pkgs/main<br>  • https://repo.anaconda.com/pkgs/r</pre><p>The --override-channels flag is required here because accepting ToS in a non-interactive (headless) environment needs to explicitly bypass channel defaults. Run both commands and you&#39;ll see:</p><pre>accepted Terms of Service for https://repo.anaconda.com/pkgs/main<br>accepted Terms of Service for https://repo.anaconda.com/pkgs/r</pre><h3>Verifying the Installation</h3><p>After running all four steps, confirm everything is working:</p><pre>!conda --version<br># Expected output: conda 25.x.x (or similar)</pre><pre>!which conda<br># Expected output: /root/miniconda3/bin/conda</pre><pre>!conda info<br># Shows environment info, Python version, conda channels, etc.</pre><h3>Installing Packages After Setup</h3><p>Once conda is installed and ToS is accepted, use it exactly as you would locally:</p><pre># Install a single package<br>!conda install numpy -y</pre><pre># Install from a specific channel<br>!conda install -c conda-forge rdkit -y</pre><pre># Install multiple packages at once<br>!conda install scipy matplotlib seaborn -y</pre><pre># Install from an environment file<br>!conda env update -n base -f environment.yml</pre><p>The -y flag auto-confirms the installation prompt.</p><h3>Common Gotchas</h3><h3>“conda: command not found” after restart</h3><p>The PATH update in Step 3 is session-scoped. Re-run your setup cell after any runtime restart.</p><h3>Slow installs</h3><p>Conda’s default solver can be slow with many packages. Speed things up by installing mamba — a drop-in, faster replacement:</p><pre>!conda install mamba -n base -c conda-forge -y<br>!mamba install &lt;your-package&gt; -y</pre><h3>Mixing conda and pip</h3><p>It’s fine to use both in the same notebook, but install conda packages first, then pip packages. Doing it the other way can lead to dependency conflicts.</p><h3>PYTHONPATH warning</h3><p>The warning You currently have a PYTHONPATH environment variable set is harmless for most use cases. It appears because Kaggle/Colab pre-configure Python paths for their own packages. As long as you&#39;re not mixing wildly incompatible package versions, ignore it.</p><h3>Using conda-forge Instead of Defaults</h3><p>If you prefer to avoid Anaconda’s commercial channel licensing concerns entirely, you can use conda-forgea community-maintained channel with a permissive license — for most packages:</p><pre># Use conda-forge as the primary channel<br>!conda install -c conda-forge --override-channels &lt;package&gt; -y</pre><p>conda-forge has an enormous package index and is generally well-maintained. For pure open-source workflows, this is a clean alternative.</p><h3>Full Setup Template</h3><p>Here’s a clean, reusable notebook cell you can drop into any Kaggle or Colab notebook:</p><pre>import os<br>import subprocess</pre><pre># Install Miniconda<br>subprocess.run([&quot;curl&quot;, &quot;-O&quot;, &quot;https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh&quot;], check=True)<br>subprocess.run([&quot;bash&quot;, &quot;Miniconda3-latest-Linux-x86_64.sh&quot;, &quot;-b&quot;, &quot;-f&quot;], check=True)</pre><pre># Update PATH<br>os.environ[&#39;PATH&#39;] = f&quot;/root/miniconda3/bin:{os.environ[&#39;PATH&#39;]}&quot;</pre><pre># Accept Anaconda ToS (required since July 2025)<br>os.system(&quot;conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main&quot;)<br>os.system(&quot;conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r&quot;)</pre><pre>print(&quot;✅ Conda is ready!&quot;)<br>os.system(&quot;conda --version&quot;)</pre><h3>Summary</h3><p>Step Command Why Download curl -O Miniconda3-latest-Linux-x86_64.sh Get the installer from Anaconda Install bash ... -b -f Silent, force install to /root/miniconda3 PATH os.environ[&#39;PATH&#39;] = ... Make conda available in the current kernel ToS conda tos accept ... Required since July 15, 2025 skipping breaks installs</p><p>With these four steps, you get a fully functional conda installation inside any Kaggle or Google Colab notebook, ready to install packages from the full Anaconda ecosystem.</p><p><em>Have a question or a different approach that works for you? Drop it in the comments — always curious to hear what setups others are using in cloud notebooks.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9f590958db9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>