Learning Resources

Tutorials

Step-by-step guides and in-depth articles to level up your skills.

Page 6 of 9

How to Implement Chaos Experiments

Run controlled chaos experiments that inject real failures, state a hypothesis and blast radius, and stop safely, to prove resilience.

Resilience

How to Implement Code Splitting

Load only the JavaScript a route needs, defer the rest, and prefetch the next chunk so a split never costs a delay.

Data Fetching

How to Implement Continuous Profiling

Run always-on, low-overhead profiling in production to attribute CPU and memory cost to specific functions and find regressions before users do.

Config Management

How to Implement Email Verification

Confirm a user owns an email address with a single-use, expiring token, and resend safely without enabling abuse or enumeration.

Security Boundaries

How to Cache Embeddings by Content Hash

Avoid re-embedding identical text by keying a cache on a content hash and the model version, with LRU eviction and stampede protection.

Data Integrity

How to Implement Field-Level Encryption

Encrypt sensitive columns individually with per-field keys and authenticated encryption, keeping plaintext out of databases, backups and logs.

Security Boundaries

How to Implement Happy Eyeballs

Connect fast on dual-stack hosts with Happy Eyeballs: race IPv6 and IPv4, prefer IPv6 with a head start, and connect to whichever answers first.

Resilience

How to Implement Idempotency Keys

Make retried requests safe by storing a client-supplied key and replaying the original result instead of performing the work twice.

Resilience

How to Implement LLM Tool Calling Safely

Give a language model tools without letting it run arbitrary actions, using typed schemas, least-privilege scopes and human confirmation gates.

Security Boundaries

How to Implement Logical Replication

Replicate selected tables between databases with logical replication: publications, subscriptions, initial sync and conflict handling.

Data Integrity

How to Implement Negative Caching

Cache the answer that something does not exist for a short time, so repeated lookups for a missing key do not hammer the origin.

Resilience

How to Implement Request Coalescing

Deduplicate identical concurrent calls into a single upstream request so a burst of readers does not fan out into a burst of fetches.

Resilience

How to Implement Search Autocomplete

Serve prefix suggestions in milliseconds with an indexed prefix structure, client debouncing and a ranking that favours useful results.

Data Fetching

How to Implement SLO Burn-Rate Alerts

Alert on error-budget burn rate with multi-window, multi-burn-rate rules so alarms fire on real outages without paging on every blip.

Resilience

How to Generate SLSA Provenance in CI

Produce SLSA provenance for builds so artifacts carry verifiable evidence of what source produced them and how, enabling policy checks.

Security Boundaries

How to Implement Subresource Integrity

Pin the exact bytes of third-party scripts and styles with integrity hashes so a compromised CDN cannot run altered code in your pages.

Security Boundaries

How to Implement Trace Sampling Strategies

Choose head, tail and per-key sampling so traces stay useful and cheap: keep every error and slow request while sampling the boring majority.

Config Management

How to Instrument the Golden Signals

Instrument latency, traffic, errors and saturation for every service using consistent metrics, so health is visible before customers report it.

Config Management

How to Layout a Medallion Lakehouse

Organise a lakehouse into bronze, silver and gold layers, with clear responsibilities, contracts and reprocessing so each layer earns its keep.

Data Integrity

How to Load Test an API with k6

Measure how an API behaves under realistic load with scripted virtual users, thresholds and staged ramps before real traffic arrives.

Resilience

How to Manage Session Tokens Securely

Issue opaque session tokens, store only their hash, rotate on privilege change, and revoke cleanly so a stolen token has a short life.

Security Boundaries

How to Monitor Replication Lag

Measure how far a replica trails its primary, understand what causes lag, and bound the staleness your readers can tolerate.

Resilience

How to Optimize Bundles with esbuild

Use esbuild for fast JS/TS bundling: entry points, code splitting, external deps, CSS and defining production globals correctly.

Cli Tooling

How to Optimize Database Indexes

Design composite, covering and partial indexes from the queries you actually run, and drop indexes you do not need.

Data Integrity

How to Optimize Web Font Loading

Keep a web font from blocking text or shifting layout with font-display, preload, subsetting and a size-adjusted fallback.

Data Fetching

How to Prevent Broken Access Control

Enforce authorization on every request at the object level, deny by default, and test it adversarially so a missing check cannot leak data.

Security Boundaries

How to Protect Against Timing Attacks

Compare secrets in constant time, equalise visible work, and close the timing side channels that leak values byte by byte.

Security Boundaries

How to Reduce React Re-renders

Find what is re-rendering, why, and fix it by memoising props, moving state down and keeping context from fanning out.

Data Fetching

How to Rotate Database Credentials Safely

Rotate database passwords without downtime using dual credentials, connection pool draining and a verified cutover, plus a rollback path.

Security Boundaries

How to Rotate Secrets with a KMS

Manage encryption keys and application secrets so rotation happens on schedule without downtime or redeploys.

Security Boundaries

How to Run Accessibility Tests in CI

Add automated accessibility checks to CI with axe, keyboard tests and manual review, and gate merges on regressions without false confidence.

Form Validation

How to Scan for Secrets in CI

Keep credentials out of the repository by scanning every pull request for secret patterns and blocking merges on high-confidence findings.

Security Boundaries

How to Set Up pnpm Workspaces

Manage multiple packages in one repository with linked dependencies, a single lockfile and reproducible installs.

Cli Tooling

How to Shrink Your JavaScript Bundle

Analyse what is in the bundle, remove or replace the heavy dependencies, enable tree shaking, and set a budget so it stays small.

Data Fetching

How to Slim Down a Large Docker Image

Diagnose and shrink a bloated Docker image: layer analysis, smaller bases, pruning dev dependencies and removing build leftovers.

Cli Tooling

How to Test with Metamorphic Relations

Test functions whose correct output is hard to compute by asserting invariant relationships between pairs of inputs and their outputs.

Data Integrity

How to Triage and Quarantine Flaky Tests

Find which tests fail without a code change, quarantine them so the suite stays trustworthy, and fix the root cause instead of retrying.

Data Integrity

How to Tune TCP for Latency

Tune TCP for low latency: congestion control, socket buffers, fast open, nagle and delayed ACK, and measure the effect rather than guessing.

Resilience

How to Tune TCP for Throughput

Adjust send and receive buffers, window scaling and congestion control so a high-latency link is not limited by defaults.

Resilience

How to Use BRIN Indexes for Large Tables

Use BRIN indexes for huge, naturally ordered tables: tiny size, cheap maintenance and fast range scans when the data correlates with its position.

Data Integrity

How to Use Connection Preconnect Hints

Cut request latency with preconnect, dns-prefetch and preload hints, so the browser sets up connections and fetches resources before they are needed.

Resilience