11

I have a service I'm hosting on Heroku right now, and I'm using the mLab add-on to ensure that the deployed version is able to write to the database etc. What can I do now? I'm confused since I received this email:

The mLab team has chosen to discontinue this add-on. The mLab MongoDB add-on will be removed from all Heroku apps on November 10, 2020. We advise you to remove the mLab MongoDB add-on yourself before September 1, 2020 via the Dashboard or the CLI.

Anyone have any words of advice? Should I get off Heroku? In case this is easier with AWS (I've never used AWS before though).

D. SM
  • 13,584
  • 3
  • 12
  • 21
Karan Bhasin
  • 237
  • 3
  • 13
  • You can change to Mongo atlas free tier. You do not need a Heroku add-on to connect to Atlas. The Object Rocket (suggested by Heroku themselves, have a ridiculous paid plan for hobby project (min $46 a month)). – Jonas Praem Sep 29 '20 at 07:39

3 Answers3

4

Pretty straightforward comment above answered - "You do not need an addon to use Atlas. – D. SM 17 hours ago" So just go ahead with the Sandbox free tier.

Karan Bhasin
  • 237
  • 3
  • 13
  • Actually, it looks like the Atlas service also has a Free Tier, with 512MBs storage. They've also posted a migration guide for their Heroku add-on to Atlas, which I'm going to give a shot: https://docs.mlab.com/how-to-migrate-sandbox-heroku-addons-to-atlas/ – bryanus Jul 15 '20 at 18:03
  • 2
    Update: I was able to follow their migration guide (very complete and well done, btw) and connected to the free tier for Atlas and my Heroku app is up and running again! FWIW, I was using Heroku to run an errbit server for my Rails app. The only hiccup was obtaining the correct connection URI to connect to the new Atlas DB/cluster to enter into the Heroku config vars. You can get the URI from the 'Connect' button on the Atlas cluster, and inserting your password/dbname in the string. – bryanus Jul 15 '20 at 19:43
  • Exaclty, Im currently using mongodb Atlas with an API hosted in heroku using docker and work flawless. – BruneX Jan 09 '21 at 19:25
1

mLab isn't the only MongoDB game in town: the ObjectRocket for MongoDB addon looks like another easy option.

Alternatively, if you prefer, you could continue to use mLab, but not via an addon. You'd just have to point your application at your separately managed mLab database.

ChrisGPT was on strike
  • 127,765
  • 105
  • 273
  • 257
  • 3
    Is ObjectRocket free? The tiers I saw had the lowest cost one of 2GB 2 $46/mo – Karan Bhasin Jul 14 '20 at 12:52
  • I don't know. I've never used it. My point is that there are other options besides mLab, and just because they're pulling their addon doesn't mean you need to get off of Heroku. – ChrisGPT was on strike Jul 14 '20 at 12:53
  • I'm also looking for a free alternative that's compatible with Heroku, but one doesn't seem to exist. And there isn't a way to install mongoDB onto Heroku dyno directly either. Bummer. – bryanus Jul 15 '20 at 03:30
  • It's a $46/mo alternative, and the only addon alternative. Not an answer – Jonas Praem Sep 07 '20 at 08:12
  • @JonasPraem, this question isn't about a _free_ alternative. Just an alternative. I'm sure the old mLab add-on had paid plans as well. This is definitely an answer. – ChrisGPT was on strike Sep 07 '20 at 14:50
1

mLab was acquired by MongoDB, its users are encouraged and will eventually need to migrate to MongoDB Atlas.

There is no add-on required to use Atlas, and Atlas provides a free tier. I am unfamiliar with mLab costs but I imagine depending on usage Atlas may be cheaper or more expensive than mLab.

You can use other hosted MongoDB services as the other answer mentions. Due to MongoDB license change to SSPL the other services are now required to negotiate individual agreements with MongoDB Inc. to offer MongoDB database as a service. Some services (e.g. ObjectRocket) have done this and are offering current MongoDB versions (4.4 as of this writing); others haven't and are limited to 4.0 and earlier versions.

D. SM
  • 13,584
  • 3
  • 12
  • 21
  • ObjectRocket currently claims to support the latest version of MongoDB. Is that not the case? – Joe Jul 13 '20 at 02:01
  • Which version are they claiming to support and which version do you think is the latest one? – D. SM Jul 13 '20 at 02:31
  • They are claiming to support 4.2, I'm pretty sure that's still the latest version – Joe Jul 13 '20 at 04:43
  • Okay, I adjusted my wording a bit to be less categorical. – D. SM Jul 13 '20 at 04:46
  • So the situation is I am actually using MongoDB Atlas. I'm new to it too. I found Heroku to be a straightforward solution to hosting my website while still ensuring that my MongoDB database was connected and readable/writable. Is there a way other than an add-on through Heroku to connect to MongoDB that I'm not seeing? Thank you so much for your help. – Karan Bhasin Jul 14 '20 at 12:56
  • 1
    You do not need an addon to use Atlas. – D. SM Jul 14 '20 at 16:15