sci 2022-05-30

Are there examples of running Lambdas using SCI to improve Clojure cold starts?

[ outside of bb / nbb of course ]

I don't know of any

but what do you think of the theory?

what is the theory, can you be more explicit?

I want to do something with kSQLDB and I'm not sure it will work with bb though that could be my ignorance

Then why don't you use that from nbb?

they don't have JS clients

I see, now I understand your question

it might work with bb ... I was being lazy tbh

So what most people do is I think in this case to reduce cold starts, build a bespoke graalvm binary, or maybe a fork of babashka with ksqldb support. Or make a ksqldb pod.

That you can use from babashka

I'll check that out ... they also have a REST API which I could use from nbb but it's not as convenient

OK, to summarize: • Bespoke graalvm binary (can be tricky, if you want me to help on a commercial project, I can do some consultancy perhaps) • Pod (will make ksqldb work with any version of bb, more re-usable for anyone if you make it open source) • Add feature flag to bb • Nbb + REST

I think the POD idea works and let's see if some consultancy is needed to make it work. Open sourcing should be doable as they have other open source around Kafka here (Jackdaw is the most famous)

Do you normally use a jdbc driver for ksqldb?

If it only talks via jdbc, it might be less work and only an addition to sql-pods

Hmm, but they do have a JDBC driver as well I read

my guess is that it is less powerful and I don't want to start with a lower powered option