HotMeshConfig: {
    appId: string;
    engine?: HotMeshEngine;
    events?: types/system_events;
    guid?: string;
    logger?: ILogger;
    logLevel?: LogLevel;
    name?: string;
    namespace?: string;
    taskQueue?: string;
    workers?: HotMeshWorker[];
}

Type declaration

  • appId: string
  • Optionalengine?: HotMeshEngine
  • Optionalevents?: types/system_events

    Optional system-event sink. When provided, the engine calls events.publish post-commit for each durable transition it performs (escalation lifecycle, engine start/stop, deploy). Fire-and-forget.

    const hotMesh = await HotMesh.init({
    appId: 'myapp',
    engine: { connection: { class: Postgres, options: { ... } } },
    events: {
    publish: (e) => nats.publish(e.type, JSON.stringify(e)),
    },
    });
  • Optionalguid?: string
  • Optionallogger?: ILogger
  • OptionallogLevel?: LogLevel
  • Optionalname?: string
  • Optionalnamespace?: string
  • OptionaltaskQueue?: string

    Task queue identifier used for connection pooling optimization. When multiple engines/workers share the same task queue and database configuration, they will reuse the same connection instead of creating separate ones. This is particularly useful for PostgreSQL providers to reduce connection overhead.

  • Optionalworkers?: HotMeshWorker[]