Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Horizontal Scaling Series — Part 1: MinIO and Shared Object Storage

When we horizontally scale an application, adding more instances is only part of the solution. We also need to consider where the application stores its data and how other instances access it. While exploring horizontal scaling, I came across MinIO, an S3-compatible object storage system, and wanted to understand how it helps address one of these challenges. The problem: Local storage in a…

When scaling an application horizontally, adding more instances is not enough. The application's data storage and access methods also need consideration. MinIO, an S3-compatible object storage system, offers a solution to this challenge. In a distributed application with multiple instances, each instance has its own local storage.

If one instance, say App-1, stores a video on its local disk, another instance, App-2, cannot automatically access that file when a subsequent request arrives. Each instance's filesystem creates a dependency between the data and the instance storing it.

MinIO introduces shared object storage, a separate storage layer that multiple application instances can access via S3-compatible APIs. Instead of storing files exclusively on local disks, application instances can store and retrieve objects from shared storage. This decouples file storage from individual application instances, making horizontal scaling easier to manage.

The principle applies to various systems, such as video streaming, computer vision, and backend services dealing with user uploads, documents, and reports.

While MinIO simplifies shared file storage, it doesn't automatically make an application horizontally scalable. Other aspects, like database connections, sessions, distributed coordination, and instance-specific state, still need addressing. However, selecting the appropriate storage architecture is a crucial step. Future installments in this series will delve into distributed coordination, leader election, shared state, and database considerations when managing multiple service instances.

A key takeaway: Scaling application instances is simplified when shared data and instance-specific responsibilities are deliberately separated.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Debugging Service Workers in Firefox: DevTools, about:debugging, and Common Issues

Service workers are a critical web platform feature — they enable offline capabilities, push notifications, and background sync. Firefox has full service worker support.

  • Firefox provides comprehensive support for service workers with DevTools and about:debugging
  • Common Firefox service worker issues: incorrect scope, registration errors, and HTTPS requirements

Setting an env var above your imports does not run before them, and our integration test works anyway

The largest test file in PubTrivia is 543 lines, and it has no mocks in it. It calls the actual server actions a player's phone calls, and the actual engine the host's buttons and our WebSocket server both call, against the actual Postgres database the app uses. That is a trade with real costs, which I will get to.

  • Lines above imports do not run before imports in ES modules
  • Import declarations are hoisted, evaluated before module execution
  • Async function disabling WebSocket notifications returns early with warning

More from Friday, 16 October 2026 →