Comments (3)
This was caused by the Lambda handler not awaiting completion of the asynchronous downstream call when delay
is used.
This is resolved by e849b3f and its subsequent commits.
Test evidence
Deployed a mock with a delay of 10000ms
to AWS Lambda.
Calling the endpoint using curl
, wrapped in time
:
$ time curl https://<endpoint removed>.lambda-url.us-east-1.on.aws/exact-delay
This is a response with a 10s delay
curl 0.01s user 0.02s system 0% cpu 10.527 total
Calling the endpoint using hey
:
$ hey -z 20s -h2 https://<endpoint removed>.lambda-url.us-east-1.on.aws/exact-delay
Summary:
Total: 21.2387 secs
Slowest: 10.8438 secs
Fastest: 10.0984 secs
Average: 10.2685 secs
Requests/sec: 4.7084
Total data: 3500 bytes
Size/request: 35 bytes
Response time histogram:
10.098 [1] |■
10.173 [47] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
10.248 [0] |
10.322 [0] |
10.397 [47] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
10.471 [1] |■
10.546 [0] |
10.620 [3] |■■■
10.695 [0] |
10.769 [0] |
10.844 [1] |■
Latency distribution:
10% in 10.1100 secs
25% in 10.1107 secs
50% in 10.3914 secs
75% in 10.3936 secs
90% in 10.3947 secs
95% in 10.3971 secs
99% in 10.8438 secs
Details (average, fastest, slowest):
DNS+dialup: 0.1169 secs, 10.0984 secs, 10.8438 secs
DNS-lookup: 0.0141 secs, 0.0000 secs, 0.0285 secs
req write: 0.0000 secs, 0.0000 secs, 0.0001 secs
resp wait: 10.1507 secs, 10.0984 secs, 10.6197 secs
resp read: 0.0001 secs, 0.0000 secs, 0.0008 secs
Status code distribution:
[200] 100 responses
from imposter.
@merlinc does this cover the issue you'd seen?
from imposter.
Fixed in v3.35.1.
from imposter.
Related Issues (20)
- issue in case of multiple matching HOT 8
- soap imposter-all issue with returning file as response HOT 1
- Healthcheck / Readiness probe HOT 6
- Docker + S3 HOT 3
- Support for GRPC mocking HOT 2
- Http 500 error when navigating to Swagger UI HOT 6
- [Improvement] Add support to configure through a remote API
- Can I add basepath for _spec endpoint? HOT 2
- A way to instruct a specific OAI example response HOT 2
- Port test-containers example to module catalogue
- Issue with Swagger UI and combined.json in Imposter AWS Lambda Deployment
- Incorrect order for Server Path and OpenAPI config path
- Using Expression.regexify in content responses HOT 2
- Request to make Context.Request.toString() produce json HOT 1
- Add support for faker regexify and similar functions
- Let a percentage of requests fail HOT 2
- CLI tool doesn't download and extract zip files for plugins HOT 1
- [Question] Find SOAP operations HOT 1
- Question - SOAP - Error on "No operations found matching body root" HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imposter.