Meteor Mastermind #3 — Hosting your APP | MongoDB Hosting | Analytics for Apps
- Hosting
- Hosting , if you can afford it Galaxy best solution
- Galaxy does not host your Database so you need a seperate solution for your database
- You can use services like Amazon, DigitalOcean and so on instead
- Recommendation from Serkan: https://www.phusionpassenger.com/ , use with NGINX
- Docs: https://www.phusionpassenger.com/library/
- Growth: run it on a bigger server not a small droplet so you can scale it up later
- Best on Phusionpassenger is that you can use more than 1 app to serve on the same server , just different virtual hosts in the config file.
- Email Hosting Example: https://postmarkapp.com/
- Rob added another solution with http://pm2.keymetrics.io/docs/usage/deployment/
- Automatic Load Balancing : http://pm2.keymetrics.io/docs/usage/cluster-mode/
- NGINX listens to Port 3000 and bring it to 80, as by default, HTTP uses port 80.
- MUP is maybe one of the fastest way to deploy your APP outside of Galaxy https://github.com/arunoda/meteor-up , Video https://www.youtube.com/watch?v=WLGdXtZMmiI
2. Mongo DB Configuration
- Cloud Provider best soultion as backup and robust compose.io but costs money
- If you dont have database background for administration better use a cloud pre-config instance
- Example Cloud Providers: https://bitnami.com/ , https://www.digitalocean.com/features/one-click-apps/mongodb/ , https://mongolab.com/
- Start learning MongoDB: https://university.mongodb.com/
- MUP Deployment does it for you automatically
- WiredTiger: https://www.mongodb.com/blog/post/whats-new-mongodb-30-part-3-performance-efficiency-gains-new-storage-architecture
Rob: we made some tests and found out that WiredTiger can be also slower
3. Shared MQTT Example by Lukas
- https://www.npmjs.com/package/mqtt#example
- Disable reactivity , https://forums.meteor.com/t/what-is-best-pattern-for-non-reactive-data/14867
Lukas will follow up on this topic I will then share the Post here.
4. Analytics for APPs:
- Huge Market you can use Google Analytics and so on
- Best Solution maybe is https://mixpanel.com/ , free for 25.000 Data Points , 1000 Profiles
- Yogiben has a Package for Mixpanel
- Meteor Tracker https://github.com/meteor/meteor/wiki/Tracker-Manual
See you next week!