================================================================================================================================================================================================================================================================ 服务流动 ================================================================================================================================================================================================================================================================
AP GW ⮕ Lambda功能(预设)
================================================================================================================================================================================================================================================================ 学历 ================================================================================================================================================================================================================================================================
你们想理解为什么在处理APIC GW至Lambda的要求时有相对性。
================================================================================================================================================================================================================================================================ 及时的妇女 ================================================================================================================================================================================================================================================================
021-02-15T11:51:36.621+05:30
2021-02-15T11:51:38.535+05:3
Lambda duration - Duration: 1331.38 ms Billed Duration: 1332 ms Memory Size: 256 MB Max Memory Used: 130 MB Init Duration: 1174.18 ms
==后续问题 ================================================================================================================================================================================================================================================================
虽然这项请求通过APIC-GW处理到Lambda的运行,但执行部分耗用了1174.18 ms(1.1s)小段作为“积极和安放”部分;在其余0.3条中执行你的代码,使总数达到1.4秒。
Q. What is the type of processor you are using?
Q. Type of API & Endpoint type?
================================================================================================================================================================================================================================================================ K.C ====
- You should read AWS DOC for optimizing your Lambda function code.Optimizing static initialization
- Lambda won t charge you for the time it takes to initialize your code (e.g. importing stuff) as long as it finishes in about X seconds.1
===== Replication Observation =====
没有规定同意。
- API GW execution time - 286 ms
- Initialization -195ms
- Invocation - 11ms
- Overhead - 0ms
同意。
- API GW execution time - 1.103ms
- Initialization - 97ms
- Invocation - 1ms
- Overhead - 0ms
I m in US-WEST-2 region and calls the request from 12,575公里远的地方。 I hv a REST AP, 配置为区域终点类型。 设在X86的加工商的Lambda功能在X86_64——64-bit x86建筑。
-- Check if you have optimized Lambda function code.
-- To have low latency, you may make use of edge optimized Rest API.An edge-optimized API endpoint is best for geographically distributed clients. API requests are routed to the nearest CloudFront Point of Presence (POP).
-- Alway choose the Region which is closest to the high traffic region.
--
References:
new-provisioned-concurrency-for-lambda-functions
provisioned-concurrency.html#optimizing-latency