Shopping mall 2.0

For consumers empowered by information from online sources, visit to the store now primarily serves to confirm the decision taken before the arrival at the shopping mall.

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




AWS Lambda Tip

I used AWS Lambda during the 18 months. I described some tips of the lambda.

Can set 1-5 lambdas to a kinesis shard. The default is 1. So when you use over 2, you need to be careful about the role of the job. If the job updates the same row on the database, you avoid using over 2 lambdas.

Instead of using JSON, use protobuffer as a protocol. In my case, data written by JSON has 100–1000 bigger than a data written by protobuffer.

So my recommendation is using protobuffer per a data, then aggregates by kinesis-aggregation library on the above link.

And if a lambda in a private VPC is triggered by Kinesis events, use VPC Endpoint. VPC endpoint can connect the lambda to Kinesis.

Uses lambda alias and version when connecting to a stage of API Gateway. We can set the “stageVariable.” Set LambdaFunc to a lambda function name and LambdaAlias to a alias value of Lambda. Then set the lambda proxy as $LambdaFunc:$LambdaAlias.

The max timeout is 15 seconds.

Some AWS Resource, dynamoDB, kinesis, and S3, exists in VPC managed by AWS not like VPC made by us. Uses AWS Endpoint. It provides the endpoint for each aws resources. With the endpoint URL, the lambda inside a VPC can access above resources.

Lambda Layer absolutely is a good way to share the common packages. It definitely helps us to develop the lambda function like a codebase on EC2.

Definitely configure NAT Gateway in a public VPC. Then routes a lambda’s traffic to the NAT Gateway.

Add a comment

Related posts:

Need to Fix Your Employee Scheduling Strategy

Employee scheduling is crucial for any business where it performs many different roles. When we have a short amount of time in one day, so we have to do the best possible to improve business…

A Letter to Senator Klobuchar

This morning I awoke to news that my senior senator had signed on to a letter encouraging Congressional leadership to expand the list of businesses who are exempt from the 500 employee “affiliation”…

3 Habits I Have Developed to Become a Better Web Designer

I remember a time when I was fascinated by the people who knew how to make websites and I used to think to myself “I wish I knew how to do that as well”. It was a skill I always wanted to acquire…