Skip to content

Build the IPC Job Queue for NIP-90 #639

@Priyanshubhartistm

Description

@Priyanshubhartistm

Description

This is the first step toward turning Nostream into a DVM (Data Vending Machine) orchestrator. Before we can do billing, service discovery, we need a way for the relay to actually receive DVM job requests and hand them off to external worker processes.

That's what this issue covers.

What needs to be done

  • Listen for incoming NIP-90 DVM request events (kind 5xxx)
  • Parse the job details (input data, requested compute type, etc.)
  • Spawn or communicate with an external process (like a Python script or Node worker) using standard I/O (stdin/stdout) or TCP sockets
  • Send the job payload to that process, wait for the result, and relay it back as a NIP-90 result event (kind 6xxx)
  • Queue jobs properly. We need a basic async queue so things don't pile up or get lost

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions