Prompt
I'm building a pipeline for logs, metrics, and traces, should I use Kafka or something simpler?
Latest observation
If you’re building logs + metrics + traces pipeline, Kafka is often more infrastructure than you need unless you have clear reasons for it.
Short answer
-
Use something simpler if:
- your volume is moderate,
- you mainly need buffering/retries,
- you want easy ops,
- and you’re not doing heavy event-stream processing.
-
Use Kafka if:
- you need high throughput at scale,
- multiple consumers reading the same data independently,
- durable replay over long retention windows,
- ordering/partitioning guarantees matter,
- or you already have Kafka expertise and ops in place.
For observability pipelines specifically
Logs, metrics, and traces often have different needs:
- Logs: high volume, can tolerate some batching; often go to object storage + search/index systems.
- Metrics: usually time-series oriented; often better handled by Prometheus/remote_write, OTLP collectors, or purpose-built backends.
- Traces: event spans; often best with OpenTelemetry Collector → tracing backend.
In many cases, a simpler architecture is:
Apps → OpenTelemetry Collector / agents → backend(s)
with optional:
- a light queue/buffer,
- batching + retries,
- and maybe object storage for logs.
Simpler alternatives
Depending on your stack, consider:
- OpenTelemetry Collector as the ingestion and routing layer
- Redis / NATS / RabbitMQ for lighter buffering and fan-out
- Fluent Bit / Vector for log collection and forwarding
- Managed services if you want less ops:
- AWS Kinesis / Firehose
- Google Pub/Sub
- Azure Event Hubs
- Datadog / Honeycomb / Grafana Cloud / New Relic pipelines
Rule of thumb
Choose Kafka when you need a durable event backbone for many downstream systems.
Choose something simpler when you need reliable transport and buffering more than a full streaming platform.
Practical recommendation
For a new observability pipeline, I’d usually start with:
- OpenTelemetry Collector
- Agent/collector buffering + batching
- Send to your storage/backends directly
- Add Kafka later only if you hit scale, replay, or multi-consumer requirements
If you want, I can give you a decision matrix for Kafka vs Redis vs NATS vs OpenTelemetry Collector based on your expected volume, retention, and team size.