13/34
Sign inSign up free

569. Find the Slow Endpoint with curl

easy 10 XP ~6 minHands-on lab

Users say the internal API on http://127.0.0.1:8154 is "sometimes slow". It serves /users, /orders, /search and /health.

Task

  1. Find the endpoint that takes more than a second to answer, and write its path (for example /users) to /home/student/slow.txt.
  2. For that endpoint, is the time spent opening the connection or waiting for the server's first byte? Write connect or server to /home/student/cause.txt.

curl's -w (write-out) option can print timing variables such as %{time_connect} and %{time_starttransfer}.

About this machine

Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Your machine is ready to start

A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.

No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.