5 kinesis lightning

528 views

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
528
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

5 kinesis lightning

  1. 1. A First Look At Amazon Kinesis Jason Levitt
  2. 2. http://aws.amazon.com/kinesis/limited-preview
  3. 3. PutRecord (StreamName, Data, …) your premises Amazon Kinesis Streams EC2 GetNextRecords (Limit, …)
  4. 4. CreateStream (StreamName, ShardCount) OR Amazon Kinesis
  5. 5. Java SDK Requires Java 7
  6. 6. putRecordRequest.setPartitionKey("twitstuff");! ! PutRecordResult putRecordResult = ! kinesisClient.putRecord(putRecordRequest);
  7. 7. ! Worker worker = new Worker(recordProcessorFactory, kinesisClientLibConfiguration);! ! worker.run();! ……… ! data = decoder.decode(record.getData()).toString();! ! if record.getPartitionKey().equals(“twitstuff”)! ! // Do your analysis here! !
  8. 8. Amazon Kinesis Streams GetNextRecords (Limit, …) Auto-Scaling Group EC2 EC2 EC2 EC2
  9. 9. Amazon Kinesis Streams
  10. 10. Thanks!

×