Hasty Briefsbeta

Bilingual

Small Kafka: Tansu and SQLite on a free t3.micro

a month ago
  • #Kafka
  • #SQLite
  • #AWS
  • AWS Free Tier t3.micro instance with 1GiB memory and ~10MB/s EBS baseline throughput is suitable for early-stage projects.
  • Tansu broker on t3.micro uses embedded SQLite storage engine for meta and message data, simplifying backup/restore via copying tansu.db.
  • Setup includes installing SPAL, Docker Compose, enabling containerd service, and adding ec2-user to docker group.
  • Docker Compose configuration for Tansu includes environment variables for listener URL, logging level, and SQLite storage engine.
  • Performance test shows ~6.83 MB/sec throughput with Tansu on t3.micro, suitable for low-cost project kickstarting.
  • Tansu is memory-efficient (~27.3 MB usage) and can scale by copying tansu.db to larger instances.
  • Tansu supports multiple storage engines (memory, null, PostgreSQL, SQLite, S3) and is Apache licensed.