Skip to content

AWS Lambda function that reads sensor observations from Kinesis stream

License

Notifications You must be signed in to change notification settings

UrbanCCD-UChicago/observation-publisher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Observation Publisher

For an overview of how this fits into Plenario's streaming pipeline, check out this overview.

Overview

This is a Node.js AWS Lambda function that reads sensor records from a Kinesis stream that were published by Beehive. It does some light syntactical validation and pushes the records to Redis and Firehose.

Redis Connection

The lambda does not cache client connections across invocations. An early version did. Testing connection time to an AWS Redis Elasticache instance from an EC2 instance in the same region, connection usually took 1 ms and took 15 ms at most. So just opening and closing that connection every time isn't too expensive and it avoids some complexity in checking connection state and attempting resets.

About

AWS Lambda function that reads sensor observations from Kinesis stream

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published