How to run meteor app on two or more Heroku speakers?
I have a Meteor app that runs on Heroku platform using 1 dyno. When I increase the speaker count it stops working, reporting some XHR (ERROR 404) issues on the client side.
Does anyone successfully run the Meteor app on two or more Heroku speakers? If so, what should I do to make it work?
No, unfortunately Meteor does not run on Heroku with multiple speakers. Meteor requires session proximity, which Heroku does not currently offer.
Meteor Requires Session Proximity: Launching a Meteor in a Cluster and Changes in Real Time
Heroku doesn't support session affinity: https://devcenter.heroku.com/articles/intro-for-java-developers
If you want a SaaS hosting provider to support Meteor and scale to multiple speakers using a similar session, there is now a CloudBees buildback that looks promising:
https://github.com/CloudBees-community/meteor-clickstart
Heroku now maintains session proximity, allowing it to work with Meteor. It's in labs at the time of writing this, so you need to enable it.
https://devcenter.heroku.com/articles/session-affinity
Okay, session affinity (or something similar) seems to be on the roadmap, at least. Thus, the developers expect this issue to be resolved by the time 1.0 is released.
https://trello.com/board/meteor-roadmap/508721606e02bb9d570016ae