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
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
5xxx)6xxx)