Multiple Destinations for Kinesis
Asked Answered
A

2

12

Can we have multiple destinations from single Kinesis Firehose? I saw this picture enter image description here

From this, it looks like it is possible to add s3, redshift and elastic search from single firehose. I exactly want to do this.

But when I do it from aws console, then it asks for single destination only. For elastic search, it asks for S3 also. So, I am able to add elastic search and s3 but still redhift is left. I am not sure how to do it from same kinesis. Please help.

Aubine answered 16/6, 2017 at 18:19 Comment(0)
N
6

As you said it not available now but, using a recent added feature of firehose, you can write to 3 of them using one firehose.

But i am not sure this is the optimum way of doing this, you need to compare aws cost and development cost then decide.

If you want to try here is how you can do it.

Configure firehose to write to redshift, intermadiate files will be on s3, (possibly intermediate files are deleted) so you can store them in another bucket with bucket replication or triggering new file notification and move it to another bucket using a lambda function. At the same time to write every single record to Elasticsearch, you will use firehose lambda connection, it is in firehose console, called, data transformation. (link below) Write a simple elasticsearch http post write request for every record firehose has got, so you will have data on 3 destination.

https://aws.amazon.com/blogs/compute/amazon-kinesis-firehose-data-transformation-with-aws-lambda/

As i said before this can cost more, and having 2 firehoses doing redshift write and ES+S3 write is more easy.

Nepenthe answered 21/7, 2017 at 13:26 Comment(0)
B
0

I am currently working on a similar solution. What I found the best way is to first set up the Kinesis stream then add firehose as a consumer/delivery stream. And 1 more consumer as lambda function which can be utilized to send the data to any destination. in my case, it was dynamo DB.

Blakemore answered 30/3, 2022 at 6:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.