On Thu, Jan 6, 2011 at 8:17 PM, Jeremy Evans <[email protected]> wrote:
> Just note that you need to be careful doing that, as it has problems
> unless your actions are idempotent.  Example:
>
> �...@app = Proc{|e| DB[:a].insert(:b=>params[:c]); DB[:d].first}
>
> If the second query fails with a disconnect error, you'll end up
> inserting into table a twice (or more).
>
> Jeremy

Absolutely, but for most HTTP(S) applications, the exact same issue
can occur if a web browser's TCP connection aborts or hangs and the
HTTP request gets repeated, so a restart wrapper in such cases is
usually not a problem as the app design must account for such things
already.

Aaron out.

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to