SShortSingh.
Back to feed

Simple S3 Cost Fixes: Lifecycle Rules, Storage Classes, and Free Monitoring Tools

0
·1 views

Many AWS S3 bills are inflated due to a handful of common, easily correctable mistakes, according to a technical guide published on DEV Community. Data is often left in the most expensive storage class, S3 Standard at $0.023 per GB per month, when colder tiers like Glacier Deep Archive cost as little as $0.00099 per GB per month — a roughly 96% reduction for rarely accessed data. Incomplete multipart uploads silently accumulate storage charges for parts that never appear in the standard console view, and a single lifecycle rule set to abort uploads older than seven days can eliminate this hidden cost. AWS S3 Storage Lens, available free with 62 metrics and 14 days of history, is recommended as the first step to identify which buckets hold the most data and where orphaned upload parts exist. Additionally, routing S3 traffic through a VPC Gateway Endpoint instead of a NAT Gateway can eliminate per-byte transfer charges at no added cost.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Postgres 18 fixes silent audit log corruption with new RETURNING old/new syntax

A long-standing race condition in database applications allows concurrent transactions to read the same value simultaneously, causing lost updates while the audit log falsely appears consistent. In tests simulating ten workers each withdrawing from a shared account, between four and six transactions were silently lost per run, yet the audit table showed no anomalies. PostgreSQL 18 introduces old and new row references directly within a RETURNING clause, allowing the read, write, and audit insert to occur as a single atomic statement. This eliminates the gap between reading and writing a value that competing transactions could previously exploit. The change means audit logs now reflect what a query actually overwrote, not what the application last read, making silent data corruption detectable by design.

0
ProgrammingDEV Community ·

How to merge LoRA adapters and deploy fine-tuned LLMs using vLLM or Hugging Face Spaces

A fine-tuned LoRA adapter requires a deliberate deployment strategy before it becomes a usable product. FineTune Studio supports three inference paths — local inference, a vLLM server, and a Hugging Face Space — each suited to different use cases ranging from demos to production traffic. Merging adapter weights into the base model simplifies serving but is optional when using vLLM, which supports LoRA adapters natively. Before declaring a model deployed, engineers should verify that the chat template, stop tokens, precision settings, and throughput under realistic concurrency all match training conditions. The article also stresses versioning the adapter, dataset, and evaluation results together to track changes over time.

0
ProgrammingDEV Community ·

How to Secure a React Telegram Mini App Using initData Validation and JWT

A developer tutorial published on DEV Community outlines a two-sided authentication flow for Telegram Mini Apps built with React and a PHP backend. The React app reads initData from the Telegram Web App SDK and sends it as a custom header with every API request. The PHP server then validates the header using HMAC-SHA-256 with the Bot Token as the key, rejecting forged or expired data before issuing a short-lived JWT tied to the verified Telegram user ID. Protected API endpoints subsequently verify the JWT and confirm that the telegram_id claim matches the expected user for each resource. The approach is designed to defend against three main threats: replayed initData, forged user IDs, and JWT reuse across different users.

0
ProgrammingDEV Community ·

Developer Cuts AI Agent Cold-Start Time from 25 Seconds to 2 by Switching to Go

A developer running four Model Context Protocol (MCP) adapter services on a personal Kubernetes cluster rewrote all of them from Python to Go after measuring cold-start latencies of 5–7 seconds per service. Because the cluster scaled to zero when idle, cold starts were the norm rather than the exception, making AI agent tool calls feel broken to end users. Sequentially, a four-service agent workflow was accumulating 20–25 seconds of startup latency on every cold run. After the rewrite, the same workflow completed in roughly 2 seconds, matching a Go-based service the developer had already built that cold-started in 200–400 milliseconds. The migration involved four separate weekend rewrites, ultimately settling on Go's standard net/http library and slog for logging across all services.