Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning AWS

You're reading from   Learning AWS Design, build, and deploy responsive applications using AWS Cloud components

Arrow left icon
Product type Paperback
Published in Feb 2018
Publisher Packt
ISBN-13 9781787281066
Length 412 pages
Edition 2nd Edition
Tools
Arrow right icon
Authors (2):
Arrow left icon
Amit Shah Amit Shah
Author Profile Icon Amit Shah
Amit Shah
Aurobindo Sarkar Aurobindo Sarkar
Author Profile Icon Aurobindo Sarkar
Aurobindo Sarkar
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Cloud 101 – Understanding the Basics FREE CHAPTER 2. Designing Cloud Applications 3. Introducing AWS Components 4. Designing for and Implementing Scalability 5. Designing for and Implementing High Availability 6. Designing for and Implementing Security 7. Deploying to Production and Going Live 8. Designing a Big Data Application 9. Implementing a Big Data Application 10. Deploying a Big Data System 11. Other Books You May Enjoy

Creating an AWS Lambda function

In this section, we will create a Lambda function to process Kinesis events.

For a more detailed coverage of this topic, refer to the blog by Sunil Dalal at: https://www.polyglotdeveloper.com/lambda/2017-07-05-Using-Lambda-as-Kinesis-events-processor/. Refer to Creating a .jar Deployment Package Using Maven and Eclipse IDE (Java) for more details: https://docs.aws.amazon.com/lambda/latest/dg/java-create-jar-pkg-maven-and-eclipse.html.
  1. Create a maven project. Create an example package and key in the following Java code in a class (ProcessKinesisEvents):
package example;
import java.io.IOException;
import com.amazonaws.services.lambda.runtime.events.KinesisEvent;
import com.amazonaws.services.lambda.runtime.events.KinesisEvent.KinesisEventRecord;
public class ProcessKinesisEvents {
public String handleRequest(KinesisEvent event) throws IOException...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image