문제

I am new to apache + wsgi programming and I am trying to implement a "email notify" service.

In this service, users will register their email address and interesting game players' name, and web server will timely (for example every 6 hours) query the players' information, if some new matches happen, then send a email to the users who register their email for this player.

Very straight forward approach, but I don't know how to timely invoke the service to query certain informations... I tried to do some Google, but basically I don't even know who should response for this functionality, Apache? or some configuration of mod_wsgi?

Could anyone give me some help?

도움이 되었습니까?

해결책

Use a backend task queuing system like Celery and configure periodic tasks.

Do not try and do it as part of the web application.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top