Jay Taylor's notes

back to listing index

Hoverfly by SpectoLabs

[web search]
Original source (hoverfly.io)
Tags: golang go http hoverfly service-virtualization proxy hoverfly.io
Clipped on: 2015-12-11


Service virtualization for the rest of us

View on GitHub Download .zip Download .tar.gz Download binaries

Dependencies without the sting

Hoverfly is a lightweight, open source service virtualization tool. Using Hoverfly, you can virtualize your application dependencies to create a self-contained development or test environment.

Hoverfly is a proxy written in Go. It can capture HTTP(s) traffic between an application under test and external services, and then replace the external services. It can also generate synthetic responses on the fly.

Image (Asset 1/4) alt=

Customize and extend using any language

Hoverfly can simulate real-world behavior - such as network latency, timeouts or rate limits - using middleware modules. Middleware modules can be written in any language, so you can use whatever you're comfortable with: Python, Ruby, PHP or even shell scripts. From adding a simple delay to a response, to implementing complex logic that transforms responses, the possibilities are literally endless.

Image (Asset 2/4) alt=

Build synthetic services

Imagine a scenario where another team is working on a service but they haven't yet published it. Your software relies on this service. Now you can simply create a snippet in your favourite language with basic rules which define what to return on each request. Hoverfly will then synthesize this service for you. Think of it as super-charged mocking.

Image (Asset 3/4) alt=

Modify traffic on the fly

Hoverfly allows you to use middleware to modify requests and responses on the fly. This means you can change any part of a request or response in real time without having to describe a service or store requests and responses.

Image (Asset 4/4) alt=
Hoverfly is maintained by SpectoLabs.