BUN FOR BEGINNERS: MASTER THE LIGHTNING-FAST JAVASCRIPT RUNTIME STEP-BY-STEP: Build High-Performance APIs Faster Than Node.js with TypeScript & Real Projects
Format:
Paperback
En stock
0.68 kg
Sí
Nuevo
Amazon
USA
- Build high performance TypeScript services on Bun, from first run to production, with clear steps and working code.Bun changes the developer workflow by running TypeScript and JSX directly, bundling fast, and shipping compact servers without extra layers. Many developers are unsure how to wire the runtime to real HTTP services, databases, WebSockets, and CI without surprises.This book gives you a practical path. You will set up Bun on macOS, Linux, and Windows, ship APIs that validate input and handle errors predictably, move bytes efficiently, and deploy with confidence on Docker, systemd, and managed platforms.Run TypeScript and JSX directly on Bun, use a minimal tsconfig, map clean import paths with compilerOptions.pathsDesign HTTP services with Bun.serve, route requests, serve static files, validate with Zod, return structured JSONApply timeouts and graceful shutdowns, set secure cookies and sessions, handle errors consistentlyBuild realtime features with WebSockets, use per socket context, broadcast safely, manage backpressure, presence, and reconnectsUse bun:sqlite with transactions and WAL, integrate Postgres or MySQL with pooling and cancellation, add Redis caching and pub subManage schema change with Drizzle migrations and repeatable change setsUse bun install for deterministic CI, workspaces in a monorepo, lifecycle scripts, trustedDependencies, and registry mirrorsWrite tests with bun test, assertions and snapshots, coverage with lcov, HTTP and WebSocket integration tests, JUnit output, handle flaky testsBundle for server and browser with bun build, code splitting, assets, single file executables, source maps and legal commentsChoose Vite or Rollup when it is the right call, use clear decision pointsDeploy with small Docker images and multi stage builds, or run on Ubuntu with systemd and zero downtime restartsPublish to Vercel, Fly.io, Railway, or Render with quick start guidesAdd a front proxy for TLS and HTTP 2 or 3 with clean headers and health checksInstrument with structured logs and request IDs, metrics and tracing via OpenTelemetry, Sentry releases with source mapsLoad test with wrk or oha or autocannon, profile and apply focused JavaScriptCore notesPlan a no drama migration from Node, fill compatibility gaps with polyfills and flags, run dual runtime CI, roll out and roll back safelyBuild capstones that hold up, a high performance REST API using SQLite, Redis, and S3, a realtime chat with presence and persistence, and a file pipeline with multipart upload, background workers, and retriesThis edition includes practical add ons, a production hardening checklist, SLOs and error budgets, incident runbooks, and platform quick starts that map to the chapters.The guide is code heavy and ready to use. Every snippet is labeled with the exact language, TypeScript, Shell, YAML, Systemd Unit, and is structured so you can copy, run, and adapt it to real projects.Get the guide now and start building faster with Bun today.
IMPORT EASILY
By purchasing this product you can deduct VAT with your RUT number