josiah-wolf-oberholtzer / discograph

Social Graphing for the Discogs Database
MIT License
74 stars 11 forks source link

Use background tasks for relation graphing. #72

Open josiah-wolf-oberholtzer opened 9 years ago

josiah-wolf-oberholtzer commented 9 years ago

The multi-role relation grapher is more powerful, but also slow.

Use background tasks to calculate the graph. Store the graph status via a Redis key.

On request from a client, return a job status JSON response. The client can repeatedly poll the job status until the job completes, then access the complete JSON response.