Ibm cloud functions and mongodb atlas

I am wondering if anyone has managed to make their ibm cloud openwhisk functions connect to mongodb atlas as I do not see any example?

I am able to connect to my free tier cluster from my local development. My aws lambda (using golang) is able to connect as well.

Thanks!

I managed to figure it out. I am doing golang codes and it turns out I needed to compile / build the codes statically eg

env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags ‘-s -w -extldflags “-static”’ -o bin/email_validation email_validation/main.go`

I have shared my codes for anybody interested. It consists of Golang codes connecting to MongoDB with both AWS and OpenWhisk (IBM Cloud) supported.

We’re currently set up on compo se io, not necessarily “badly”, but it seems to lack a certain finesse. Has anyone used both and is able to comment on the differences or the pros and Kodi nox cons?

You want a comparison between mongodb in compose dot io compared to mongodb atlas? You can always try the free tier in Mongodb Atlas so you can compare. I have not tried compose and if it is a stable service for you then just stay. But I think it is a great way to support mongodb development by supporting mongodb the company.