Overview
Private Connect provides powerful agent orchestration features for managing distributed systems, discovering services, and coordinating peer-to-peer connections.Agent Discovery
Automatic Service Detection
Private Connect can automatically discover running services on localhost:Discovery with Custom Ports
Service Identification
The discovery engine identifies services by:HTTP/HTTPS Services
HTTP/HTTPS Services
- Detects web servers on common ports (80, 443, 3000, 8080, etc.)
- Extracts page titles and server headers
- Distinguishes between HTTP and HTTPS
Database Services
Database Services
- PostgreSQL: Sends SSL request packet to identify
- Redis: Sends PING command and checks for PONG response
- MySQL: Detects on port 3306
- MongoDB: Detects on port 27017
Protocol Detection
Protocol Detection
Agent Messaging
Hub Communication
Agents communicate through the hub for service metadata and routing:Service Registration
When exposing a service, agents register with the hub:- Service name:
staging-db - Target port:
5432(where your service runs) - Tunnel port: Allocated by hub for connections
- Agent ID: Your authenticated agent
- Status:
online
Real-time Updates
The proxy refreshes service routes every 10 seconds:Multi-Agent Coordination
Reach Multiple Services
Connect to multiple remote services simultaneously:Route Table Management
File-based Orchestration
Active Routes Tracking
Private Connect maintains a file-based state for active routes:File Watching for Dynamic Updates
The proxy watches for route changes:- Hot-reload when services are added/removed
- No proxy restart needed
- Instant route updates
Peer-to-Peer Discovery
Service Metadata Exchange
Agents can query service metadata from the hub:Direct Tunnel Connections
Once you have thetunnelPort, connect directly:
Advanced Patterns
Multi-Region Coordination
Service Dependencies
Health Monitoring
Best Practices
Service Naming
Use descriptive, environment-aware names:
prod-dbnotdbstaging-apinotapidev-redisnotredis
Port Management
Let Private Connect auto-select ports to avoid conflicts:
Configuration Files
Use
pconnect.yml for team consistency:Service Discovery
Run discovery before exposing: