-
Notifications
You must be signed in to change notification settings - Fork 100
Open
Labels
request/newRequest: Indicates a new request that has been submitted and awaits initial triageRequest: Indicates a new request that has been submitted and awaits initial triagetype/enhancementType: New features or enhancements to existing featuresType: New features or enhancements to existing features
Description
β¨ Feature Request: Add Persistent Services Layer (Analogous to Kubernetes Services)
π§ Summary
Enable Bacalhau nodes to host and expose long-lived background services (e.g. wallet servers, auth endpoints, RPC nodes), with internal and external service discovery, similar to Kubernetesβ Service
abstraction.
π Motivation
Bacalhau currently supports jobs to connect to internet. However, to support full-stack decentralized applications, there is a need for persistent services that are internally routable or selectively exposed.
This feature would allow Bacalhau to go beyond stateless or batch jobs and unlock support for more complex microservice-based architectures in decentralized environments.
π§° Use Cases
Examples of decentralized services that could be hosted:
- π Auth services (e.g., zk verifiers on TEE)
- π³ Wallet infrastructure (nonce managers, transaction relayers)
- π Blockchain nodes (e.g., local RPC endpoints, light clients)
- π§ AI/ML inference APIs
- π¦ Databases or key-value stores (e.g., decentralized Postgres wrappers)
- π Data indexing / search APIs
- π Internal APIs for chained Bacalhau jobs
π‘ Proposed Design
Introduce a services plane to Bacalhau with:
type: service
β New job type for perpetual, long-lived workloadsexpose: internal
- Service discovery layer β Allow job-to-job communication via logical service names
- DNS-like resolution β e.g.,
verifier-service.bacalhau
,db-service.bacalhau
- Health checks & restarts β Optional liveness probes or TTLs
- Lifecycle management β Ability to update, scale, or destroy services
β Benefits
- Unlocks full decentralized app infrastructure on Bacalhau
- Enables composable, multi-service deployments
- Mirrors Kubernetes-like patterns developers already know
- Supports modular AI/crypto infra stacks
- Sets foundation for future orchestration features (like job dependency graphs)
π Related Inspiration
- Kubernetes
Service
,ClusterIP
,Headless Service
- Hashicorp Consul / Nomad internal routing
- libp2p peer routing for internal-only DApps
Metadata
Metadata
Assignees
Labels
request/newRequest: Indicates a new request that has been submitted and awaits initial triageRequest: Indicates a new request that has been submitted and awaits initial triagetype/enhancementType: New features or enhancements to existing featuresType: New features or enhancements to existing features