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

Dapr

95
335
+ 1
9
Kong

641
1.5K
+ 1
139
Add tool

Dapr vs Kong: What are the differences?

Key Differences between Dapr and Kong

Dapr and Kong are two different technologies used in building and managing modern applications. Here are the key differences between Dapr and Kong:

  1. Architecture: Dapr is designed as a runtime for microservices, providing a set of building blocks for distributed applications. It enables developers to build microservices using any language or framework and offers features like service-to-service communication and state management. On the other hand, Kong is an API gateway and service mesh built for managing API traffic and implementing security, observability, and traffic control in a centralized manner.

  2. Focus: Dapr focuses on simplifying the development of microservices-based applications. It provides a framework for building stateless and stateful services, with features like message routing, pub/sub, and distributed tracing. Kong, on the other hand, is primarily focused on managing and securing API traffic. It acts as a gateway between clients and services, providing features like authentication, rate limiting, and request/response transformations.

  3. Integration: Dapr is designed to be integrated into existing applications and can work alongside other service frameworks. It provides various SDKs and libraries for different programming languages, allowing developers to easily adopt Dapr in their projects. Kong, on the other hand, is typically deployed as a separate component or service in the infrastructure stack and acts as a centralized control plane for managing API traffic.

  4. Service Mesh Capabilities: Dapr provides limited service mesh capabilities, primarily focused on load balancing and service discovery. It can be used as a sidecar alongside application containers to provide these functionalities. Kong, on the other hand, offers a comprehensive service mesh solution called Kong Mesh, which includes advanced features like traffic routing, observability, and security policies for microservices.

  5. Community and Ecosystem: Dapr is backed by Microsoft and has an active open-source community contributing to its development and ecosystem. It leverages popular technologies like Docker, Kubernetes, and Redis. Kong, on the other hand, is developed and maintained by Kong Inc. and also has a strong community support. It integrates with a wide range of technologies and platforms, including Kubernetes, Docker, AWS, and more.

  6. Use Cases: Dapr is suitable for building microservices-based applications and can be used in various scenarios like event-driven architectures, IoT, and batch processing. It provides a platform-agnostic approach and can be used in hybrid and multi-cloud environments. Kong is best suited for managing API traffic and providing security and control to APIs. It is commonly used in scenarios where API management and governance are required, such as in API-driven architectures and microservices-based applications.

In summary, Dapr is a runtime framework for building microservices with a focus on developer simplicity, while Kong is an API gateway and service mesh solution focused on managing API traffic and providing centralized control over APIs.

Decisions about Dapr and Kong
Prateek Mittal
Fullstack Engineer| Ruby | React JS | gRPC at Ex Bookmyshow | Furlenco | Shopmatic · | 4 upvotes · 303.8K 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 Dapr
Pros of Kong
  • 3
    Manage inter-service state
  • 2
    MTLS "for free"
  • 2
    App dashboard for rapid log overview
  • 2
    Zipkin app tracing "for free"
  • 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

Sign up to add or upvote prosMake informed product decisions

Cons of Dapr
Cons of Kong
  • 1
    Additional overhead
    Be the first to leave a con

    Sign up to add or upvote consMake informed product decisions

    What is Dapr?

    It is a portable, event-driven runtime that makes it easy for developers to build resilient, stateless and stateful microservices that run on the cloud and edge and embraces the diversity of languages and developer frameworks.

    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.

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

    What companies use Dapr?
    What companies use Kong?
    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 Dapr?
    What tools integrate with Kong?

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

    Blog Posts

    GitHubPythonNode.js+26
    29
    16066
    What are some alternatives to Dapr and Kong?
    Istio
    Istio is an open platform for providing a uniform way to integrate microservices, manage traffic flow across microservices, enforce policies and aggregate telemetry data. Istio's control plane provides an abstraction layer over the underlying cluster management platform, such as Kubernetes, Mesos, etc.
    Akka
    Akka is a toolkit and runtime for building highly concurrent, distributed, and resilient message-driven applications on the JVM.
    Orleans
    Orleans is a framework that provides a straightforward approach to building distributed high-scale computing applications, without the need to learn and apply complex concurrency or other scaling patterns. It was created by Microsoft Research and designed for use in the cloud.
    Knative
    Knative provides a set of middleware components that are essential to build modern, source-centric, and container-based applications that can run anywhere: on premises, in the cloud, or even in a third-party data center
    Envoy
    Originally built at Lyft, Envoy is a high performance C++ distributed proxy designed for single services and applications, as well as a communication bus and “universal data plane” designed for large microservice “service mesh” architectures.
    See all alternatives