
Sr. Data Engineer working mostly on Data and Observability problems. Writing mostly about Data and cloud, sometimes productivity and other musings.
Search for a command to run...

Sr. Data Engineer working mostly on Data and Observability problems. Writing mostly about Data and cloud, sometimes productivity and other musings.
In today's data-driven world, real-time data processing and analytics have become crucial for businesses to stay competitive. Apache Hudi (Hadoop Upserts and Incremental) is an open-source data management framework that provides efficient data ingest...

Introduction Large Language Models (LLMs) have revolutionized the field of Natural Language Processing (NLP). These models, such as GPT-4, are designed to understand and generate human-like text. In this post, we will delve into how to work with LLMs...

Credit card fraud is a significant concern for financial institutions, as it can lead to considerable monetary losses and damage customer trust. Real-time fraud detection systems are essential for identifying and preventing fraudulent transactions as...

In a production ETL (extract, transform, load) pipeline, it is often helpful to manage environment variables to store sensitive information, such as database credentials or API keys. This allows you to keep this sensitive information separate from yo...

A Comprehensive Guide to Migrating from Redshift to BigQuery Migrating your data from Amazon Redshift to Google BigQuery can be a significant undertaking, but with careful planning and execution, it can lead to enhanced performance and scalability fo...

Create an AWS account and launch an EC2 instance (virtual machine) in a public subnet with an appropriate security group that allows incoming and outgoing traffic on the required ports.
Connect to the EC2 instance using a secure shell (SSH) client.
Install Java on the EC2 instance. Kafka is written in Java, so you will need to have Java installed on your machine to run Kafka.
Download and install Kafka. You can download the latest version of Kafka from the Apache Kafka website. Extract the downloaded tar file, and then navigate to the Kafka directory and start the Kafka server by running the following command:
codebin/kafka-server-start.sh config/server.properties
codebin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic my-topic
codebin/kafka-console-producer.sh --broker-list localhost:9092 --topic my-topic
codebin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic my-topic --from-beginning
Here is a diagram illustrating the basic setup:

You can also set up Kafka on AWS using managed services such as Amazon Managed Streaming for Apache Kafka (Amazon MSK) and Amazon Simple Queue Service (SQS).
Using Amazon MSK, you can create fully managed Apache Kafka clusters with just a few clicks in the AWS Management Console. Amazon MSK handles the heavy lifting of setting up, scaling, and managing Apache Kafka, including the Apache ZooKeeper cluster.
Using Amazon SQS, you can set up a fully managed message queue service that enables you to send, store, and receive messages between software systems at any volume. Amazon SQS integrates with other AWS services and supports a range of messaging use cases, including storing and transmitting large payloads using Amazon Simple Notification Service (SNS) and Amazon S3.

I hope this helps! Let me know if you have any questions.