Skip to content
Search

ToxiProxy

lastmod 2021-11-05created 2021-11-051 edits

An open-source TCP proxy for network testing.

A TCP proxy to simulate network and system conditions for chaos and resiliency testing.

Features

  • A testing framework that simulates network conditions
  • Simulates faulty network connections in CI/development environments to test for SPOFs
  • Developed by Shopify and in use since 2014
  • Consists of a TCP proxy written in Go and clients for various languages that talk to the proxy over HTTP
    • ruby, Go, Python, .NET, PHP, Node, Java, Haskell, Rust, Elixir

Examples

Delay all MySQL responses by 1 second

Toxiproxy[:mysql_master].downstream(:latency, latency: 1000).apply do
ㅤShop.first # this takes at least 1s
end

Take down all Redis instances

Toxiproxy[/redis/].down do
ㅤShop.first # this will throw an exception
end

See also

Favorite site

author Zer0 sitemap