I write here because came another intervention. So...
# ktor
i
I write here because came another intervention. Sorry but I do not get what you guys mean. I tried to run on the internet a research about 'Ktor vs Springs', or 'limit of Ktor' and what i get is that is a microframework ktor, that means that lacks some advanced features. But if becomes popular will come more and more libraries right? And for what concern legacy code, can be also integrated in existing Spring project with a different stack that communicates with Spring right?
a
Spring is made for large enterprise projects. In Spring you have out-of-the-box database connectivitiy, DI and some other features you need for your enterprise application. Ktor is rather lighweight and has minimal set of features. You would want it for custom application. You need to decide which case is yours. Spring also has first-class kotlin support now, but in Spring you will need to spend some time to learn Spring. Also Ktor is deffenitely your choice for multiplatform.
b
"But if becomes popular will come more and more libraries" You can leverage all of the existing popular java libraries, including spring. For example, you could have a ktor service and use "org.springframework.security" for encryption and decryption.
☝️ 1
m
Copy code
I use ktor and spring JdbcTemplate/NamedParameterJdbcTemplate, for example.
i
thank you guys what a community!
I think ktor will get more and more traction: 1) intelliJ smartness behind 2) no verbose 3) amazing increase in usage, as witnessed from the activity of this sub channel versus others 4) Marioled and Brendan above suggestions about interoperability and common libraries 5) db solution are easy to implement, in my pet project I installed for the first time postgreesql in minute 6) DI is not such an important feature if you use a class with injection and clean architecture
so the only challenge imo is legacy code, as world is based on spring mvc and boot