It would be helpful, one complete python project by using technologies like Python + FastAPI + Dynamo DB + GraphQL + Pytest amd Postman for API testing
Thanks! I appreciate your command and I'm glad you found it clear and helpful. I plan to stay focused on quality, consistency and value for my viewers so I think we'll get to 1m views eventually :)
@@pixegami appreciate it man, just know your content is really helping us learn; easy to tell by the production quality you really care as well. I found you though AWS content might be an avenue to lean into
How to set the version of pydantic I want to install on lambda? My deploy goes well but the API does not work, when I test on lambda it shows the message "Runtime.ImportModuleError: Unable to import module 'todo': No module named 'pydantic'" thank you bro
Usually you can set it in your requirements.txt when you prepare your code for deployment. However, with issues like that, it's quite possible your Lambda is using a different architecture to the machine you are coding on (e.g. x64_86 vs arm64) so you have to make sure they match as well.
This was an excellent video and very helpful in getting up and running with FastAPI and Lambda. Perhaps you could do a follow-up video that makes the code ready for a production setup. Maybe additional error handling, user management, API authn, etc?
Thanks! Those are great suggestions, but I think to make something fully production-ready is going to be a LOT more than just one video :D I still have more to learn about that myself.
@@pixegami Fair point, and maybe a full prod setup is a bit much. It would be nice to see this project iterated on a bit - maybe authn and error handling would be good next steps. For one, they help me achieve my own goals :-) and those additional changes build on something already established. I know the hate ToDo apps get, so maybe there is room to expand it to be something a bit more than a standard ToDo list, which would give you an excuse to show how you can extend the “Dyanamo DB schema” or whatever it’s called in DDB land. That might illustrate why it’s important to properly model the database before hand and could highlight some of the pain points devs encounter when modifying it later? Just spitballing, whatever you choose to make, I think your approach and cadence are just right, so please keep it up. Glad to be a new subscriber!
@pixegami Great Tutorial, thanks but...Lambda is restricted to 6MB of data per function. So if you have an endpoint that has to return a lot of data, won't this fail? Would your other video where we just run FastApi on an EC2 instance be preferable (even though we have to manage scaling ourselves etc)
Hmm, 6MB sounds like a lot of data to return from an API call. It might not be suitable for Lambda. Is this something that should be downloaded by the user instead? (e.g. via S3)
Can you make a video about EC2, ASG , LB, Target Group etc configurations by coding or yaml. Because ı always see console or ui page configurations but in enterprise life we need to create all these configuration with deployment script.
Ah yes I know what you mean. For my larger projects I actually do use infrastructure code. It's better to use an SDK for it rather than YAML or JSON, because it's type-safe and more powerful. For AWS you can use AWS CDK. I have a small tutorial about it here: th-cam.com/video/o3s4VqlMsT8/w-d-xo.html
Hi Pixegami! I'm looking a way to host a SPA made with react, I don't want to manage all the server related things and put it in a EC2, I see that i can do it from a S3 bucket or Amplify, which option you will recomend? (Even other not mention)
For hosting a static site (SPA), I think your main options are AWS (S3 bucket or Amplify), Firebase (Google), or Vercel. I personally prefer Vercel just for a SPA, because they are the easiest to use. AWS and Firebase have more features, but also more complex to learn. In terms of AWS, S3 is the technology you want to use. I'm pretty sure Amplify uses S3 behind the scenes. But you can use Amplify as well if it makes it easier (it just uses S3 anyway).
@@pixegami Thanks a lot! I've seen a lot of your videos about Lambdasand FastAPI, this is the best way to host a FastAPI right? So i can connect it to my SPA
For VSCode I’m using Monokai Pro. For the terminal, I used a custom theme which I explain in this video: My terminal setup (theme and plugin) on Ubuntu Linux 💻 th-cam.com/video/UvY5aFHNoEw/w-d-xo.html
Instead of typesrcipt language I choose to go with python , but I'm getting the error of my unzipped file size is large and exceeds the limit of lambda so It is not able to run the application , I have tried deleting If there are unnecessary libraries I'm zipping and uploading, as well I have also tried first uploading the file as asset to S3 and then using S3 bucket for lambda function ,still getting the same ,Please guide me I have been stuck at this problem from 1 week, will wait for you reply, Thankyou Great content!
In this video I am using Ubuntu Linux (probably 2020?) But nowadays I use a Mac M1, just because I use quite a lot of Adobe programs (which doesn’t run on Linux).
What type of app do you want to learn to build next? Let me know!💡
It would be great if you could build more fullstack saas applications like the AI driven saas application that you posted a while ago.
FastAPI + DynamoDB + admin dashboard aka Dajnago admin.
It would be helpful, one complete python project by using technologies like Python + FastAPI + Dynamo DB + GraphQL + Pytest amd Postman for API testing
Wow im blown away by how helpful these tutorials are. Clear speaking, insightful instruction. Insane these dont have 1m views
Thanks! I appreciate your command and I'm glad you found it clear and helpful. I plan to stay focused on quality, consistency and value for my viewers so I think we'll get to 1m views eventually :)
@@pixegami appreciate it man, just know your content is really helping us learn; easy to tell by the production quality you really care as well. I found you though AWS content might be an avenue to lean into
How to set the version of pydantic I want to install on lambda? My deploy goes well but the API does not work, when I test on lambda it shows the message "Runtime.ImportModuleError: Unable to import module 'todo': No module named 'pydantic'" thank you bro
Usually you can set it in your requirements.txt when you prepare your code for deployment. However, with issues like that, it's quite possible your Lambda is using a different architecture to the machine you are coding on (e.g. x64_86 vs arm64) so you have to make sure they match as well.
This was an excellent video and very helpful in getting up and running with FastAPI and Lambda. Perhaps you could do a follow-up video that makes the code ready for a production setup. Maybe additional error handling, user management, API authn, etc?
Thanks! Those are great suggestions, but I think to make something fully production-ready is going to be a LOT more than just one video :D I still have more to learn about that myself.
@@pixegami Fair point, and maybe a full prod setup is a bit much. It would be nice to see this project iterated on a bit - maybe authn and error handling would be good next steps. For one, they help me achieve my own goals :-) and those additional changes build on something already established.
I know the hate ToDo apps get, so maybe there is room to expand it to be something a bit more than a standard ToDo list, which would give you an excuse to show how you can extend the “Dyanamo DB schema” or whatever it’s called in DDB land. That might illustrate why it’s important to properly model the database before hand and could highlight some of the pain points devs encounter when modifying it later?
Just spitballing, whatever you choose to make, I think your approach and cadence are just right, so please keep it up. Glad to be a new subscriber!
Thank you! Another great video
Glad you enjoyed it!
You are creating amazing contents man...Subscribed!❤❤
Thanks and welcome!
Awesome thank you! This is gold!!!
Do we have to pay for any service ?? I would like to know before I start the project or I have to leave it in between . 😭.
AWS Lambda has a free tier, so it shouldn't cost you until you use millions of requests.
10/10, awesome vid !!
Take a look over AWS SAM to automatize the process of upload the python code to AWS Lambda instead of create the .Zip by hand
Thanks for the suggestion, I'll definitely take a look.
@pixegami Great Tutorial, thanks but...Lambda is restricted to 6MB of data per function. So if you have an endpoint that has to return a lot of data, won't this fail? Would your other video where we just run FastApi on an EC2 instance be preferable (even though we have to manage scaling ourselves etc)
Hmm, 6MB sounds like a lot of data to return from an API call. It might not be suitable for Lambda. Is this something that should be downloaded by the user instead? (e.g. via S3)
@pixegami Thanks for responding. Thankfully I learned that FastAPI supports streaming, so we use that and not Lambda.@@pixegami
Can you make a video about EC2, ASG , LB, Target Group etc configurations by coding or yaml. Because ı always see console or ui page configurations but in enterprise life we need to create all these configuration with deployment script.
Ah yes I know what you mean. For my larger projects I actually do use infrastructure code. It's better to use an SDK for it rather than YAML or JSON, because it's type-safe and more powerful. For AWS you can use AWS CDK. I have a small tutorial about it here: th-cam.com/video/o3s4VqlMsT8/w-d-xo.html
Hi Pixegami! I'm looking a way to host a SPA made with react, I don't want to manage all the server related things and put it in a EC2, I see that i can do it from a S3 bucket or Amplify, which option you will recomend? (Even other not mention)
For hosting a static site (SPA), I think your main options are AWS (S3 bucket or Amplify), Firebase (Google), or Vercel.
I personally prefer Vercel just for a SPA, because they are the easiest to use. AWS and Firebase have more features, but also more complex to learn.
In terms of AWS, S3 is the technology you want to use. I'm pretty sure Amplify uses S3 behind the scenes. But you can use Amplify as well if it makes it easier (it just uses S3 anyway).
@@pixegami Thanks a lot! I've seen a lot of your videos about Lambdasand FastAPI, this is the best way to host a FastAPI right? So i can connect it to my SPA
Nice video! What colour scheme are you using please?
For VSCode I’m using Monokai Pro. For the terminal, I used a custom theme which I explain in this video:
My terminal setup (theme and plugin) on Ubuntu Linux 💻
th-cam.com/video/UvY5aFHNoEw/w-d-xo.html
Gracias!!!!!
Instead of typesrcipt language I choose to go with python , but I'm getting the error of my unzipped file size is large and exceeds the limit of lambda so It is not able to run the application , I have tried deleting If there are unnecessary libraries I'm zipping and uploading, as well I have also tried first uploading the file as asset to S3 and then using S3 bucket for lambda function ,still getting the same ,Please guide me I have been stuck at this problem from 1 week, will wait for you reply, Thankyou Great content!
Have you tried using a lambda layer?
I have the same and am stuck. I will try to return to simpler python code without FastAPI.
what distribution are you using?
In this video I am using Ubuntu Linux (probably 2020?) But nowadays I use a Mac M1, just because I use quite a lot of Adobe programs (which doesn’t run on Linux).
Can not see above 360p
The video might still be processing. Please try again soon!
Build gpt3 powered app
I did something like that here: th-cam.com/video/yxyyYMWu1ZA/w-d-xo.html
But I'm happy to do more of them! I love GPT-3.
Thank you! Another great video