Definitions:
old way = php api
new way = nodejs json route
We want to have a way to sample based on server config so this doesn't depend on app version. We should also plan on having some sort of automatic fail-over mechanism in the clients, so that if the new way doesn't work the client would fall back to the old way for the subsequent requests. Ideally we would do this seamlessly for the user. But if it may require the user to reload a page that might be acceptable IMO if it makes our code much simpler.
- Read server config
- Sample using new route based on config value (initially not for production app)
- Automatically fallback to old way if the new way fails