Voting Application Using AWS Services

Voting Application Using AWS Services

To Build a Serverless Voting APP using AWS Cloud Services.

Services used are AWS - Lambda, Dynamo DB, API Gateway, and S3.

Learning how to put together a serverless Lambda web app using API Gateway, DynamoDB, and S3.

No alt text provided for this image


Serverless computing is a method of providing backend services on an as-used basis. A serverless provider allows users to write and deploy code without the hassle of worrying about the underlying infrastructure. A company that gets backend services from a serverless vendor is charged based on their computation and does not have to reserve and pay for a fixed amount of bandwidth or number of servers, as the service is auto-scaling. Note that despite the name serverless, physical servers are still used but developers do not need to be aware of them.

In the early days of the web, anyone who wanted to build a web application had to own the physical hardware required to run a server, which is a cumbersome and expensive undertaking.

Lambda: AWS Lambda is a serverless compute service that runs your code in response to events and automatically manages the underlying compute resources for you. These events may include changes in state or an update, such as a user placing an item in a shopping cart on an e-commerce website.

DynamoDB: Amazon DynamoDB is a fully managed NoSQL database service that provides fast and predictable performance with seamless scalability. You can use Amazon DynamoDB to create a database table that can store and retrieve any amount of data, and serve any level of request traffic.

Simple Storage Service(S3): Amazon Simple Storage Service (Amazon S3) is an object storage service offering industry-leading scalability, data availability, security, and performance.

API Gateway: API is the acronym for Application Programming Interface, which is a software intermediary that allows two applications to talk to each other.

 Step 1: Create a Table in AWS Dynamo DB. set up DynamoDB

No alt text provided for this image
No alt text provided for this image


Step 2: Create Lambda Function. Set up a Lambda function

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

Step 3: IAM

No alt text provided for this image
No alt text provided for this image

Step 4: API Gateway. Configure API gateway

No alt text provided for this image


No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

Step 5: Create an s3 bucket. Set up s3 bucket

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

Step 6: Trigger DynamoDb to Lambda

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

Finally the serverless Voting Application

No alt text provided for this image

and here is the link for my serverless application

http://votingdemoappsports.s3-website-us-east-1.amazonaws.com/

It might not open now, because I have deleted all the instances.

Conclusion:

The sports Voting Application Architecture that Displays the Results on AWS Cloud using DynamoDB, Lambda Function S3 Bucket.

Thank you!!!

To view or add a comment, sign in

More articles by Vyshnavi Chalichama

  • Building an AWS Lambda Function with Amazon S3 Trigger

    In this specific workflow, the three primary services used are: S3: Files are stored here and the function is triggered…

  • To Do List App

    Build a To-Do List App using Django. To-Do list app with User Registration, Login, Search and full Create Read Update…

    1 Comment
  • Reduce the Food Wastage And Improve The Food Security

    INTRODUCTION: Simply put, reducing food lost or wasted means more food for all, less greenhouse gas emissions, less…

  • SDP - 2 (User Research)

    SDP stands for the Skill development project Here is my article that explains the research part of the SDP Project…

    2 Comments

Others also viewed

Explore content categories