stackstash

DynamoDB vs Apache Kafka

DynamoDB and Apache Kafka are free.

AWS key-value and document database that scales without a server to patch.

Try it

Pros of DynamoDB

  • No servers to run

  • Scales with traffic

  • Fits the rest of AWS

Cons of DynamoDB

  • Awkward when you need joins

  • Easy to get the data model wrong

  • Tied to AWS

A log that services publish events to, and other services read later.

Try it

Pros of Apache Kafka

  • Producers do not wait on every downstream service

  • You can replay events after a bug

  • It holds up once you actually have a stream of events

Cons of Apache Kafka

  • Running a cluster is a lot for one app

  • A database is the simpler choice until you need a stream