https://kotlinlang.org logo
#kotless
Title
# kotless
a

aleksey.tomin

11/20/2020, 8:54 AM
The simplest example (https://hadihariri.com/2020/05/12/from-zero-to-lamda-with-kotless/) has size 12..18mb (kotless/ktor/spring) I try to use ktor (it don’t use reflection). Some from the biggest jars into the zip:
Copy code
-rw-r--r--  1 atomin  staff   2.7M Aug 14 10:48 kotlin-reflect-1.3.72.jar
-rw-r--r--  1 atomin  staff   2.3M Sep 10 11:44 guava-20.0.jar
-rw-r--r--  1 atomin  staff   1.1M Aug 24 11:19 jackson-databind-2.6.7.3.jar
-rw-r--r--  1 atomin  staff   756K Aug 24 11:19 httpclient-4.5.9.jar
-rw-r--r--  1 atomin  staff   718K Oct 13 17:26 javassist-3.21.0-GA.jar
-rw-r--r--  1 atomin  staff   607K Aug 24 11:19 joda-time-2.8.1.jar
Why it’s needed?
d

dave

11/20/2020, 9:03 AM
guava is a bit of an outlier there... I'd question the need for it with all the stuff provided by the Kotlin StdLib
a

aleksey.tomin

11/20/2020, 10:28 AM
And
kotlin-reflect-1.3.72.jar
?
t

TanVD

11/20/2020, 10:48 AM
Do you use Kotless DSL? Guava and reflekt are necessary due to use of Reflections library
We are working on other approach for reflection in Kotless DSL 🙂
But it probably would take some time
a

aleksey.tomin

11/20/2020, 10:52 AM
I try to create three app - kotless/ktor/sring. I think ktor can works without reflect but reflect in the result.
t

TanVD

11/23/2020, 10:53 AM
Hm, probably it is a bug -- I'll remove it 🙂
a

aleksey.tomin

11/23/2020, 11:17 AM
Thanks! And one question from my colleague. Why do we need
Event bridge
?
t

TanVD

11/26/2020, 1:35 PM
Hm, where did you found it?)
a

aleksey.tomin

11/26/2020, 4:58 PM
In AWS UI
Lambda -> Functions -> say-hello
t

TanVD

11/26/2020, 5:40 PM
It is used for auto-warming of lambda 🙂
a

aleksey.tomin

11/27/2020, 7:17 AM
Thank you!
2 Views