Skip to main content

When to use TCP Proxy?

  • Databases โ€“ Expose PostgreSQL, MySQL, or Mongodb for internal/external access.
  • Message Brokers โ€“ Kafka, RabbitMQ, or custom TCP services.
  • Custom Protocols โ€“ Any app or service that doesnโ€™t use HTTP/HTTPS.

Example: Mongo-db with TCP Proxy

TCP Public URLs for Databases

When you set protocol: tcp, DCDeploy provisions a public TCP endpoint so you can connect to your database or TCP service from anywhere.

PostgreSQL Example

Mysql Example

Best practices

  • Secure your database โ€“ Never leave databases open without authentication. Always set strong passwords.
  • Restrict access โ€“ Use firewall rules or allow-list IPs if possible.
  • Prefer private networking โ€“ For production workloads, use DCDeployโ€™s private VPC or service-to-service networking instead of exposing databases publicly.
  • Use secrets to store credentials rather than hardcoding them in your worhload form.