Giter Club home page Giter Club logo

Comments (9)

xthexder avatar xthexder commented on July 17, 2024

I think things like reordering packets are out of toxiproxy's scope. The end result would be that TCP reorders / resends them and you just get added latency at the client level, we're trying to test apps not TCP.

UDP support would be nice, but I'm not sure how useful it would be. Any critical data that's sent between apps would be sent over TCP, so there's less of a use case from a resiliency standpoint.

What I like about doing things above the TCP layer is we can make protocol aware toxics that do things like force a read/write to fail (i.e. the server is responding but still down).

from toxiproxy.

sirupsen avatar sirupsen commented on July 17, 2024

Fair point :)

from toxiproxy.

Dieterbe avatar Dieterbe commented on July 17, 2024

UDP support would be nice, but I'm not sure how useful it would be. Any critical data that's sent between apps would be sent over TCP, so there's less of a use case from a resiliency standpoint.

FWIW i'm trying to use toxiproxy in between my apps' clustered instances, which use https://github.com/hashicorp/memberlist which uses UDP. So I think UDP would be very useful :)

from toxiproxy.

jpittis avatar jpittis commented on July 17, 2024

Creating a layer 3 proxy would be a real pain cause we'd probably have to mess around with TUN TAP interfaces. Turning Toxiproxy into a layer 3 proxy sounds like a huge rewrite and wouldn't easy.

from toxiproxy.

Dieterbe avatar Dieterbe commented on July 17, 2024

FWIW driven by my use case above i've been researching some toxiproxy alternatives, specifically for tools that target the network layer instead of the application layer and https://github.com/gaia-adm/pumba seems to be the most promising one

from toxiproxy.

jpittis avatar jpittis commented on July 17, 2024

A quick glance at pumba makes me that it's not cross platform because it relies on tc. (A linux specific tool.) Thanks for sharing that with us!

from toxiproxy.

petemounce avatar petemounce commented on July 17, 2024

UDP support would be incredibly useful for testing computer-game networking code. For a detailed insight into "why UDP over TCP" for games, https://gafferongames.com/post/udp_vs_tcp/ does an excellent job.

from toxiproxy.

sirupsen avatar sirupsen commented on July 17, 2024

Perhaps we could implement this without impacting the TCP layer? Instead have an IP-layer that works differently, with different toxics?

from toxiproxy.

jpittis avatar jpittis commented on July 17, 2024

It would be totally possible to add UDP support. A lot of the system may assume TCP and therefore be a lot of work to refactor.

from toxiproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.