Skip to content
Stack&Skill

Loading search…

// search by error

Paste the error. Find the fix.

Paste what your terminal, logs, or browser console printed. We look for the same error in the code, logs, and incident reports of every article, and take you to the line.

Results

Matched onEXISTS

  1. AI & MLTutorial

    Building a RAG Pipeline That Actually Works: Chunking, Embeddings, and Evaluation

    Build a RAG pipeline that holds up in production: chunking strategies, embeddings in pgvector, hybrid search with RRF, reranking, citations, and evaluation. · Yahia Rachek

  2. BackendGuide

    REST API Design Best Practices: Building APIs Other Developers Love

    A practical guide to REST API design: resource URLs, status codes, RFC 9457 errors, keyset pagination, idempotency keys, ETags, versioning, and rate limits. · Yahia Rachek

    • Fetching `limit + 1` rows reveals whether another page exists without a count query. The cursor is validated like any other input. Opaque means clients mustn't parse it, so you …

      text§ Keyset pagination in PostgreSQL

    • Never return 200 with an error in the body; retries, monitoring, and client libraries all key off the status. Prefer 404 over 403 when admitting a resource exists would leak inf…

      text§ Status codes that matter

  3. ReactDeep dive

    React Server Components Explained: When to Use Server vs. Client Components

    Learn how React Server Components work, what the use client directive really marks, and how to fetch, stream, and mutate data safely in the Next.js App Router. · Yahia Rachek

    • - **Fetching in `useEffect` out of habit.** If an API route exists only to feed one Client Component, fetch in a Server Component parent and pass the data down as props.

      text§ Common mistakes

  4. BackendComparison

    JWT vs. Sessions: Choosing an Authentication Strategy for Your API

    How server-side sessions and JWTs work, what stateless auth really costs, how to revoke and store tokens safely, and when I choose each one for an API. · Yahia Rachek

  5. JavaDeep dive

    Java Virtual Threads in Practice: Scaling Blocking Code Without Going Reactive

    Learn how Java virtual threads scale blocking code: how they work, a runnable HttpClient fan-out, pinning, ThreadLocal pitfalls, and Spring Boot setup. · Yahia Rachek

    • - **Memory multiplied by thread count.** A thread local's value exists once per live thread: cheap with 200 threads, expensive with a million. `InheritableThreadLocal` values ar…

      text§ ThreadLocal pitfalls and scoped values

    • A pool exists to share something scarce, and virtual threads aren't scarce. Create one per task. To limit how many tasks touch a resource at once, limit the resource directly, a…

      text§ Creating virtual threads

  6. BackendDeep dive

    Database Indexing Explained: How B-Tree Indexes Really Speed Up Your Queries

    How PostgreSQL B-tree indexes work, how to read EXPLAIN plans, and how to design composite, covering, partial, and expression indexes that actually get used. · Yahia Rachek

  7. BackendGuide

    Microservices Communication: Synchronous vs. Asynchronous Patterns

    When to call a service directly and when to send a message, plus timeouts, retries, circuit breakers, idempotent consumers, the outbox pattern, and sagas. · Yahia Rachek

  8. DevOpsTutorial

    Zero-Downtime Deployments with Docker and GitHub Actions

    Ship zero-downtime deployments with Docker and GitHub Actions: graceful shutdown, readiness checks, blue-green with Compose and Caddy, and safe migrations. · Yahia Rachek

  9. BackendGuide

    Caching Strategies with Redis: Cache-Aside, Write-Through, and When to Use Each

    A practical guide to Redis caching in TypeScript: cache-aside, TTL jitter, safe invalidation, write-through, write-behind, stampede fixes, and eviction. · Yahia Rachek

    • It needs no coordination, but it only helps while the key exists. A cold or just-deleted key still needs the lock or coalescing, which is why I layer them.

      text§ Probabilistic early expiration

Keyboard shortcuts

Reading

Next article (older)
j
Previous article (newer)
k

Search

Search articles
/
Command palette (⌘ K on a Mac)
Ctrl+K

Go to

Home
gthenh
All articles
gthena
Topics
gthent
Learning paths
gthenp
Reading list
gthenr
Leaderboard
gthenl

Help

Show these shortcuts
?