TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Is Ktor a good back end framework to learn?

3 pointsby nassimsoftwareover 3 years ago
How does it compare to FastAPI, Express and Gin Gonic (Golang)? My goal is to make a REST API that a React Frontend will consume.<p>Also, I already know Python, JavaScript, a bit of Go and Kotlin.

2 comments

slivelyover 3 years ago
We use it as a rest api framework for a react front end and it’s just fine. Performance is not really and issue for us so far. If you like express you will like Ktor, but you will find less libraries for middleware stuff. Exposed is also pretty nice as a JDBC wrapper and object mapper. If you like composing libraries over using a framework then it’s a good choice. If you are invested in coroutines like us Ktor is great, but Exposed isn’t really async all the way through and you’d want something like r2dbc ideally. Exposed has a wrapper for coroutines though.<p>Clikt is a nice config parser as well, and Koin is fine for DI. Jackson has good Kotlin support, and I haven’t tried the Kotlin serialization package yet but it looks interesting.<p>These days i prefer some of the library stitching done for me and would probably opt for spring boot and webflux which has nice Kotlin and coroutine support now.
armchairhackerover 3 years ago
I can’t speak for other apis but i’ve used Ktor and I thought it was good. JetBrains is invested in it, there are a lot of docs and even a compiler plugin &#x2F; website to generate starter code.<p>Generally I recommend using Ktor if you’re familiar with Kotlin or want to use Kotlin for some reason. Elixir or Go might be easier for a beginner, but if you have to learn a new language &#x2F; paradigm this difference cancels out.
评论 #28812236 未加载