[PYTHON] I tried connecting AWS Lambda with other services
Lambda * XXX
outline
- What is Lambda
- VPC compatible
- How is it used?
- What is the compatibility with other AWS services?
- Summary
What is Lambda
You know event-driven AWS services
_Premise: I have never used anything other than Python + boto3 _
It supports VPC
VPC compatible = RDS can be connected!
ENI startup time is too long (you should see it for about 1 minute)
No official mention of ENI startup time
How is it used?
- I'm having trouble with the source control mechanism = It's a hassle when I want to play with Git
- If something happens and you want to do something, try introducing it first.
How is it compatible with other AWS services?
- Used for AMI backup
- Trade-off relationship with using cron (estimate required)
--Lambda once / day
―― Once / 5min or something like cron
- No problem
- RDS + Lambda doesn't feel right
- Is it because of the essential feeling of RDS performance tuning?
- It's easy to put something in S3
- Real-time system is a little painful
――If you use Kinesis Firehose for real-time system, data will be sent to S3. (However, there is no Tokyo Region yet, and it is more expensive than Kinesis.)
- API Gateway's own 10-second binding is quite a bottleneck
--If you support VPC, you will die on the first access
--Lambda that seems to sleep You have to make another Lambda that wakes up (polls)
- Making a mock of a web application is an easy win
- Easy win when doing something with mail reception drive
- Note that if it is not the Java version, the encryption when using S3 to save mail is dead.
- The UI of CloudWatch Logs itself is sick
- It's easy to check the operation because the Invocation Count and Invocation duration are displayed properly.
- Super-future spreading system
- When you want to use client storage or want to synchronize, it seems to be strong if you can design it properly
- It is convenient to go through Kinesis because JSON is not tied up. (For Pyhon 2.7. I don't know anything else)
- Be careful when tuning as performance depends on Kinesis
- If you want to access using Python2.7, you have to compile psycopg2 from source, which is a bit annoying.
Summary
- Deploying and testing are too easy and I feel like I'm not working
- When you want to do something, you can try it immediately.
- It tends to go in the mysterious direction of seeking speed, raising memory and tuning performance, so if that is the case, it is better to move to another option immediately.
Digression
It was an attempt to publish the outline of the slide material as it is.
- Write an outline with MarkDown
- Thicken the contents
- Template PowerPoint (Google Presentation)
I will always make the presentation materials by the procedure of, so please do not go to the stage of 2.
above.
Unauthorized Maru Pakuri is good.
feat. aoike