Skip to content
tezvyn:

All bites

The whole library, newest first. Filter by what you are here for, or pick a topic if you already know.

4330 bites

Page 78

Cloud Platforms1 min read

Read replicas in managed relational databases

A read replica is an async copy of the primary that serves read-only queries, offloading the primary and scaling read-heavy workloads; expect replication lag.

Cloud Platforms1 min read

How does caching reduce database load?

Cache-aside reads, RAM-speed lookups, TTL plus invalidation.

Cloud Platforms1 min read

RDS Multi-AZ versus Read Replicas

Multi-AZ is a synchronous standby for failover, replicas are async for read scaling, combine both when needed.

Cloud Platforms2 min read

Strong versus eventual consistency in NoSQL

Strong reads see the latest write at higher latency and cost, eventual reads may be stale but are cheaper and faster, match the choice to stakes.

Cloud Platforms1 min read

Data warehouse versus OLTP database

Warehouses use columnar storage for analytical scans, OLTP uses row storage for fast transactions, each fits a different workload.

Cloud Platforms2 min read

Add a second access pattern to a key-value store

Add a global secondary index on EmailAddress, weighing extra storage, write amplification, and eventual consistency.

Cloud Platforms1 min read

Design a global low-latency database

A distributed store with replicas near users, a tuned consistency level, accepting lag, conflicts, and cross-region cost.

Cloud Platforms2 min read

CAP theorem and real database tradeoffs

During a partition you pick consistency or availability, CP systems reject requests, AP systems stay available but stale.

Cloud Platforms1 min read

The cloud shared responsibility model

The provider secures the cloud (hardware, OS, runtime), you secure what runs in it (code, data, config, access).

Cloud Platforms2 min read

Why not store uploads on local PaaS disk?

PaaS instances are ephemeral and unshared, so local files vanish on restart and are invisible to peers; store uploads in object storage.

Cloud Platforms1 min read

Deploying to Heroku via Git

Push to the remote, a buildpack detects the language, builds a slug, and runs the Procfile process.

Cloud Platforms1 min read

Securely supplying secrets to an app

Never hardcode credentials, inject them as environment variables or pull from a secrets manager, and rotate them.

Cloud Platforms2 min read

CI/CD pipeline for a container PaaS

Run tests, build the image, push the tag to a registry, then deploy it to Cloud Run. The registry is the build-to-deploy handoff.

Cloud Platforms2 min read

Offload long-running tasks from web requests

Enqueue the job to a queue, return immediately, process with separate workers, report status out of band.

Cloud Platforms2 min read

Cold starts in serverless environments

A cold start is the delay to provision a fresh instance and initialize the runtime; mitigate with provisioned concurrency and by shrinking init work.

Cloud Platforms2 min read

Migrating a stateful monolith to PaaS

Externalize state to backing services, make processes stateless and disposable, read config from the environment per Twelve-Factor.

Cloud Platforms1 min read

Writing a Dockerfile for a web app

FROM a base, set WORKDIR, install dependencies before app code for cache reuse, EXPOSE the port, CMD the start command.

Cloud Platforms2 min read

Kubernetes Deployment versus Pod

A Pod is the smallest disposable unit, a Deployment maintains a desired replica count, self-heals, and rolls out updates.

Cloud Platforms2 min read

Multi-stage Docker builds

A build stage compiles with the toolchain, the final stage uses a minimal base and copies only the artifact, cutting size and attack surface.

Cloud Platforms2 min read

Exposing Kubernetes services to the internet

A Service gives stable access and LoadBalancer exposes one service, while Ingress adds L7 host and path routing with TLS for many services.