Skip to Content
Koyeb is joining Mistral AI to Build The Future of AI Infrastructure. Read More →
ReferenceService Mesh & Discovery

Service Mesh and Discovery

Koyeb provides a built-in Service discovery mechanism to easily connect to other internal Services of your application. This is coupled with a Service mesh to ensure all inter-Service communication is encrypted.

Service mesh

Services deployed in a Koyeb Organization can communicate with each other using a private mesh network. You can use both IPv4 and IPv6 to interact with your resources inside the mesh. The mesh network is available within the regions used by your Service.

No configuration is needed to benefit from the service mesh. To access the service mesh, use the provided private domain that uses the <SERVICE_NAME>.<APP_NAME> format.

Default per Service type

A Service is included or excluded from the mesh by default based on its type. If it is excluded from the mesh, it won’t receive a private domain and can’t communicate with your other resources inside the mesh.

The following table outlines the default value of the mesh field by Service type, along with customization options:

Service typeDefaultCustomizable
Web ServiceIncluded in the meshYes
WorkerIncluded in the meshYes
SandboxExcluded from the meshYes

Free Instances are always excluded from the mesh network.

Service discovery

Each Service you deploy in a Koyeb App comes with a unique private domain name based on the Service name. This allows you to easily communicate with other internal Services using a predictable naming system.

The following table shows how to reach a Service within a Koyeb App:

namestatusdetails
<SERVICE_NAME>availableReach a Service Instance across all regions.
<SERVICE_NAME>.<APP_NAME>.internalavailableReach a Service Instance within the same region.
<REGION_NAME>.<SERVICE_NAME>.<APP_NAME>.internalcoming soonReach an Instance of the Service in a specific region.
Last updated on