Hi everyone! Is MVC a good pattern for ktor applications? Is there any other pattern recommended?
s
Sergey Bondari
08/13/2019, 6:08 PM
I’d say from my observations it is less natural for ktor. You need to do some scaffolding around to do classic controllers and domain services working transparently (unlike in Spring or Jersey where it is just required by the framework). Ktor promotes more simplistic functional design, which may or may not be appropriate, depending on the size and complexity of the project.
✔️ 1
✅ 2
➕ 1
v
Vinicius Araujo
08/15/2019, 1:57 PM
In fact it is a microservice, I'm searching for a modern and most suitable design pattern for kotlin-ktor-exposed ecosystem
s
Sergey Bondari
08/15/2019, 5:24 PM
If you want modern, go simple, functional and use ktor recommendations for testing.