[Dancer-users] do something after sending response

Brian E. Lozier brian at massassi.com
Thu Aug 11 19:00:37 CEST 2011

I think you're better off having another server-side process to do
this.  For example, your dancer app adds a row to an "email_queue"
table and then you have a cron job on the back end that looks for new
rows and sends out the emails.  This way it's decoupled from your
application code.  It's also easier to manage logs and notifications
when you're not doing it under a web server environment.

On Thu, Aug 11, 2011 at 9:54 AM, Nick Knutov <mail at knutov.com> wrote:
> Hello all,
> is it possible to run some code after sending response to upstream [and
> closing socket] with Dancer?
> For example: I want to get request, send response and after closing socket
> to back-end do some job with big timeouts: write logs, send notifications
> via emails, etc.
> --
> Best Regards,
> Nick Knutov
> http://knutov.com
> ICQ: 272873706
> Voice: +7-904-84-23-130
> _______________________________________________
> Dancer-users mailing list
> Dancer-users at perldancer.org
> http://www.backup-manager.org/cgi-bin/listinfo/dancer-users

More information about the Dancer-users mailing list