> > 1. If I have to create all the web services as a separate heroku apps, > how would I share the database instance between the more than one > services or apps like admin tools or crons? >
While sharing a database between apps isn't officially supported, you could have a way to expose an app's ENV['DATABASE_URL'] to other apps. This URL may change periodicially, so you'd want to make sure you had a way to reacquire the new one rather than hardcoding it. Another way to accomplish similar functionality is to expose the data you need as an API that is consumed by the other apps in your architecture. 2. If the consumer facing web-app needs to call other services within > the cloud to fulfill the request, do I have to use public address (may > be using CNAME or whatever) or can I have it route it within the > cloud? > Requests would need to be made to the public address (via the domain name) as the hostname is what routes a request to a given site. Hope this helps! David -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
