Report this

What is the reason for this report?

Question about Kafka Managed Service – Connection Limits / Rate Limiting

Posted on November 30, 2025

Hi!

We are using the Managed Kafka service for a project with:

  • >100 topics
  • ~25 microservices producing and consuming messages concurrently

During a stress test, we observed that:

  • With low concurrent produce/consume rates, everything works fine.
  • When producers start producing at >50 events/sec per service, some services start disconnecting. Consumers and producers fail with errors like:

{"level":"ERROR","timestamp":"[REDACTED]","logger":"kafkajs","message":"[BrokerPool] Failed to connect to seed broker, trying another broker from the list: Connection error: read ECONNRESET","retryCount":0,"retryTime":280} {"level":"ERROR","timestamp":"[REDACTED]","logger":"kafkajs","message":"[Connection] Connection error: read ECONNRESET","broker":"kafka-***.ondigitalocean.com:****","clientId":"kafka-test-***","stack":"Error: read ECONNRESET\n at TLSWrap.onStreamRead (node:internal/stream_base_commons:218:20)"}

We don’t believe Kafka itself imposes these limits. Based on past experience with Redis, we suspect it might be related to:

  • Firewall or network connection limits
  • Managed service account limits

Questions:

  1. Is there a rate limit on concurrent connections or message throughput for DigitalOcean Managed Kafka?

  2. Are there recommendations to produce high volumes of events without causing service disconnections?

  3. Could the issue be caused by network/firewall limits rather than Kafka itself?

  4. If this is not a service limit, and the error is in our application (i.e., there is absolutely no limit on Kafka connections with private or public connection strings), how can we detect or fix the problem?

  5. If this is a DigitalOcean service limit, how can we change or increase the concurrent connection limit?

We want to ensure our microservices can produce and consume high volumes of events without bottlenecking other services.

Thanks in advance for your guidance.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Heya, @mondart

DigitalOcean’s Kafka limits are mostly about cluster count, node count, versions, and trusted sources (IP allowlist), not per-client connection or message rate.

For managed databases, including Kafka, you can’t attach DigitalOcean Cloud Firewalls directly to the cluster, instead, you use “trusted sources” (VPC resources and IPs). That means DO’s own firewall isn’t randomly closing your connections mid-stream.

If at all possible, connect over the private/VPC endpoint from Droplets/Kubernetes/App Platform in the same region rather than the public hostname. That removes the public internet and most middleboxes from the equation.

Hope that this helps!

Hi,

As far as I am aware, Managed Kafka itself doesn’t impose hard throughput caps at the level you;re describing. When this happens during stress tests, I would guess that it’s tied to connection churn, TLS handshakes, client configuration, or something on the network path rather than a fixed Kafka limit.

If you’re sure the clients aren’t opening too many short-lived connections or overwhelming the brokers with handshake spikes, the best next step is to open a ticket with the DigitalOcean support team. They can check the broker logs and the network layer to tell you if something is being throttled or terminated on the managed service side.

https://www.digitalocean.com/support/

If it turns out to be on the client side, stabilizing the connection pool and reusing long-lived connections usually solves it. If it’s on the service side, support can advise how to scale or adjust the limits for your setup.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.