<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sean Brill</title>
    <description>The latest articles on DEV Community by Sean Brill (@seanbrill_dev).</description>
    <link>https://dev.to/seanbrill_dev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3785377%2F42d2d625-fe17-43c4-ba86-87367af05017.png</url>
      <title>DEV Community: Sean Brill</title>
      <link>https://dev.to/seanbrill_dev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/seanbrill_dev"/>
    <language>en</language>
    <item>
      <title>Building a Developer-First Cloud Storage Platform on Azure Blob (Lessons Learned)</title>
      <dc:creator>Sean Brill</dc:creator>
      <pubDate>Sun, 22 Feb 2026 18:41:19 +0000</pubDate>
      <link>https://dev.to/seanbrill_dev/building-a-developer-first-cloud-storage-platform-on-azure-blob-lessons-learned-2kma</link>
      <guid>https://dev.to/seanbrill_dev/building-a-developer-first-cloud-storage-platform-on-azure-blob-lessons-learned-2kma</guid>
      <description>&lt;h1&gt;
  
  
  When you build apps long enough, you eventually run into file storage.
&lt;/h1&gt;

&lt;p&gt;User uploads. Media previews. Private downloads. Public sharing. Expiring links. Access control.&lt;/p&gt;

&lt;p&gt;On paper, services like S3 and Firebase Storage solve this. In practice, I kept running into friction:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Overly complex permission models&lt;/li&gt;
&lt;li&gt;Confusing bucket structures&lt;/li&gt;
&lt;li&gt;Boilerplate-heavy integrations&lt;/li&gt;
&lt;li&gt;Public/private edge cases&lt;/li&gt;
&lt;li&gt;Performance surprises with large files&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So I decided to build a storage layer from scratch on top of Azure Blob Storage and document what I learned along the way.&lt;/p&gt;

&lt;p&gt;This eventually became &lt;a href="https://www.filefreak.io" rel="noopener noreferrer"&gt;FileFreak.io&lt;/a&gt;, but the more interesting part is the architecture and tradeoffs.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Not Just Use S3 Directly?
&lt;/h2&gt;

&lt;p&gt;You absolutely can.&lt;/p&gt;

&lt;p&gt;But most applications don't need the full flexibility of S3. They need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Secure uploads&lt;/li&gt;
&lt;li&gt;Private-by-default storage&lt;/li&gt;
&lt;li&gt;Controlled sharing&lt;/li&gt;
&lt;li&gt;Clean metadata management&lt;/li&gt;
&lt;li&gt;Reliable streaming&lt;/li&gt;
&lt;li&gt;Good UX&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The problem is not raw storage. It's everything around it.&lt;/p&gt;




&lt;h2&gt;
  
  
  Architecture Overview
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;High-level stack:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; Node.js with streaming-based request handling&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Storage:&lt;/strong&gt; Azure Blob Storage (hot tier)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database:&lt;/strong&gt; MSSQL for metadata and access control&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auth:&lt;/strong&gt; JWT sessions + Argon2 password hashing&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Realtime:&lt;/strong&gt; WebSockets for upload progress tracking&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Azure Blob handles durability and scale.&lt;br&gt;
The backend handles logic, security, and developer ergonomics.&lt;/p&gt;


&lt;h2&gt;
  
  
  Handling Large Uploads Without Blowing Memory
&lt;/h2&gt;

&lt;p&gt;One of the biggest mistakes I made early on was buffering too much data in memory.&lt;/p&gt;

&lt;p&gt;The correct approach is fully streaming uploads:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pipe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;blockBlobClient&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;uploadStream&lt;/span&gt;&lt;span class="p"&gt;());&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Key lessons:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Never buffer entire files in memory&lt;/li&gt;
&lt;li&gt;Respect backpressure&lt;/li&gt;
&lt;li&gt;Destroy streams properly on error&lt;/li&gt;
&lt;li&gt;Handle partial uploads cleanly&lt;/li&gt;
&lt;li&gt;Watch for &lt;code&gt;ERR_STREAM_WRITE_AFTER_END&lt;/code&gt; issues&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Streaming architecture matters more than people think.&lt;/p&gt;




&lt;h2&gt;
  
  
  Private by Default
&lt;/h2&gt;

&lt;p&gt;Storage systems tend to default toward public access or complicated ACLs.&lt;/p&gt;

&lt;p&gt;Instead, I designed the system around:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;All files private by default&lt;/li&gt;
&lt;li&gt;Signed access for downloads&lt;/li&gt;
&lt;li&gt;Public links as explicit opt-in&lt;/li&gt;
&lt;li&gt;Optional password protection&lt;/li&gt;
&lt;li&gt;Expiration timestamps stored in metadata&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Security is easier to reason about when the default state is locked down.&lt;/p&gt;




&lt;h2&gt;
  
  
  Real-Time Upload Progress
&lt;/h2&gt;

&lt;p&gt;Instead of polling for upload status, I used WebSockets to emit progress events during streaming uploads.&lt;/p&gt;

&lt;p&gt;This significantly improves UX compared to traditional form-based uploads.&lt;/p&gt;

&lt;p&gt;It's a small detail, but it makes the system feel modern.&lt;/p&gt;




&lt;h2&gt;
  
  
  Metadata Is Everything
&lt;/h2&gt;

&lt;p&gt;Blob storage is not your database.&lt;/p&gt;

&lt;p&gt;Every file is paired with structured metadata stored in MSSQL:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Owner ID&lt;/li&gt;
&lt;li&gt;Folder hierarchy&lt;/li&gt;
&lt;li&gt;Access level&lt;/li&gt;
&lt;li&gt;Public token (if generated)&lt;/li&gt;
&lt;li&gt;Expiration time&lt;/li&gt;
&lt;li&gt;Size&lt;/li&gt;
&lt;li&gt;MIME type&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Storage handles durability.&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;The database handles logic.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Trying to overload blob metadata quickly becomes painful.&lt;/p&gt;




&lt;h2&gt;
  
  
  Performance Considerations
&lt;/h2&gt;

&lt;p&gt;Azure Blob hot tier pricing is attractive at around &lt;strong&gt;$0.02 per GB&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;But storage cost is rarely the main expense.&lt;/p&gt;

&lt;p&gt;The real considerations are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Egress bandwidth&lt;/li&gt;
&lt;li&gt;API compute&lt;/li&gt;
&lt;li&gt;Streaming efficiency&lt;/li&gt;
&lt;li&gt;Database load&lt;/li&gt;
&lt;li&gt;File preview handling&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Optimizing for streams instead of buffers made a measurable difference in memory stability under load.&lt;/p&gt;




&lt;h2&gt;
  
  
  Building the UI Layer
&lt;/h2&gt;

&lt;p&gt;On the frontend, I focused on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A file explorer-style dashboard&lt;/li&gt;
&lt;li&gt;Drag-and-drop uploads&lt;/li&gt;
&lt;li&gt;Nested folders&lt;/li&gt;
&lt;li&gt;Trash and restore&lt;/li&gt;
&lt;li&gt;In-browser previews for images, videos, and PDFs&lt;/li&gt;
&lt;li&gt;Secure sharing links&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal was to reduce friction, not increase flexibility.&lt;/p&gt;

&lt;p&gt;Most apps don't need 500 configuration flags.&lt;br&gt;
They need reliability and clarity.&lt;/p&gt;




&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;The next phase is exposing the storage layer as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A public API&lt;/li&gt;
&lt;li&gt;SDKs for easy integration&lt;/li&gt;
&lt;li&gt;Programmatic file management&lt;/li&gt;
&lt;li&gt;Expanded permission controls&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The interesting question is not whether storage exists.&lt;br&gt;
It's whether developers want &lt;strong&gt;maximum flexibility&lt;/strong&gt;&lt;br&gt;
or &lt;strong&gt;sensible defaults with guardrails&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Quick Feature Snapshot
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What's live today:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Private-by-default cloud storage&lt;/li&gt;
&lt;li&gt;Fast uploads with real-time progress&lt;/li&gt;
&lt;li&gt;Streaming uploads and downloads&lt;/li&gt;
&lt;li&gt;In-browser previews&lt;/li&gt;
&lt;li&gt;Folder organization and trash restore&lt;/li&gt;
&lt;li&gt;Secure public sharing links with optional password protection and expiration&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Coming next:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Public developer API&lt;/li&gt;
&lt;li&gt;SDKs for integration&lt;/li&gt;
&lt;li&gt;Enhanced team permissions&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  I'm Curious
&lt;/h2&gt;

&lt;p&gt;For those of you who've built apps involving file uploads:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What's the most frustrating part?&lt;/li&gt;
&lt;li&gt;Is the pain UX, permissions, pricing, performance, or something else?&lt;/li&gt;
&lt;li&gt;Would you trade flexibility for simplicity?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you're curious about what this evolved into, it became &lt;a href="https://www.filefreak.io" rel="noopener noreferrer"&gt;FileFreak.io&lt;/a&gt;. But the architecture lessons were the real takeaway.&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>azure</category>
      <category>backend</category>
      <category>cloudcomputing</category>
    </item>
  </channel>
</rss>
