6 Dec
2013
6 Dec
'13
8:29 p.m.
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: 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. It looks the tool for the job. I'll try it in two weeks, when I'm back from holidays.