How to simulate API latency during development using Hoverfly

Hoverfly logo
  • Replace slow, flaky API dependencies with realistic, reusable simulations
  • Simulate network latency, random failures or rate limits to test edge-cases
  • Export, share, edit and import API simulations
hoverctl start
Hoverfly running
hoverfly -ap {adminPortNumber} -pp {proxyPortNumber}
Hoverfly capture mode
hoverctl mode capture
hoverctl export simulation.json
“globalActions”: {        “delays”: [],        “delaysLogNormal”: []}
“globalActions”: {“delays”: [      {        “urlPattern”: “.”,        “httpMethod”: “”,        “delay”: 5000      }],“delaysLogNormal”: []
hoverctl import simulation.json
hoverctl stop

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store