Toxiproxy 网络情况模式代理
1. 介绍
Toxiproxy is a framework for simulating network conditions. It's made specifically to work in testing, CI and development environments,
supporting deterministic tampering with connections, but with support for randomized chaos and customization.Toxiproxy is the tool you
need to prove with tests that your application doesn't have single points of failure. We've been successfully using it in all development
and test environments at Shopify since October, 2014. See our blog post on resiliency for more information.
Toxiproxy usage consists of two parts. A TCP proxy written in Go (what this repository contains) and a client communicating with the proxy
over HTTP. You configure your application to make all test connections go through Toxiproxy and can then manipulate their health via HTTP.
See Usage below on how to set up your project.
在我们进行微服务开发的过程中这样的工具对于实际的测试还是比较方便的,可以帮助我们解决好多很难测试的环境