Cookie Consent by Free Privacy Policy Generator ๐Ÿ“Œ Data Streaming Hands-On: Building Kinesis Data Streams App

๐Ÿ  Team IT Security News

TSecurity.de ist eine Online-Plattform, die sich auf die Bereitstellung von Informationen,alle 15 Minuten neuste Nachrichten, Bildungsressourcen und Dienstleistungen rund um das Thema IT-Sicherheit spezialisiert hat.
Ob es sich um aktuelle Nachrichten, Fachartikel, Blogbeitrรคge, Webinare, Tutorials, oder Tipps & Tricks handelt, TSecurity.de bietet seinen Nutzern einen umfassenden รœberblick รผber die wichtigsten Aspekte der IT-Sicherheit in einer sich stรคndig verรคndernden digitalen Welt.

16.12.2023 - TIP: Wer den Cookie Consent Banner akzeptiert, kann z.B. von Englisch nach Deutsch รผbersetzen, erst Englisch auswรคhlen dann wieder Deutsch!

Google Android Playstore Download Button fรผr Team IT Security



๐Ÿ“š Data Streaming Hands-On: Building Kinesis Data Streams App


๐Ÿ’ก Newskategorie: Programmierung
๐Ÿ”— Quelle: dev.to

This is a step-by-step guide that will walk you through the process of building an AWS Kinesis Data Streams application.

Set Up AWS Kinesis Data Streams service

When creating AWS Kinesis Data Streams service there are two capacity modes to choose from:

  • On demand, should be used when your data streamโ€™s throughput requirements are unpredictable and variable. With on-demand mode, your data streamโ€™s capacity scales automatically.
  • Provisioned: should be used when you can reliably estimate throughput requirements of your data stream. With provisioned mode, your data streamโ€™s capacity is fixed.

For this example I am using a Kinesis Data Streams service with On-Demand capacity mode, so the data streamโ€™s capacity will scale automatically. At time of creation I went with default settings for the Kinesis Data Stream service.

Build a Data Producer

We need to create an application that will simulate data production. To send the data weโ€™ll utilize AWS Kinesis SDK so that we can interact with the Kinesis API.

In my example I am using AWS SDK for .NET, and I have created a Lambda function as a producer, but this can be any type of application or script, and of course it can run outside of AWS.

The AWS Kinesis SDK offers two methods for sending the data, PutRecord for sending a single record, and PutRecords for sending a batch of records. For the Lambda function to be able to send data to Kinesis Data Streams, it is needed to have the PutRecord and/or PutRecords permission assigned based on which API method youโ€™ll be using. Here weโ€™ll show the usage of the PutRecords method since sending a batch is more fun.

Each PutRecords request can support up to 500 records. Each record in the request can be as large as 1 MiB, up to a limit of 5 MiB for the entire request, including partition keys. To send a batch of records weโ€™ll need to make sure that a single PutRecords request does not go over the maximum number of records or the maximum size limit, see the code sample below.

Build a Data Consumer

The Amazon Kinesis Data Streams integrates with many AWS and third party services for consuming the data (more info in my previous post), also a custom application can be created to read the data by utilizing Kinesis Data Stream API.

Here as a data consumer, I have created an AWS Lambda that integrates with the Kinesis Data Stream. The Kinesis Data Stream service is added as a trigger for the function. Also proper permissions (kinesis GetRecords, ListStreams, DescribeStream etc.) are needed to be assigned to the function so that it can be triggered by Kinesis Data Stream service .

In the code below the messages are being read from the stream.

Monitor and Troubleshoot

For monitoring and troubleshooting the Data Streams Service offers an automatic dashboard:

Monitoring

The dashboard is based on metrics that automatically are sent to CloudWatch from the Data Streams service. Additionally you can leverage the metrics to create your own dashboards or create alarms.

Beside this I am using CloudWatch logs for the custom logging from the producer and consumer Lambda functions.

Conclusion

In the preceding discussion, weโ€™ve walked through the steps of creating a Data Streaming app, tackling the generation and transmission of streaming data, and finally, the consumption of that data.

You can find the complete code on my GitHub repository.

...



๐Ÿ“Œ Data Streaming Hands-On: Building Kinesis Data Streams App


๐Ÿ“ˆ 68.87 Punkte

๐Ÿ“Œ Auto-Scaling Kinesis Data Streams Applications on Kubernetes


๐Ÿ“ˆ 40.72 Punkte

๐Ÿ“Œ Amazon Kinesis Video Streams Producer SDK is now available as a Gstreamer-plugin


๐Ÿ“ˆ 38.38 Punkte

๐Ÿ“Œ Data Engineering - AWS Data and Analytics โ€“ Collection โ€“ Kinesis Data Stream


๐Ÿ“ˆ 32.46 Punkte

๐Ÿ“Œ A Comparative Analysis: AWS Kinesis vs Amazon Managed Streaming for Kafka - MSK


๐Ÿ“ˆ 31.79 Punkte

๐Ÿ“Œ Use Golang for data processing with Amazon Kinesis and AWS Lambda


๐Ÿ“ˆ 27.78 Punkte

๐Ÿ“Œ Ingestando en Near Real Time con Kinesis Data Firehose


๐Ÿ“ˆ 27.78 Punkte

๐Ÿ“Œ Use Golang for Data Processing With Amazon Kinesis and AWS Lambda


๐Ÿ“ˆ 27.78 Punkte

๐Ÿ“Œ Death Streams Not Working: Best Alternatives to Kodiโ€™s Death Streams Addon


๐Ÿ“ˆ 25.89 Punkte

๐Ÿ“Œ QKey TV - TV Streams, IPTV, View Futebol Matches, Online TV, Free Sport Streams, etc.


๐Ÿ“ˆ 25.89 Punkte

๐Ÿ“Œ QKey TV 2 - TV Streams, IPTV, View Futebol Matches, Online TV, Free Sport Streams, et


๐Ÿ“ˆ 25.89 Punkte

๐Ÿ“Œ AWS fรผhrt Kinesis Analytics ein


๐Ÿ“ˆ 25.44 Punkte

๐Ÿ“Œ AWS fรผhrt Kinesis Analytics ein


๐Ÿ“ˆ 25.44 Punkte

๐Ÿ“Œ HPR3094: Holy crud! I have a kinesis advantage 2 keyboard!


๐Ÿ“ˆ 25.44 Punkte

๐Ÿ“Œ Kinesis: Langanhaltender AWS-Ausfall stรถrt viele Dienste


๐Ÿ“ˆ 25.44 Punkte

๐Ÿ“Œ Tastaturen: Mit QMK die Eingabelatenz der Kinesis Advantage optimieren


๐Ÿ“ˆ 25.44 Punkte

๐Ÿ“Œ What is AWS Kinesis Used for?


๐Ÿ“ˆ 25.44 Punkte

๐Ÿ“Œ Generate actionable insights for predictive maintenance management with Amazon Monitron and Amazon Kinesis


๐Ÿ“ˆ 25.44 Punkte

๐Ÿ“Œ Getting Kinetic With Amazon Kinesis: The Ultimate Guide


๐Ÿ“ˆ 25.44 Punkte

๐Ÿ“Œ Debezium vs DBConvert Streams: Which Offers Superior Performance in Data Streaming?


๐Ÿ“ˆ 21.63 Punkte

๐Ÿ“Œ All about Java Streams โ€” a quick hands-on introduction


๐Ÿ“ˆ 21.43 Punkte

๐Ÿ“Œ Pakistan v Sri Lanka 2nd Test: Live Online Streaming, Including Kodi Streams


๐Ÿ“ˆ 19.29 Punkte

๐Ÿ“Œ Streaming-Plattform Twitch: Streams starten nicht, Chats funktionieren


๐Ÿ“ˆ 19.29 Punkte

๐Ÿ“Œ [Cerveau] Generating MPEG-DASH streams for Open Source adaptive streaming with GStreamer


๐Ÿ“ˆ 19.29 Punkte

๐Ÿ“Œ Streaming: Netflix macht 4K-Streams 50 Prozent kleiner


๐Ÿ“ˆ 19.29 Punkte

๐Ÿ“Œ Live Streaming: Twitch fรผhrt Multi-Streams und AV1 ein


๐Ÿ“ˆ 19.29 Punkte

๐Ÿ“Œ Live Streaming from Unity - Multi-Camera Streams (Part 6)


๐Ÿ“ˆ 19.29 Punkte

๐Ÿ“Œ IDIQ Launches New Data-Driven Platform CreditBuilderIQ to Place Credit-Building Tools in the Hands of Consumers


๐Ÿ“ˆ 18.75 Punkte

๐Ÿ“Œ Hands-on with Microsoft's Project xCloud streaming app for Windows


๐Ÿ“ˆ 17.89 Punkte

๐Ÿ“Œ Alexa Hands-Free im Hands-on: Sprachsteuerung auf Zuruf bringt nur wenig Nutzen


๐Ÿ“ˆ 16.98 Punkte

๐Ÿ“Œ Fast-Terraform: Terraform Tutorial, How-To: Hands-on LABs, and AWS Hands-on Sample Usage Scenarios (Infrastructure As Code)


๐Ÿ“ˆ 16.98 Punkte

๐Ÿ“Œ Building Connected Vehicle Streaming Data Pipelines With MQTT and Kafka


๐Ÿ“ˆ 16.6 Punkte

๐Ÿ“Œ 04 - Building a Learning Management System (LMS): Embrace Hands-on Learning Approach


๐Ÿ“ˆ 16.41 Punkte

๐Ÿ“Œ Hands-On Building a Virtual Property Consultant Using Artificial Intelligence


๐Ÿ“ˆ 16.41 Punkte











matomo