Patterns for infinitely scaling & cost effective serverless microservices — Part 3

Image for post
Image for post
Photo by Thomas Kvistholt on Unsplash

  • A “Workflow Manager” which orchestrates this business workflow.
  • Workflow manager and Micro-services talk to each other through a message queue.

AWS Lambda

Image for post
Image for post
Image for post
Image for post
Benefits of AWS Lambda

Amazon SQS

Image for post
Image for post
Amazon SQS
Image for post
Image for post
Benefits of Amazon SQS

Reference implementation diagram

Image for post
Image for post
Implementation of infinitely scaling event-driven microservices, deployed through AWS services

Deploying your code as Lambda

If you are a Python shop, you must look at Zappa framework — a powerful Server-less Python Web services framework, which makes deploying your code to AWS Lambda a child’s play!

  • Forced to add disk volumes to ensure that there is enough storage for logs
  • Forced to reboot the EC2 boxes every day morning to ensure that the box does not go out of availability (it did sometimes)
  1. All logs written in the code straight into Cloudwatch Logs (for free) & you get to choose how long to retain them!
  2. No question of rebooting anything. Our services are available 24 by 7!
  3. Automated CI / CD made super-easy with Zappa. We deploy our services with a single command!! (yes, you heard that right)

FundsCorner Engineering

On a mission to enable fast accessible credit to India’s…

Jeyabalaji Subramanian

Written by

Technology Leader. Writer. Obsessed with building usable products fast using cutting edge technologies. www.jeyabalaji.com

FundsCorner Engineering

On a mission to enable fast accessible credit to India’s Kirana Stores

Jeyabalaji Subramanian

Written by

Technology Leader. Writer. Obsessed with building usable products fast using cutting edge technologies. www.jeyabalaji.com

FundsCorner Engineering

On a mission to enable fast accessible credit to India’s Kirana Stores

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store