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

Javalin

24
54
+ 1
2
Ktor

116
236
+ 1
15
Add tool

Javalin vs Ktor: What are the differences?

What is Javalin? Simple REST APIs for Java and Kotlin. Javalin started as a fork of the Spark framework but quickly turned into a ground-up rewrite influenced by express.js. Both of these web frameworks are inspired by the modern micro web framework grandfather: Sinatra, so if you’re coming from Ruby then Javalin shouldn’t feel too unfamiliar.

What is Ktor? Framework for quickly creating connected applications in Kotlin. It is a framework for building asynchronous servers and clients in connected systems using the Kotlin programming language.

Javalin and Ktor can be categorized as "Microframeworks (Backend)" tools.

Javalin and Ktor are both open source tools. It seems that Ktor with 6.1K GitHub stars and 470 forks on GitHub has more adoption than Javalin with 3.6K GitHub stars and 313 GitHub forks.

Decisions about Javalin and Ktor
Juan José Aguililla Martínez

I developed Hexagon heavily inspired in these great tools because of the following reasons:

  • Take full advantage of the Kotlin programming language without any strings attached to Java (as a language).
  • I wanted to be able to replace the HTTP server library used with different adapters (Jetty, Netty, etc.) and though right now there is only one, more are coming.
  • Have a complete tool to do full applications, though you can use other libraries, Hexagon comes with a dependency injection helper, settings loading from different sources and HTTP Client, so it comes with (batteries included).

Right now I'm using it for my pet projects, and I'm happy with it.

See more
Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of Javalin
Pros of Ktor
  • 1
    Rich support of template engines
  • 1
    Does not require IDEA plugins
  • 5
    Simple & Small
  • 5
    Light weight
  • 4
    Kotlin native
  • 1
    High performance

Sign up to add or upvote prosMake informed product decisions

Cons of Javalin
Cons of Ktor
    Be the first to leave a con
    • 1
      Relatively fresh technology - not a lot of expertise

    Sign up to add or upvote consMake informed product decisions

    What is Javalin?

    Javalin started as a fork of the Spark framework but quickly turned into a ground-up rewrite influenced by express.js. Both of these web frameworks are inspired by the modern micro web framework grandfather: Sinatra, so if you’re coming from Ruby then Javalin shouldn’t feel too unfamiliar.

    What is Ktor?

    It is a framework for building asynchronous servers and clients in connected systems using the Kotlin programming language.

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

    What companies use Javalin?
    What companies use Ktor?
    See which teams inside your own company are using Javalin or Ktor.
    Sign up for Private StackShareLearn More

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

    What tools integrate with Javalin?
    What tools integrate with Ktor?

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

    What are some alternatives to Javalin and Ktor?
    Apache Spark
    Spark is a fast and general processing engine compatible with Hadoop data. It can run in Hadoop clusters through YARN or Spark's standalone mode, and it can process data in HDFS, HBase, Cassandra, Hive, and any Hadoop InputFormat. It is designed to perform both batch processing (similar to MapReduce) and new workloads like streaming, interactive queries, and machine learning.
    Spring Boot
    Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run". We take an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss. Most Spring Boot applications need very little Spring configuration.
    ExpressJS
    Express is a minimal and flexible node.js web application framework, providing a robust set of features for building single and multi-page, and hybrid web applications.
    Flask
    Flask is intended for getting started very quickly and was developed with best intentions in mind.
    Django REST framework
    It is a powerful and flexible toolkit that makes it easy to build Web APIs.
    See all alternatives