Illustration Image

Cassandra.Link

The best knowledge base on Apache Cassandra®

Helping platform leaders, architects, engineers, and operators build scalable real time data platforms.

12/10/2020

Reading time:N/A min

eyeced/akka-kafka-cassandra

by eyeced

I have been going through my learning phases for getting accustomed to the Akka's actor model, which in my perspective one of the most simplest and kick ass design pattern, a very few traits it shows is fault tolerant built into it.I think there are far many resources for benefits of Akka which can be covered in a single blog, so let's just skip those and I will start on how I started building this application and the thought process I went through creating this application.Application OverviewHere I wanted to create an application which would poll data from Kafka and writes data into Cassandra, this feels simple enough application to start with.Few tasks I would be doing hereMigrating some of the suggested Kafka Consumer code suggested here Kafka ConsumerAsynchronous writing to CassandraDefining ActorsFirst task would be defining our Actors in our design.Kafka Supervisor would start the Kafka ConsumersKafka Consumer poll messages from Kafka ServersCassandra persists data into Cassandra

Illustration Image

I have been going through my learning phases for getting accustomed to the Akka's actor model, which in my perspective one of the most simplest and kick ass design pattern, a very few traits it shows is fault tolerant built into it. I think there are far many resources for benefits of Akka which can be covered in a single blog, so let's just skip those and I will start on how I started building this application and the thought process I went through creating this application.

Application Overview

Here I wanted to create an application which would poll data from Kafka and writes data into Cassandra, this feels simple enough application to start with. Few tasks I would be doing here

  • Migrating some of the suggested Kafka Consumer code suggested here Kafka Consumer
  • Asynchronous writing to Cassandra

Defining Actors

First task would be defining our Actors in our design.

  • Kafka Supervisor would start the Kafka Consumers
  • Kafka Consumer poll messages from Kafka Servers
  • Cassandra persists data into Cassandra

Related Articles

analytics
streaming
visualization

Keen - Event Streaming Platform

John Doe

2/3/2024

Checkout Planet Cassandra

Claim Your Free Planet Cassandra Contributor T-shirt!

Make your contribution and score a FREE Planet Cassandra Contributor T-Shirt! 
We value our incredible Cassandra community, and we want to express our gratitude by sending an exclusive Planet Cassandra Contributor T-Shirt you can wear with pride.

Join Our Newsletter!

Sign up below to receive email updates and see what's going on with our company

Explore Related Topics

AllKafkaSparkScyllaSStableKubernetesApiGithubGraphQl

Explore Further

akka