Thanks for your input Adam. On Monday, May 23, 2016 at 7:03:32 PM UTC-4, Adam (Cloud Platform Support) wrote: > > It would depend if 'profile' and 'account' had any other kind of shared > local state between them. If they do not, it would make sense to factor > them out into separate modules for better scalability. You would need to do > this anyway if your end goal is to have them served from separate > subdomains (at least using the module routing facilities of App Engine). > > Often the best way to know what drawbacks will occur is to try it and see > what breaks. > > On Friday, May 20, 2016 at 5:07:23 PM UTC-4, victor noagbodji wrote: >> >> The documentation now defines modules as the way to structure a big >> project made of small parts. We have something similar structured the >> following way: >> >> app.yaml >> - url: /profile/* >> script: profile.app >> - url: /account/* >> script: account.app >> - url: /css >> mime_type: text/css >> static_dir: css >> ... >> >> account.py (has its own Webapp2 app instance) >> profile.py (has its own webapp2 app instance) >> ... >> >> css/ >> js/ >> >> Each part (account, profile, etc...) has its own webapp2 instance. I >> would like to get some comments/feedback on how I structured the project so >> far. There may be drawbacks that I haven't considered. >> >> Also, we are going to split the project in two. The two "sub-projects" >> need the same database layer. They will also reuse parts I assigned >> different webapp2 instances to. The only difference is that they will have >> their own endpoints and own static assets. The end goal is to have two >> separate custom domains. >> >> I don't know if I went the wrong path and should be using modules instead >> with the current code. Has anyone done anything similar or run into similar >> issue? Would like to know if we should switch to modules. >> >
-- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/68a01677-0ada-4701-8a27-c1b0e6744c92%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
