sci

ray 2022-05-30T10:15:15.418979Z

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

ray 2022-05-30T10:15:35.480489Z

[ outside of bb / nbb of course ]

borkdude 2022-05-30T10:16:35.524199Z

I don't know of any

ray 2022-05-30T10:16:52.901799Z

but what do you think of the theory?

borkdude 2022-05-30T10:18:48.353049Z

what is the theory, can you be more explicit?

ray 2022-05-30T10:20:26.883089Z

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

borkdude 2022-05-30T10:20:54.640889Z

Then why don't you use that from nbb?

ray 2022-05-30T10:22:05.344829Z

they don't have JS clients

borkdude 2022-05-30T10:22:21.330289Z

I see, now I understand your question

ray 2022-05-30T10:22:36.920159Z

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

borkdude 2022-05-30T10:23:05.783049Z

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.

borkdude 2022-05-30T10:23:30.462289Z

E.g. for postgres, etc we have pods: https://github.com/babashka/babashka-sql-pods

borkdude 2022-05-30T10:23:34.002209Z

That you can use from babashka

ray 2022-05-30T10:24:39.949929Z

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

borkdude 2022-05-30T10:26:41.085979Z

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

ray 2022-05-30T10:30:27.449289Z

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)

borkdude 2022-05-30T10:31:53.749559Z

Do you normally use a jdbc driver for ksqldb?

borkdude 2022-05-30T10:33:18.504439Z

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

ray 2022-05-30T10:33:59.702039Z

it's not JDBC

borkdude 2022-05-30T10:34:53.500859Z

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

ray 2022-05-30T10:36:22.707619Z

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