Jay
Michael Clifford
11/11/2021, 4:14 AMApolloApi
doesn't appear to work with udp
Michael Clifford
11/11/2021, 4:20 AMApolloApi
URL I get {"message":"Internal Server Error"}
thdxr
11/11/2021, 4:52 AMMichael Clifford
11/11/2021, 5:47 AMApolloApi
thdxr
11/11/2021, 5:49 AMthdxr
11/11/2021, 6:37 AMthdxr
11/11/2021, 7:02 AMKujtim Hoxha
11/11/2021, 9:58 AMthdxr
11/11/2021, 3:35 PMAkos
11/11/2021, 5:50 PMthdxr
11/11/2021, 5:57 PMAkos
11/11/2021, 6:01 PMthdxr
11/11/2021, 6:09 PMthdxr
11/11/2021, 6:09 PMMichael Clifford
11/11/2021, 6:20 PMthdxr
11/12/2021, 2:13 AMMichael Clifford
11/12/2021, 3:40 AMAkos
11/12/2021, 8:59 AMAkos
11/12/2021, 10:12 AMmaxWorkers
for example in CI we run with a parallelism of 40 (one of the super cool thing of serverless is that you can just hammer your services without worrying about cost/scale π )
β’ We have about 100 files, each file containing ~5 tests and each test does typically one API request which hits our graphql API lambda.
β’ I'll provide some benchmarks with different maxWorkers settings to see how chattiness from the lambdas to my macbook change the numbers
β’ My internet and wifi is pretty good: 600mbps up/down, unifi AP/switches. Using cloudping.info i'm getting 10-15ms for eu-west-2 where our services run, so RTT is pretty low for me. I can try using a VPN from another country to add some artificial RTT if that would be interesting for you.
β’ These timings are from second/third runs, therefore lambda stubs are all warm and any local cache is also warm.
maxWorkers=2 benchmarks:
Without udp flag:
Test Suites: 98 passed, 98 total
Tests: 513 passed, 513 total
Snapshots: 0 total
Time: 440.215 s, estimated 739 s
Ran all test suites.
With udp flag:
Test Suites: 98 passed, 98 total
Tests: 513 passed, 513 total
Snapshots: 0 total
Time: 402.35 s, estimated 424 s
Ran all test suites.
Result: ~10% improvement
maxWorkers=10 benchmarks:
Without udp flag:
Test Suites: 98 passed, 98 total
Tests: 513 passed, 513 total
Snapshots: 0 total
Time: 97.648 s, estimated 100 s
Ran all test suites.
With udp flag:
Test Suites: 98 passed, 98 total
Tests: 513 passed, 513 total
Snapshots: 0 total
Time: 90.263 s, estimated 95 s
Ran all test suites.
Result: ~10% improvement.
maxWorkers=20 benchmarks:
Without udp flag:
Test Suites: 98 passed, 98 total
Tests: 513 passed, 513 total
Snapshots: 0 total
Time: 82.769 s
Ran all test suites.
With udp flag:
Test Suites: 98 passed, 98 total
Tests: 513 passed, 513 total
Snapshots: 0 total
Time: 62.965 s
Ran all test suites.
Result: ~25% improvement
Take these numbers with a grain of salt as they are integration tests that hit tons of AWS services so there could be some variability. But what definitely seems true is that there's an improvement across the board π so nice job! πthdxr
11/12/2021, 1:04 PMKujtim Hoxha
11/12/2021, 1:50 PMthdxr
11/12/2021, 2:00 PMthdxr
11/12/2021, 2:00 PMKujtim Hoxha
11/12/2021, 2:50 PMKujtim Hoxha
11/12/2021, 10:14 PMSTART RequestId: e52f55dc-e2e1-4ac1-8398-2905b0f40c13 Version: $LATEST
2021/11/12 22:13:23 Listening...
2021/11/12 22:13:23 Registering 35.158.130.208:10280
2021/11/12 22:13:23 Waiting for first ping
END RequestId: e52f55dc-e2e1-4ac1-8398-2905b0f40c13
REPORT RequestId: e52f55dc-e2e1-4ac1-8398-2905b0f40c13 Duration: 10003.06 ms Billed Duration: 10000 ms Memory Size: 1024 MB Max Memory Used: 29 MB
XRAY TraceId: 1-618ee6f8-72b05fc20afdfed73412887f SegmentId: 37a1af7b101cd04e Sampled: true
2021-11-12T22:13:33.288Z e52f55dc-e2e1-4ac1-8398-2905b0f40c13 Task timed out after 10.00 seconds
Kujtim Hoxha
11/12/2021, 10:14 PMthdxr
11/12/2021, 10:18 PMKujtim Hoxha
11/12/2021, 10:21 PMKujtim Hoxha
11/12/2021, 10:22 PMKujtim Hoxha
11/12/2021, 10:22 PMKujtim Hoxha
11/12/2021, 10:23 PMthdxr
11/12/2021, 10:26 PM--udp
as an optional flagthdxr
11/12/2021, 10:26 PM