@dave.dixon IIRC cloud functions only support a limited set of languages, but cloud run should be a good fit instead. I blogged about it some time ago https://hannuhartikainen.fi/blog/clojure-cloud-run/
Thanks @hannu.hartikainen. I was able to get the cloud function working with Clojure, though it required a small Java shim to work around some class loader stuff. But cloud run might actually be a better fit for our use case, going to give it a try as well.
Oh, ok. I seem to recall cloud functions only supported Node.js and Python back when I had more use for it, but they’ve added Java and Go since then. Would be great if you blogged about your shim, btw!
Of course Node.js+cljs is viable too for some use cases.
I started looking at CLJS, but got stuck because we require a different version of node than supported by Google. I'll write something up about the shim. This is at least the third time I've run into this classloader issue, so it will be good to document it.
https://sparkofreason.github.io/jvm-clojure-google-cloud-function/