In google app engine, you can do routing at 2 places: in your app.yaml, you can send requests to url’s off to different scripts, and inside a script, when you work with wsgiApp, you can again do routing, and send different url’s off to different handlers. Is there an advantage of doing your routing in either of these places?
Share
Generally the best approach is to use
app.yamlfor ‘application level’ routing – defining paths for static content, utilities like mapreduce, and your main application – and doing the routing for your app from within a single request handler. This avoids the overhead of defining multiple request handlers for each part of your app, while still preserving isolation for distinct components such as external utilities.