# Ibm cloud functions and mongodb atlas

**URL:** <https://forum.serverless.com/t/ibm-cloud-functions-and-mongodb-atlas/12482>\
**Category:** Serverless Architectures\
**Tags:** openwhisk\
**Created:** [September 6, 2020, 3:54am UTC](https://forum.serverless.com/t/ibm-cloud-functions-and-mongodb-atlas/12482 "2020-09-06T03:54:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonee](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@jonee](https://forum.serverless.com/u/jonee)\
**Post date:** [September 6, 2020, 3:54am UTC](https://forum.serverless.com/t/ibm-cloud-functions-and-mongodb-atlas/12482/1 "2020-09-06T03:54:32Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![jonee](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@jonee](https://forum.serverless.com/u/jonee)\
**Post date:** [September 30, 2020, 4:04am UTC](https://forum.serverless.com/t/ibm-cloud-functions-and-mongodb-atlas/12482/2 "2020-09-30T04:04:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![beenmeckel](https://avatars.discourse-cdn.com/v4/letter/b/8dc957/32.png) [@beenmeckel](https://forum.serverless.com/u/beenmeckel)\
**Post date:** [March 9, 2021, 9:34pm UTC](https://forum.serverless.com/t/ibm-cloud-functions-and-mongodb-atlas/12482/3 "2021-03-09T21:34:51Z")

</div>

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](https://kodi.software/) [nox](https://nox.tips/) cons?

---

<div class="post-metadata">

**Author:** ![jonee](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@jonee](https://forum.serverless.com/u/jonee)\
**Post date:** [March 10, 2021, 1:25am UTC](https://forum.serverless.com/t/ibm-cloud-functions-and-mongodb-atlas/12482/4 "2021-03-10T01:25:40Z")

</div>

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.
