Need advice about which tool to choose?Ask the StackShare community!

Kong

641
1.5K
+ 1
139
Traefik

850
1.2K
+ 1
93
Add tool

Kong vs Traefik: What are the differences?

Kong and Traefik are both popular API gateway solutions used for managing and securing microservices architectures. Let's explore the key differences between Kong and Traefik.

  1. Architecture: Kong follows a plugin-based architecture that allows developers to extend its functionality by adding custom plugins. On the other hand, Traefik follows a middleware-based architecture that provides a streamlined request processing flow by chaining middleware functions.

  2. Routing and Load Balancing: Kong supports a wide range of routing and load balancing algorithms, including round-robin, least connections, and consistent hashing. Traefik, on the other hand, offers dynamic routing and load balancing, leveraging service discovery mechanisms to automatically configure routes and balance traffic across services.

  3. Service Discovery: Kong requires an external service discovery mechanism, such as Consul or etcd, to dynamically discover and route requests to backend services. Traefik, on the other hand, comes with built-in support for service discovery, allowing it to automatically detect new services as they are deployed and configure routing accordingly.

  4. Health Checking: Kong provides basic health checking functionalities for backend services by periodically sending requests to endpoints and evaluating their responses. Traefik offers more advanced health checking capabilities, including support for custom health checks and passive health checks based on metrics from monitoring systems.

  5. TLS Termination: Kong supports TLS termination out-of-the-box, allowing it to handle SSL encryption and decryption for incoming requests. Traefik also supports TLS termination but offers additional features like automatic certificate provisioning using Let's Encrypt.

  6. Deployment Flexibility: Kong can be deployed as a standalone service or as a Kubernetes Ingress Controller, providing flexibility for various deployment scenarios. Traefik is designed with cloud-native environments in mind and can be easily integrated into container orchestration platforms like Kubernetes and Docker.

In summary, Kong, an open-source API gateway and microservices management layer, offers extensive features for API traffic control and security, while Traefik, a modern reverse proxy and load balancer, excels in its simplicity and automatic configuration, making it particularly suitable for dynamic containerized environments like Docker and Kubernetes.

Decisions about Kong and Traefik
Gabriel Pa

We switched to Traefik so we can use the REST API to dynamically configure subdomains and have the ability to redirect between multiple servers.

We still use nginx with a docker-compose to expose the traffic from our APIs and TCP microservices, but for managing routing to the internet Traefik does a much better job

The biggest win for naologic was the ability to set dynamic configurations without having to restart the server

See more
Prateek Mittal
Fullstack Engineer| Ruby | React JS | gRPC at Ex Bookmyshow | Furlenco | Shopmatic · | 4 upvotes · 308.2K views

Istio based on powerful Envoy whereas Kong based on Nginx. Istio is K8S native as well it's actively developed when k8s was successfully accepted with production-ready apps whereas Kong slowly migrated to start leveraging K8s. Istio has an inbuilt turn-keyIstio based on powerful Envoy whereas Kong based on Nginx. Istio is K8S native as well it's actively developed when k8s was successfully accepted with production-ready apps whereas Kong slowly migrated to start leveraging K8s. Istio has an inbuilt turn key solution with Rancher whereas Kong completely lacks here. Traffic distribution in Istio can be done via canary, a/b, shadowing, HTTP headers, ACL, whitelist whereas in Kong it's limited to canary, ACL, blue-green, proxy caching. Istio has amazing community support which is visible via Github stars or releases when comparing both.

See more
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Kong
Pros of Traefik
  • 37
    Easy to maintain
  • 32
    Easy to install
  • 26
    Flexible
  • 21
    Great performance
  • 7
    Api blueprint
  • 4
    Custom Plugins
  • 3
    Kubernetes-native
  • 2
    Security
  • 2
    Has a good plugin infrastructure
  • 2
    Agnostic
  • 1
    Load balancing
  • 1
    Documentation is clear
  • 1
    Very customizable
  • 20
    Kubernetes integration
  • 18
    Watch service discovery updates
  • 14
    Letsencrypt support
  • 13
    Swarm integration
  • 12
    Several backends
  • 6
    Ready-to-use dashboard
  • 4
    Easy setup
  • 4
    Rancher integration
  • 1
    Mesos integration
  • 1
    Mantl integration

Sign up to add or upvote prosMake informed product decisions

Cons of Kong
Cons of Traefik
    Be the first to leave a con
    • 7
      Complicated setup
    • 7
      Not very performant (fast)

    Sign up to add or upvote consMake informed product decisions

    - No public GitHub repository available -

    What is Kong?

    Kong is a scalable, open source API Layer (also known as an API Gateway, or API Middleware). Kong controls layer 4 and 7 traffic and is extended through Plugins, which provide extra functionality and services beyond the core platform.

    What is Traefik?

    A modern HTTP reverse proxy and load balancer that makes deploying microservices easy. Traefik integrates with your existing infrastructure components and configures itself automatically and dynamically.

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use Kong?
    What companies use Traefik?
    Manage your open source components, licenses, and vulnerabilities
    Learn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Kong?
    What tools integrate with Traefik?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    Blog Posts

    GitHubPythonNode.js+26
    29
    16105
    What are some alternatives to Kong and Traefik?
    Apigee
    API management, design, analytics, and security are at the heart of modern digital architecture. The Apigee intelligent API platform is a complete solution for moving business to the digital world.
    Postman
    It is the only complete API development environment, used by nearly five million developers and more than 100,000 companies worldwide.
    Postman
    It is the only complete API development environment, used by nearly five million developers and more than 100,000 companies worldwide.
    Stack Overflow
    Stack Overflow is a question and answer site for professional and enthusiast programmers. It's built and run by you as part of the Stack Exchange network of Q&A sites. With your help, we're working together to build a library of detailed answers to every question about programming.
    Google Maps
    Create rich applications and stunning visualisations of your data, leveraging the comprehensiveness, accuracy, and usability of Google Maps and a modern web platform that scales as you grow.
    See all alternatives