Droplet's transfer limit with managed database

June 5, 2019 267 views
DigitalOcean Databases

Hello,

question about a droplet's transfer limit:

From what I understood, solely outbound transfer with a public network will count against the transfer limit, while transfers within its private network (i.e. with another droplet) is excluded.

If I use a managed database on the same account, is it possible to use it within a private network with my droplet, so that a communication between the two will not be counted against the transfer limit at any time?

Thanks

4 Answers

Hey there,

You can enable private networking on your Managed Database to enable connectivity over the private network instead of the public network! You'd just need to use the private connection string from a Droplet with private networking enabled in the same datacenter as your cluster.

Regards,
Ethan Fox
Developer Support Engineer II - DigitalOcean

Ok great! So then no communication between the two would be counted against the transfer limit? And the transfer limit would only be counted against when data leaves my droplet outside the private network?

Say a user requests data from my db. He would call my droplet api, my droplet will process the request and query the db, my db will respond to the droplet and my droplet will forward the data to the user.

Since the droplet and the managed db are in a private network, the total transfer would only be counted against one single time, being the moment my droplet sends the data back to the user, correct?

Thanks

That’s correct (at least as I understand it), although technically the initial request coming in would count as well as the response. Just not the traffic between the database and the droplet.

https://www.digitalocean.com/docs/networking/private-networking/overview/

Have another answer? Share your knowledge.