Runtime
Explore how the Pulsar engine polymorphically adapts across V8 Isolate, Serverless VM, and Persistent execution environments.
The Pulsar engine uses polymorphic runtime drivers to seamlessly manage queue processing across ephemeral serverless environments and dedicated persistent infrastructure.
Pulsar automatically adjusts its scheduling, state tracking, and lifecycle hooks based on the configured runtime enum.
Code Usage
import { Pulsar, PulsarRuntime } from "pulsar";
const engine = new Pulsar({
runtime : PulsarRuntime.PERSISTENT,
// configs
})Supported Runtimes
V8_ISOLATE
Designed for ultra-ephemeral V8 isolate environments such as Cloudflare Workers, Supabase Edge Functions, and Deno Deploy.
- Lifecycle: Inbound requests share a warm memory space until the isolate shuts down.
- Engine Strategy: Relies on an active
isolateinstance to monitor remaining lifespan, sync dynamic global state, and schedule ticks before cloud providers terminate the isolate.