Question: How to handle returning a large result set from database to users of a JavaEE web based application?
This question may have many answers but in the context of our project we came to the following simple solution after hours of discussion:
- Use stateless beans or similar to make the call scalable
- Use a variation of iterator pattern to limit the amount of data returned in each call
- Cache