Render Private Services
Private services are identical to web services except they have no public URL. They are reachable only by other Render services on the same private network (same region + workspace). Use them for internal APIs, microservices, gRPC servers, sidecar processes, and anything that should never face the internet.
When to Use
- Building an internal API or microservice behind a public gateway
- Running a gRPC, TCP, or other non-HTTP server that only your services call
- Deploying infrastructure components (Elasticsearch, ClickHouse, RabbitMQ)
- Choosing between a private service and a background worker
For public-facing HTTP services, use render-web-services. For services that don't receive any traffic, use render-background-workers.
Private Service vs Background Worker
| Criterion |
Private Service |
Background Worker |
| Binds to a port |
Yes (required) |
No |
| Receives private network traffic |
Yes |
No |
| Sends outbound traffic |
Yes |
Yes |
| Has internal hostname |
Yes |
No |
| Use case |
Internal APIs, gRPC, TCP servers |
Queue consumers, async processors |
Rule of thumb: If the process listens on a port and other services call it, it's a private service. If it pulls work from a queue and never receives requests, it's a background worker.
How Private Services Work
- No
onrender.com subdomain—not reachable from the internet
- Reachable at
<service-name>:<port> on the private network by services in the same region and workspace
- Can listen on any port (except restricted system ports)—not limited to HTTP or port 10000
- Supports any protocol: HTTP, gRPC, TCP, WebSocket, custom binary protocols
- Same build/deploy lifecycle as web services (build command, start command, pre-deploy, health checks via the private network)
- Supports persistent disks, scaling, Docker runtime—same capabilities as web services
Connecting to a Private Service
Other services reference a private service via its internal hostname and port:
http://<service-name>:<port>
In Blueprints, wire the address using fromService:
- key: INTERNAL_API_URL
fromService:
name: my-api
type: pserv
property: hostport
Available fromService properties for pserv:
| Property |
Value |
host |
Internal hostname (e.g. my-api) |
port |
Port the service listens on |
hostport |
host:port combined (e.g. my-api:10000) |
You can also reference a specific env var from the private service using envVarKey instead of property.
Port Binding
Private services must bind to at least one port. If your process does not need to receive traffic, create a background worker instead.
- Bind to
0.0.0.0 (not 127.0.0.1 or localhost)
- The
PORT env var defaults to 10000, but you can listen on any non-restricted port
- For non-HTTP protocols (gRPC, TCP), configure your server on the desired port and tell consumers the
hostport
Blueprint Configuration
services:
- type: pserv
name: internal-api
runtime: node
region: oregon
plan: starter
buildCommand: npm ci && npm run build
startCommand: npm start
envVars:
- key: DATABASE_URL
fromDatabase:
name: db
property: connectionString
Microservices pattern (gateway + internal services)
services:
- type: web
name: gateway
runtime: node
plan: starter
region: oregon
buildCommand: npm ci && npm run build
startCommand: npm start
envVars:
- key: USER_SERVICE_URL
fromService:
name: user-service
type: pserv
property: hostport
- key: BILLING_SERVICE_URL
fromService:
name: billing-service
type: pserv
property: hostport
- type: pserv
name: user-service
runtime: node
plan: starter
region: oregon
buildCommand: npm ci
startCommand: node server.js
envVars:
- key: DATABASE_URL
fromDatabase:
name: db
property: connectionString
- type: pserv
name: billing-service
runtime: python
plan: starter
region: oregon
buildCommand: pip install -r requirements.txt
startCommand: gunicorn billing:app
envVars:
- key: DATABASE_URL
fromDatabase:
name: db
property: connectionString
References
| Document |
Contents |
references/patterns.md |
Microservice topology, gRPC setup, sidecar patterns, health checks for private services |
Related Skills
- render-web-services — Public HTTP services
- render-networking — Private network, DNS, service discovery
- render-background-workers — Services that don't receive traffic
- render-blueprints — Full
render.yaml schema, fromService wiring
- render-scaling — Instance types and autoscaling for private services
1---2name: render-private-services3description: >-4 Configures Render private services—internal-only apps that accept traffic5 exclusively from other Render services over the private network. Use when6 the user needs an internal API, microservice, gRPC server, sidecar, or any7 service that should not be publicly accessible. Also use when choosing8 between a private service and a background worker.9 Trigger terms: private service, pserv, internal service, internal API,10 microservice, gRPC, not public, private network service.11license: MIT12compatibility: Render private services (paid plans)13metadata:14 source: https://skillmd.com/skills/concertonotes/render-private-services15 author: Render16 version: "1.0.0"17 category: compute18---1920# Render Private Services2122Private services are identical to web services except they have **no public URL**. They are reachable only by other Render services on the same **private network** (same region + workspace). Use them for internal APIs, microservices, gRPC servers, sidecar processes, and anything that should never face the internet.2324## When to Use2526- Building an **internal API** or **microservice** behind a public gateway27- Running a **gRPC**, **TCP**, or other non-HTTP server that only your services call28- Deploying infrastructure components (**Elasticsearch**, **ClickHouse**, **RabbitMQ**)29- Choosing between a **private service** and a **background worker**3031For public-facing HTTP services, use **render-web-services**. For services that don't receive any traffic, use **render-background-workers**.3233## Private Service vs Background Worker3435| Criterion | Private Service | Background Worker |36|-----------|----------------|-------------------|37| Binds to a port | **Yes** (required) | No |38| Receives private network traffic | **Yes** | No |39| Sends outbound traffic | Yes | Yes |40| Has internal hostname | **Yes** | No |41| Use case | Internal APIs, gRPC, TCP servers | Queue consumers, async processors |4243**Rule of thumb:** If the process **listens on a port** and other services call it, it's a private service. If it **pulls work from a queue** and never receives requests, it's a background worker.4445## How Private Services Work4647- No `onrender.com` subdomain—not reachable from the internet48- Reachable at `<service-name>:<port>` on the private network by services in the same region and workspace49- Can listen on **any port** (except restricted system ports)—not limited to HTTP or port 1000050- Supports **any protocol**: HTTP, gRPC, TCP, WebSocket, custom binary protocols51- Same build/deploy lifecycle as web services (build command, start command, pre-deploy, health checks via the private network)52- Supports persistent disks, scaling, Docker runtime—same capabilities as web services5354## Connecting to a Private Service5556Other services reference a private service via its **internal hostname and port**:5758```59http://<service-name>:<port>60```6162In Blueprints, wire the address using `fromService`:6364```yaml65- key: INTERNAL_API_URL66 fromService:67 name: my-api68 type: pserv69 property: hostport70```7172Available `fromService` properties for `pserv`:7374| Property | Value |75|----------|-------|76| `host` | Internal hostname (e.g. `my-api`) |77| `port` | Port the service listens on |78| `hostport` | `host:port` combined (e.g. `my-api:10000`) |7980You can also reference a specific env var from the private service using `envVarKey` instead of `property`.8182## Port Binding8384Private services **must bind to at least one port**. If your process does not need to receive traffic, create a background worker instead.8586- Bind to `0.0.0.0` (not `127.0.0.1` or `localhost`)87- The `PORT` env var defaults to `10000`, but you can listen on any non-restricted port88- For non-HTTP protocols (gRPC, TCP), configure your server on the desired port and tell consumers the `hostport`8990## Blueprint Configuration9192```yaml93services:94 - type: pserv95 name: internal-api96 runtime: node97 region: oregon98 plan: starter99 buildCommand: npm ci && npm run build100 startCommand: npm start101 envVars:102 - key: DATABASE_URL103 fromDatabase:104 name: db105 property: connectionString106```107108### Microservices pattern (gateway + internal services)109110```yaml111services:112 - type: web113 name: gateway114 runtime: node115 plan: starter116 region: oregon117 buildCommand: npm ci && npm run build118 startCommand: npm start119 envVars:120 - key: USER_SERVICE_URL121 fromService:122 name: user-service123 type: pserv124 property: hostport125 - key: BILLING_SERVICE_URL126 fromService:127 name: billing-service128 type: pserv129 property: hostport130131 - type: pserv132 name: user-service133 runtime: node134 plan: starter135 region: oregon136 buildCommand: npm ci137 startCommand: node server.js138 envVars:139 - key: DATABASE_URL140 fromDatabase:141 name: db142 property: connectionString143144 - type: pserv145 name: billing-service146 runtime: python147 plan: starter148 region: oregon149 buildCommand: pip install -r requirements.txt150 startCommand: gunicorn billing:app151 envVars:152 - key: DATABASE_URL153 fromDatabase:154 name: db155 property: connectionString156```157158## References159160| Document | Contents |161|----------|----------|162| `references/patterns.md` | Microservice topology, gRPC setup, sidecar patterns, health checks for private services |163164## Related Skills165166- **render-web-services** — Public HTTP services167- **render-networking** — Private network, DNS, service discovery168- **render-background-workers** — Services that don't receive traffic169- **render-blueprints** — Full `render.yaml` schema, `fromService` wiring170- **render-scaling** — Instance types and autoscaling for private services