batching-caching

Installation
SKILL.md

Batching and Caching in Effect

Overview

Effect provides automatic optimization for API calls:

  • Batching - Combine multiple requests into single API calls
  • Caching - Avoid redundant requests with smart caching
  • Deduplication - Prevent duplicate concurrent requests

This solves the N+1 query problem automatically.

The Problem: N+1 Queries

const program = Effect.gen(function* () {
  const todos = yield* getTodos();

  const owners = yield* Effect.forEach(todos, (todo) => getUserById(todo.ownerId), { concurrency: "unbounded" });
Related skills

More from andrueandersoncs/claude-skill-effect-ts

Installs
2
GitHub Stars
8
First Seen
Mar 22, 2026