Urgent.News

What's breaking now, across thousands of outlets.

Tech

Small SaaS Image Thumbnail Architecture — Object Storage and Server Resize vs CDN

Short answer: for a small fintech SaaS serving US and EU users, keep originals and thumbnails in object storage and resize on the server after upload. Pick an image CDN only when you need URL-driven, on-the-fly transforms at the edge. That decision is less about where pixels live than where you want the rules to live. A reproducible retention policy, private training artifacts, and predictable…

When running a small fintech SaaS targeting US and EU users, there are two primary methods to handle image thumbnails: storing originals and thumbnails in object storage, and resizing on the server post-upload. The decision between these two approaches hinges on where you want to manage the rules and policies governing image processing.

For the first method, object storage paired with server resizing, you store the original image and then generate thumbnails immediately after upload. This approach uses a write-time pipeline. The upload handler stores the original image in a specific directory, triggers a resize job, and saves the thumbnails in another directory.

The key benefit of this method is the reproducibility of the results. Given the same source image and resize policy, the same object key and bytes will always be produced. This consistency allows for reliable retries and easy auditing. If a resize job fails due to a malformed file, the original object remains intact, and the retry process can be safely repeated without causing duplicate thumbnails.

When updating image processing policies, you create a new output key for the new policy while retaining the old one until the retention job allows it to be deleted.

The second approach involves using a CDN (Content Delivery Network) for image transformations. In this method, the original image is stored and accessed via a CDN, which then applies transformations on-demand using URL parameters. This approach is beneficial when you require URL-driven transformations at the edge, offering global edge latency and responsive sizes.

However, it requires a CDN provider that can securely read your private origin and enforce your access model. Services like Cloudinary or Imgix are designed for this purpose, offering managed transformations and quick delivery. Yet, they introduce additional URL and transformation semantics, which could lead to increased cost and policy coupling as traffic grows.

In conclusion, the choice between these architectures depends on your specific requirements. If you prioritize deterministic outputs, reproducible retries, and simpler operational management, the object storage with server resizing approach may be more suitable. On the other hand, if your application demands user-controlled, on-the-fly transformations at the edge, a CDN-based approach might be the better fit.

For teams new to image processing or those already invested in a specific cloud provider, Infrai offers a middle ground, providing a single REST API across backend modules, simplifying authorization and storage management.

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

Read the original at dev.to →

More in Tech

Stop Guessing Text Colors. Chrome DevTools Can Pick an Accessible One for You

Light grey text on white looks clean in a design file. It's also one of the most common accessibility failures on the web, and it's easy to miss because it looks fine on your own bright screen.

  • Chrome DevTools suggests accessible text colors
  • WCAG contrast ratio 4.5:1 for normal text
  • DevTools applies suggested color automatically

What is an LLM gateway? A practical guide for side projects

An LLM gateway is a single API endpoint in front of multiple model providers. Your application sends one request in one format; the gateway handles provider keys, routing, retries and usage records.

  • LLM gateway simplifies interaction with multiple model providers through a single API endpoint.
  • Gateway handles provider keys, routing, retries, and usage records behind the scenes.

Upgrading from .NET 8 to .NET 10: A Practical Checklist

Why upgrade now November 10, 2026 is the end-of-support date for both .NET 8 and .NET 9. Your apps keep running after that date, but they stop receiving security patches, so every new vulnerability…

  • End-of-support for .NET 8 and .NET 9 on November 10, 2026
  • Upgrade to LTS release .NET 10 supported until November 2028
  • Upgrade process involves pinning .NET 10 SDK, updating global.json, and testing suite

More from Wednesday 11 November →