SShortSingh.
Back to feed

Sharding a hot DynamoDB key to avoid throttling on on-demand tables

0
·7 views

On-demand DynamoDB tables can still throttle when a single partition key receives very heavy write traffic, because each physical partition caps out at about 1,000 write units per second regardless of table size or capacity mode. The article recommends confirming the cause with the ThrottlingReasons field and CloudWatch Contributor Insights, which can identify the hot key. The suggested fix is write sharding: appending a numeric suffix to the key so writes spread across roughly twenty partitions, with reads summing all shards. Sizing is estimated with a 50 percent safety margin, and read and write shard counts must be raised in a careful order to avoid silently losing throughput. Sharding should be limited to the keys that actually need it, since it complicates reads.

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 ·

How to structure a Claude Code skill file and avoid three common mistakes

The article explains that a Claude Code skill is a folder containing a SKILL.md file and supporting references and scripts that load only when needed. It describes how the description field should state when to use the skill in plain task language, since vague descriptions prevent it from triggering. It recommends splitting the pipeline into steps that each produce an openable file, moving deterministic actions into scripts, and adding a QA check so the agent cannot falsely report success. The author also notes they sell motion-graphics skill packs, which the structure does not depend on.

0
ProgrammingDEV Community ·

Yatta JS Bundles Sign-Up, Sessions, Passkeys and 2FA Into One Bun Backend

Yatta JS is a backend-as-a-server for Bun that bundles a database, auth, mail, storage, realtime, jobs and observability into a single process. Scaffolding a new project with its CLI comes with authentication already wired to the database. Developers set up auth with createAuth, which requires a persistent store in production and a secret supplied through an environment variable. Passwords are hashed with Argon2id and sessions are encrypted at rest using AES-256-GCM by default. The walkthrough also covers sign-up, sign-in, session resolution and protecting routes.

0
ProgrammingDEV Community ·

Pattern Generator Gains Ellipsoid and Paraboloid Shapes for Oval Cosplay Parts

A developer added an ellipsoid option to CosplayShapes, a pattern generator they built for their own cosplays, after a user on Instagram requested the feature. An ellipsoid is an oval-shaped solid that can be stretched differently in each direction, useful for gems or helmet shells. The developer also added an elliptic paraboloid, a deep bowl-like shape used for items such as breastplate cups or nose cones. Both shapes share a common approach, with each described by a profile function, and are built from gores, the pointed pieces used in a beach ball. Because oval shapes produce seams of unequal length, the app calculates each gore in thin bands and solves for a turn angle that keeps neighbouring pieces fitting together.

0
ProgrammingDEV Community ·

Guide Shows How to Verify Kubernetes Observability Signals for a Flask App

A DEV Community article describes deploying an observability stack on Kubernetes for a Flask application, covering Prometheus, Grafana, Loki, Alloy, and Alertmanager. The author argues that installing these tools is only the first step, and that the harder work is confirming that every signal actually flows through the pipeline. The piece highlights checks such as exposing custom /metrics without self-scrape noise, scoping LogQL log streams to the dev environment, and verifying FIRING and RESOLVED Slack alert notifications. The article was published on December 3 and is tagged with Kubernetes, Prometheus, Grafana, and DevOps.