DEV Community

Cover image for Istio Traffic Management
Dave Magsipoc
Dave Magsipoc

Posted on

Istio Traffic Management

Microservice architecture provides a lot of benefits from fault isolation to scalability improvements. This allows the team to increase their velocity from ideation to deployments.

Adaption of such architecture comes challenges like service discovery, authentication and authorization, and centralized logging. How are we going to address these?

Here comes Istio πŸš€

Istio is an open source service mesh that layers transparently onto existing distributed applications. Istio’s powerful features provide a uniform and more efficient way to secure, connect, and monitor services.

https://istio.io/latest/about/service-mesh/

With Istio We can do

  • Traffic routing allow A/B testing by splitting traffic based on different kinds of scenarios

  • Fault injection Test application reliability by introducing errors. faults are injected in the form of:

    • Delay - Mocks timing failures like network latency, overloaded upstreams
    • Abort - Mocks crash failure scenarios upstream service failure and http error codes
  • Circuit Breaker Sets request calls to your application like number of concurrent connections and how many times your application could be called. Once certain parameters has been reach, circuit breaker will activate and prevent specific clients from making further connections.

  • Timeouts Allows your application to wait for replies protecting your application for long hanging requests

  • Retries Gives your application the ability to retry request before returning an error. Focuses on reducing transient network failures that will help improve resiliency.

  • Mirroring Ability to shadow the same amount of traffic to a mirrored service. Minimize the risk of deployment issues in your production environment.

Overall

Istio allows you to implement application resiliency, reliability and safe deployment implementations. It simplifies implementation of your network use cases without any changes to the application code. Want to learn more? Deep dive by visiting the istio website.

Useful links

Top comments (0)