I was wondering if we could deploy multiple microservices as “workers” and one API-gateway as “service”.

  • Did my API-gateway can communicate to my microservices through TCP/HTTP protocol if they are “workers” ? If it’s the case, how ?
  • Or did I have to declare all my microservices as “services” but they will became available to the public internet, so the API-gateway is no longer the source of truth, each microservices have to check authentication if they are publicly accessible. Is it possible to declare a “service” as private-only ?


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 answer

Hello, “internal services” are possible using internal_ports property in the app spec and without http_port property.

name: sample-golang
- name: intsvc1
    repo: digitalocean/sample-golang
    branch: master
  - 3000

The internal service should be addressable with just the component name.

Submit an Answer