I'm developing a service using GAE for android clients and need to refresh application data on a regular basis, say once a minute.
In terms of architecture, this is how the application works:
- User launches app and retrieves market data from service running on GAE
- The GAE service itself calls an external web service to retrieve market data, filters results and sends for user display
- The market prices should get updated once a minute
I know GAE offers cron jobs for automated scheduled tasks, but from what I understood it's not suitable for such high frequency tasks (or not even supported)
What's the best practice/tools I can use for this use case?
Also, is it recommended to update data in the background regardless of application being open? Or just update as soon as the user launches?
[EDIT] I would also like to know if pulling data every minute is the right approach, or should the service push instead?
Thank you in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…