How to Use API Gateway with Kinesis to Send Data to S3 in AWS

  Рет қаралды 12,033

Seth Saperstein

Seth Saperstein

Күн бұрын

Пікірлер: 24
@sharmodeepsarkar7040
@sharmodeepsarkar7040 3 жыл бұрын
Awesome Tuts! Eagerly waiting for the next Part that you promised at the end !!
@nandkumarkarlekar2591
@nandkumarkarlekar2591 2 жыл бұрын
Great demo
@weyewweyew
@weyewweyew 4 жыл бұрын
This was great. I hope you will continue to make more videos. Thanks
@agitated_johnson
@agitated_johnson Жыл бұрын
Pretty solid video, hopefully i can use this to get a job
@davidmejia782
@davidmejia782 3 жыл бұрын
Thanks for this. Been looking for a similar solution. This is really great.
@randomvideos6117
@randomvideos6117 3 жыл бұрын
We are pallning to use api to lambda to kinesis to elastic.. should we reconsider using lambda in between and directly send to kinesis?
@israelaraujo3133
@israelaraujo3133 5 жыл бұрын
Dude your tutorial is very good! congratulations! I am making a very similar solution to collect data from sdk for ios and android to s3 as final destination. To capture dozens of events and structure them do you recommend using glue or simply persist everything on s3 parquet and then spark it to enrich the data? thanks.
@sethsaperstein9169
@sethsaperstein9169 4 жыл бұрын
Hi Israel. Sorry for the late response. Personally I prefer the S3 parquet with spark EMR solution over glue, however it all depends on the complexity of your problem. Glue is expensive and has a 10 minute minimum on jobs and takes advantage of spark anyway. It has some AWS native connectors but overall may not be the best bang for your buck. I noticed you also mentioned that this is happening on only dozens of events. Depending on how fresh you need this data to be, I'd say another option is to use kinesis -> lambda -> s3, but again this depends heavily on the quantity of the data and the required freshness.
@_fifty_shades_of_life_
@_fifty_shades_of_life_ 2 жыл бұрын
Hi, I want to build the exact same architecture but instead of json I require the data to be in XML format, I am not sure what to add in the POST method for HTTP headers "Content-Type" I was using "applicaiton/xml" in the mapping template but that doesn't work for HTTP header. Can you please help me out with what I can use, stuck on this issue since a long time ?
@satya4866
@satya4866 4 жыл бұрын
Nice architecture project. Awesome demo. Thanks for the effort to make and upload this video. Could you kindly rename as part 1/3 etc better for beginners. Again awesome channel. Subscribed.
@sethsaperstein9169
@sethsaperstein9169 4 жыл бұрын
Thanks Satya! Absolutely, great idea!
@lys19871118
@lys19871118 2 жыл бұрын
Great tutorial! I have a stupid question, with API Gateway, what's the benefit of using Kinesis -> s3 instead of have API Gateway invoke Lambda -> S3 ? Is it more cost effective ? Better performance ? Thanks for your insight!
@nishantbahri
@nishantbahri 4 жыл бұрын
Can we push data into the kinesis data stream with let's say faker js api?
@hammadsaeedlodhi
@hammadsaeedlodhi 4 жыл бұрын
can you please produce some basic videos on api gateway for all three configurations like HTTP, rest api and restull api with detail and diargram and differences
@minababahaji9793
@minababahaji9793 3 жыл бұрын
Thanks a lot.
@chatchaikomrangded960
@chatchaikomrangded960 3 жыл бұрын
Good one !
@rajeshchouhan9016
@rajeshchouhan9016 4 жыл бұрын
Thanks a lot 🎉
@denzalvin
@denzalvin 3 жыл бұрын
Hi, Seth. thank you for your video. I am able to create my API gatewway with Kinesis to S# in AWS via your video. I requested a third party to send a sample data set to the URL I created and was told tat they got the Missing Authentication Token error. I feel like it has something to do with the Method because it may have been setup for GET only. I may be wrong. Fairly noob with API gateway. How can I setup the URL, or what how to setup the correct method, so the third party can push data into my URL?
@sethsaperstein9169
@sethsaperstein9169 3 жыл бұрын
More often than not, Missing Authentication Token errors are due to trying to hit a method or URL that doesn't exist. I would first confirm that the path is correct, the stage has been properly deployed, and the client is using the proper method when accessing the API. See this link for more details: stackoverflow.com/questions/39655048/missing-authentication-token-while-accessing-api-gateway
@hammadsaeedlodhi
@hammadsaeedlodhi 4 жыл бұрын
I appreciate if you can add some diagram before any configuration for new people. i did not get why did you create two kinesis streams> it will be more helpfull if you explain through a diagram . Please consider my request for new to aws
@sethsaperstein9169
@sethsaperstein9169 4 жыл бұрын
Great suggestion! There may be a bit more explanation in the attached article but to cover the basics- kinesis stream is used as a broker, typically between microservices, while kinesis firehose (the second kinesis) is used for delivery, especially with many aws integrations such as s3. Kinesis stream alone cannot actually write to s3, however, it can be used to trigger many other services, most commonly lambda. For more information on the difference between the two check out this link: jayendrapatil.com/aws-kinesis-data-streams-vs-kinesis-firehose/#:~:text=Kinesis%20data%20streams%20%E2%80%93%20Kinesis%20data,streaming%20data%20for%20specialized%20needs.&text=Firehose%20also%20allows%20for%20streaming,for%20processing%20through%20additional%20services.
@ВалерийДубчак
@ВалерийДубчак 4 жыл бұрын
24M DAO *4 = 100M batches in day * 3.5 $ = 3500$ in day for amazon api gateway, this is very expensive.
@sethsaperstein9169
@sethsaperstein9169 3 жыл бұрын
In hindsight I'd look into using IoT core which is somewhere around $1 per million messages. From there I'd send messages directly to firehose, let firehose handle a transformation to parquet, and write to S3. Cheaper, less complexity, and better query performance.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 47 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 2,3 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
How to Schedule Athena Queries with Lambda in AWS
27:10
Seth Saperstein
Рет қаралды 6 М.
Event-Driven Architecture (EDA) vs Request/Response (RR)
12:00
Confluent
Рет қаралды 175 М.
AWS DynamoDB Streams to Lambda Tutorial in Python | Step by Step Guide
21:53
How to Use Athena with Json Data in AWS
23:43
Seth Saperstein
Рет қаралды 8 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 47 МЛН