Skip to content

Creates a multi-stub that executes methods on multiple DOs, Returns the response from the first DO, executes others in background

Notifications You must be signed in to change notification settings

janwilmake/multistub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multistub

Creates a multi-stub that executes methods on multiple DOs. Returns the response from the first DO, executes others in background.

This creates a broadcast execution pattern where:

  • One operation gets executed across multiple Durable Objects simultaneously
  • You get the primary response immediately (from first DO)
  • Secondary operations happen in background via waitUntil
  • All DOs are identical instances from same namespace but with different IDs/names

I have not yet fathomed what this could enable, but just think about it! Inspo: https://letmeprompt.com/httpspastebincon-f34s3w0

Brainstormed usecases so far:

About

Creates a multi-stub that executes methods on multiple DOs, Returns the response from the first DO, executes others in background

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published