Lambda Service on AWS -
As a solution architect I was asked by one of my customer to solve a problem where they wanted to drop a file to a location and all the processing is done automatically and instantly.
Processing involved -
1. Move the file to a permanent location
2. Update an entry into DB
3. Let all users know about the update of a newer version of the file
To achieve all of the above process you have to host an app on the server and be on a lookout for this file drop. This can happen any time of the day. Meaning you have to have a server running all the time. That is very costly ;(
Why not use Lambda function on AWS? Hmmm, great idea, i said to myself. This will make sure that my code is invoked only at the time when it is needed. I pay only when I am using Server's resources. Very cheap and cost effective.
For this I wrote my Java Utility function which was deployed on Lambda Service on AWS. Whenever my customer drops a file this function gets automatically executed by Lambda Service. Within my code I can execute 3 processes mentioned above.
It's very cost effective and highly available solution.