Economical servers & databases for Meteor apps?


#1

Hello, can you help by suggesting economical options for hosting my Meteor app and database?

I am new to deploying Meteor apps. What I am finding is a standard linux shared server will not work for Meteor apps, is that correct? When I have developed php and python applications I have simply used a linux shared server that costs US$10 a month to host and I used free open source databases that reside on the same server.

Current setup:

  • I currently have a prototype of my Meteor app hosted on Meteor’s Galaxy ‘server’. Current monthly costs are US$15/month (with only one visitor - myself - using the app).
  • From what I understand I cannot create/host a Mongodb database on Galaxy right?
  • So I have a mongodb database hosted with ScaleGrid (I have one month free)

What I’d love to know is options/hosts where I can host my Meteor app economically and desirably keep my Mongodb database on that same host for free. Does such a thing exist?


#2

AWS is probably one of the cheapest options, you can get burstable t3 instances for < $5 per month, you could host both meteor and mongo on the same machine if you don’t need high availability, redundency or performance


#3

Thanks for your advice @znewsham :slight_smile: I’ve had limited experience with AWS a couple of years ago.

  • I found it quite expensive (atleast compared to a linux shared server option). Am I correct or has it changed?
  • Will hosting both the files and the database really only cost < $5 a month?
  • If I get lots of users using the app will that number spike significantly?
  • Is it relatively easy to setup AWS for a Meteor app?
  • What do you use for your apps? AWS? :slight_smile:

#4

NodeChef provides hosting for apps of any sizes starting from as low as $9 for both Meteor and MongoDB database hosting


#5

It depends on your usage. A t3.nano costs $3.744 per month in us-west-2 region, in addition to that you’ll need an EBS hard disk, the size of this will be based primarily on how much data you use, but you need about 10GB with no data at all (OS, meteor, mongo binaries, etc). and it is 10c per GB per month - so right there you’re looking at another $1

You do get 1 year free (of upto 720 t2.micro hours per month), as well as 1 year free on a bunch of other services, though I’m not sure EBS is one of them.

Regarding user spikes - you get what you pay for, wherever you go. You take a cheap hosting option, you’re gonna get cheap servers. AWS burstable instances (t2’s and t3’s) are nice, because you get a guaranteed baseline CPU usage (it’s tiny, like 5% on the nanos) but you can burst to 100% based on the credits you’ve accumulated (how long the server has been running), you can also enable a flag called “unlimited” which will allow you to burst even if you run out of your credits - at which point you pay per credit, so its a nice failsafe. The downside is they have really low RAM

It’s relatively easy - I’d say comparable with setting it up on any other server, unless you’re talking about a dedicated service (e.g., galaxy).

We use AWS - we’re running 4 apps, with multiple load balanced servers each, and 3 mongo deployments


#6

If you are looking for free database, I would recommend using MongoDB Atlas. I’m using it for staging for my app and it is doable. It is easy then to quickly scale, though once you get there it is on par with costs of Galaxy, on the other hand, the profit goes to the creators of MongoDB which helps support further development.


#7

I think it all depends on your app requirement. I think for small meteor app a USD 5 Digital Ocean(DO) box is enough for everything – including Mongodb. which can be moved to USD 10 DO box as your app grows. The thing I like about DO is its simple pricing.


#8

I have a side project with a handful of concurrent users. It’s using Nginx, PM2, 2 Meteor instances and MongoDB on one machine with 2GB RAM, 50GB disk and 2 CPUs. It’s an older Scaleway dot com plan for one virtual machine. It means you have to take care yourself of installing the software you need, security hardening, backups and monitoring. So far it’s running 9 month without downtime, response times for methods and publications are usually around 100ms and it costs EUR 3.99 per month.


#9

$7/mo for heroku hobby (includes ssl) + $0/mo mongodb atlas :+1:


#10

I agree with @znewsham AWS has been working really well for me. A T3.nano or micro are fine to run smaller apps. I have a T3.micro running a customer facing site and mongo db that is used by several people daily with no issues, I store all my images on s3 its also really cheap and keeps the server load down.