Giter Club home page Giter Club logo

Comments (3)

outofcoffee avatar outofcoffee commented on July 3, 2024

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.

outofcoffee avatar outofcoffee commented on July 3, 2024

@merlinc does this cover the issue you'd seen?

from imposter.

outofcoffee avatar outofcoffee commented on July 3, 2024

Fixed in v3.35.1.

from imposter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.