GithubHelp home page GithubHelp logo

iot_aws_ms's Introduction

iot_aws_ms

Test project

MicroService Psado code


Main Lambda1(1min timeout ,1gb max mem, event - ALB to Lambda) - > SQS 
Lambda handler gets event raw payload (Json or other)
1st function inspects for all data ( expected 6 fields, Null is not an option -> any errored run -> send SNStopic -> Slack alert with Lambda Logs Location - cloudwatch)
2nd function writes to Dedicated FIFO SQS with the name of the customer and uniqidentifiers - Customer-001-1234532131123-eu-west-1 (customer name, queue number , AWS account , region )


Main Lambda2 -> SQS -> RDS
Lambda handler gets SQS event
1st function extracts origin (Geolocation , farm , Uniqidentifier,time stamp ,DeviceType) -> CALL FUNC3 -> writes to Mysql Dedicated Customer DB.table (Customer.HitEntries-> Insert Farm ,UniqIdentifier , TimeStamp , geolocation )
2nd function extracts water polution state ( float ) if X >= 25.0% ->CALL FUNC3 writes to Mysql Dedicated Customer DB.table (Customer.Polution -> TimeStamp , Polution float ) and Then -> CALL FUNC4 Else ->CALL FUNC3
3rd function write to RDS mysql (map db and table with its content - Customer.HitEntries \ Customer.Polutions)
4th function identified water polution -> send SNStopic -> Slack alert with Captured Polution number , Customer Name , Location

iot_aws_ms's People

Contributors

vrahmanov avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.