Instead of making extra-large GWT app having all the functions at one place I would use 'mixed' approach.
'Mixed' means that we install different app features on different pages (yes, user would need to change page from time to time) and exchange data through server session storage.
This would give us several good points:
- Page is (oftenly) refreshed, thus freeing memory :)
- Not that much code to load/execute
- Ability to make more clean code (not so much intermodule communications)
- More structured and less complex code (no 'overhead for common'). That's the main, I believe.
- Ease of content rendering.
- It's not that sleek and smooth.
- Lots of requests to server. Additional files loaded (.cache, .nocache, all dependenices all the time. it's cached, yes, but anyway...)
- Weird compilation. Having 7 gwt compilations is even worthe than 1, I think. Though, can be well-automated with ant.
- Can not use anymore stateless server (so, not that easy clustering/performance scaling)
It's something that can be considered as 'good practice', and 'personal opinion'.
If I were starting large GWT project now, I'd design it as described here.
Btw, take a look at LinkedIn. :)
No comments:
Post a Comment