How to Create an API in AWS | API Gateway | Lambda | DynamoDB | Java

  Рет қаралды 16,465

 Programming with Mir

Programming with Mir

Күн бұрын

In this tutorial, we will create a serverless API that creates, reads, updates, and deletes items from a DynamoDB table.
DynamoDB is a fully managed NoSQL database service that provides fast and predictable performance with seamless scalability. This tutorial takes approximately 55 minutes to complete, and you can do it within the AWS Free Tier.
First, we create a Lambda function using the AWS Lambda console. Then we create a DynamoDB table using the DynamoDB console. Next, we create REST API using the API Gateway console. Lastly, we test the API.
When we invoke our REST API, API Gateway routes the request to your Lambda function. The Lambda function interacts with DynamoDB, and returns a response to API Gateway. API Gateway then returns a response to the user.
#aws #awstutorial #java

Пікірлер: 50
@AnkitYadav-o9v1r
@AnkitYadav-o9v1r Жыл бұрын
One of the best tutorial with complete in-depth knowledge. Thanks Mir for making things simple and crisp .
@pwm.
@pwm. 2 жыл бұрын
Thanks for watching. If you liked this video, make sure to subscribe for more!
@petertaylor9763
@petertaylor9763 2 жыл бұрын
Video cover lotta different items that I wanted to learn thanks so much!
@pwm.
@pwm. 2 жыл бұрын
Glad it was helpful!
@fidelvillanueva6422
@fidelvillanueva6422 Жыл бұрын
Amazing tutorial, please continue upload more videos with AWS and Java. Spring boot.
@sudhakartadepalli2523
@sudhakartadepalli2523 Жыл бұрын
One of the best tutorials. Thank you so much!!
@TVrook
@TVrook Жыл бұрын
Amazing tutorial, really well explained. Understood everything!! Thank you :)
@Confusedcapybara8772
@Confusedcapybara8772 Жыл бұрын
I dig the note style approach
@thevagabond85yt
@thevagabond85yt Жыл бұрын
I think to handle GET,POST,PUT different methods... we dont need to create as many times uber-jar. We need to create 1 handlre per methods i.e differnt handler for PUT and diff for GET..... but jars need not be complied separately every time . there can be 1 jar with all lambda functions in one.
@aspaksharif4376
@aspaksharif4376 Жыл бұрын
This is a hidden #Gem....thank you, keep up the good work.
@vimalv6341
@vimalv6341 Жыл бұрын
A very good Tutorial for a beginner. Keep it up. God bless you. 🙂
@AjayRam-ts5iv
@AjayRam-ts5iv 2 жыл бұрын
Thanks for this video it is very useful for my project
@pwm.
@pwm. 2 жыл бұрын
Most welcome 😊
@juanpablodavilabedoya5025
@juanpablodavilabedoya5025 9 ай бұрын
that's a great tutorial, thanks u very much
@borispustilnik8900
@borispustilnik8900 2 жыл бұрын
Thank you! It's very helpful!
@pwm.
@pwm. 2 жыл бұрын
Glad it was helpful!
@John-ug3il
@John-ug3il 2 жыл бұрын
Thank you, very help full.
@pwm.
@pwm. 2 жыл бұрын
Glad it helped
@stephenlflf3871
@stephenlflf3871 Жыл бұрын
Gold!
@leonardolopezlarraquy1403
@leonardolopezlarraquy1403 Жыл бұрын
Excellent tutorial @ankit!! I understand that the method being call of the Java class is being done through reflection. I does not make any sense to me the use of the interface with this signature public interface RequestStreamHandler { /** * Handles a Lambda Function request * @param input The Lambda Function input stream * @param output The Lambda function output stream * @param context The Lambda execution environment context object. * @throws IOException */ public void handleRequest(InputStream input, OutputStream output, Context context) throws IOException; } Am I correct?
@nolediganamimadre5714
@nolediganamimadre5714 2 жыл бұрын
you have to add audio...I think. Great Tutorial!
@pwm.
@pwm. 2 жыл бұрын
Noted!
@subashkc2470
@subashkc2470 2 жыл бұрын
@@pwm. Yes, this is a great Tutorial. Plzz add audio coz this great videos deserve more likes and support.
@himanshusingh9050
@himanshusingh9050 Жыл бұрын
Great video, just have small question do we need to create separate lambda for all the request methods , can we do it using only one lambda?
@pwm.
@pwm. Жыл бұрын
You can use one lambda but then you have to use spark for aws.
@mdlwlmdd2dwd30
@mdlwlmdd2dwd30 Жыл бұрын
It would be nice, if you show how to debug locally as you go. There is none in production will just go straight deploying code without checking the progress
@avinashshrivastava1512
@avinashshrivastava1512 Жыл бұрын
In infra module you created something else could you please provide link?
@carlellis9647
@carlellis9647 Жыл бұрын
I don't know why he doesn't use the APIGatewayProxyRequestEvent as the input for the handler function. It would save a huge amount of coding in terms of not having to go through the InputStream and do all that work to get the data and the headers.
@varunvijaywargi5497
@varunvijaywargi5497 Жыл бұрын
Agree @Carl.
@rohinit6249
@rohinit6249 Жыл бұрын
@Programming with Mir Could you please help me with tutorial text file u wrote on the notepad
@richasingh3424
@richasingh3424 2 жыл бұрын
Could you please share the git url for the code base, would be a great help
@pwm.
@pwm. 2 жыл бұрын
github.com/programmingwithmir/pwm-crud-api
@uyenthanh3794
@uyenthanh3794 Жыл бұрын
@@pwm. thank you .
@avinashshrivastava1512
@avinashshrivastava1512 Жыл бұрын
Hello bro need help on aws lamda productApi code it's not here
@rajeevtripathi8607
@rajeevtripathi8607 Жыл бұрын
Excellent Video. Would it be possible to share the code ?
@PankajVLOGZZz
@PankajVLOGZZz 2 жыл бұрын
Can we do with one lambda function?
@pwm.
@pwm. 2 жыл бұрын
Yes, you can but its best practice to keep things seperate. As your code grow and add more routes, your Lambda function grows in size and deployments of new versions replace the entire function. It becomes harder for multiple developers to work on the same project.
@PankajVLOGZZz
@PankajVLOGZZz 2 жыл бұрын
@@pwm. And how to generate id automatically
@pwm.
@pwm. 2 жыл бұрын
@@PankajVLOGZZz You can use UUID as your key - possibly time based UUID which makes it unique or Use randomly generated number + timestamp
@PankajVLOGZZz
@PankajVLOGZZz 2 жыл бұрын
Actually I tried with one lambda with one handler method but when I am doing get product it's getting the product then deleting it as I merge everything into one method.. do I need switch case to implement? Can you help with that !?
@pwm.
@pwm. 2 жыл бұрын
@@PankajVLOGZZz you need to differentiate the calls. You can check the request method and work accordingly. For example, if the request method is GET then only return the product, if POST then add the product etc. Hope this help
@harish.shir4
@harish.shir4 7 ай бұрын
Can you share us github url of your code base
@berkcan3475
@berkcan3475 2 жыл бұрын
youtuber still couldnt understand importance of sharing github repository of the video, hilarious
@juliodeveloper.
@juliodeveloper. Жыл бұрын
Indeed!
@pramodbasu7732
@pramodbasu7732 Жыл бұрын
getting no class found exception
@pwm.
@pwm. Жыл бұрын
Make sure function handler name is correct in aws
@harish.shir4
@harish.shir4 7 ай бұрын
git hub url please
@pss6957
@pss6957 11 ай бұрын
Good but no explanation.
@jerin4492
@jerin4492 Жыл бұрын
@shivampal8449
@shivampal8449 Жыл бұрын
Bhai lambda function me code test me error aa rii h , not invoking api. Apna contact number do.
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 78 МЛН
SHAPALAQ 6 серия / 3 часть #aminkavitaminka #aminak #aminokka #расулшоу
00:59
Аминка Витаминка
Рет қаралды 2,4 МЛН
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
SIDELNIKOVVV
Рет қаралды 3,4 МЛН
What is an API Gateway?
10:19
IBM Technology
Рет қаралды 314 М.
Deploy a Spring Boot Application to AWS Lambda with an API Gateway
9:49
The Dev World - by Sergio Lema
Рет қаралды 4 М.
AWS CDK Tutorial with JAVA | CRUD API | Gateway, Lambda, DynamoDb
45:15
Programming with Mir
Рет қаралды 3,8 М.
API vs. SDK: What's the difference?
9:21
IBM Technology
Рет қаралды 1,4 МЛН
AWS Lambda and API gateway| AWS Solution Architect | AWS SAA-C02| AWS TAMIL
30:28
TechPechu - டெக் பேச்சு
Рет қаралды 8 М.
Create Your First AWS Lambda Function | AWS Tutorial for Beginners
12:44
Tiny Technical Tutorials
Рет қаралды 147 М.
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 78 МЛН