<div dir="ltr"><div><div><div><div><div>Wow !! The code in my first email worked, the bot IS shared between all REST calls.<br><br></div>I just needed to run<br>    plackup bin/<a href="http://app.pl" target="_blank">app.pl</a><br>

instead of <br>
    plackup -L Shotgun bin/<a href="http://app.pl" target="_blank">app.pl</a></div></div>It's the Shotgun option that made my <a href="http://app.pl" target="_blank">app.pl</a> be re-initialized each time.<br><br></div>

No need for a memcache, no need for workers, it just works! Dancer is my app online, with a state =)<br>
</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">--- Pierre Masci<br>I check email a couple times daily; to reach me sooner, you can send me a text message via this page: <a href="https://awayfind.com/mascip" target="_blank">https://awayfind.com/mascip</a><br>

</div></div>
<br><br><div class="gmail_quote">On 7 December 2013 11:13, sawyer x <span dir="ltr"><<a href="mailto:xsawyerx@gmail.com" target="_blank">xsawyerx@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div><div>It's the same thing, IMHO. It's a state.<br></div>Keeping it in Memcached, token in a cookie, external service, etc.<br></div>Whichever one you find comfortable is the best. :)<br></div><div class="gmail_extra">



<br><br><div class="gmail_quote"><div><div class="h5">On Fri, Dec 6, 2013 at 9:29 PM, Pierre M <span dir="ltr"><<a href="mailto:piemas25@gmail.com" target="_blank">piemas25@gmail.com</a>></span> wrote:<br></div></div>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">

<div dir="ltr">I'm not loving the idea of storing a 3rd party session token, it's a bit of a pain to pass it around and it's not really scalable. Caching the bot itself between each REST request works, but I came accross a possibly nicer idea: <div>





<br></div><div>My bot could be running in a Gearman worker, and I would give orders with a Geaman client. Possibly with Dancer::Plugin::GearmanXS, if I used Dancer instead of Dancer2.</div><div><br></div><div>It looks the tool for the job. I'll try it in two weeks, when I'm back from holidays.</div>





</div>
<br></div></div><div class="im">_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br></div></blockquote></div><br></div>
<br>_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br></blockquote></div><br></div>