Has anyone built something on Cloudflare Workers w...
# server
t
Has anyone built something on Cloudflare Workers with Kotlin? Any gotchas or anything I should look out for? 🙏
e
I did. Few gotchas, yeah, but overall it works well
Feel free to post any issues you have. I may be able to help
s
We found that using kotlin adds a massive delay (100-200 ms.) on ie. page rewriting so we had to ditch it
Its hard to debug workers (especially timing/performance as
Date()
is faked) but it seemed like it was just the initialization cost of the worker that had to be done for every request.
t
Auch. 100-200 ms is huge in the context of a Worker env
c
@spand Kotlin adds a 100-200ms delay compared to .... ?
s
Plain javascript
It takes time to load coroutines, stdlib and whatever it needs
I think our plain javascript implementation that just uses promises adds like 2 ms.
c
Ahh. I get it. It's Kotlin/JS
217 Views