I'm deploying a Lift application on AWS Elastic Beanstalk, and I'm referencing Richard Dallaway's Lift Cookbook to help me get it right the first time. In there I see that I need "Session Stickiness" if I'm utilizing any of Lift's "state features"... While I think that means SessionVars, etc, I'd like to know if anyone can clarify what Richard meant by "state features". Any tips are appreciated. Thanks!
Joe
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Lift" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/liftweb/M-0DNnuae4w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to liftweb+u...@googlegroups.com.
Thanks Richard and Diego. We're utilizing a SessionVar which currently cannot cleanly recover from the DB as well as some comet, so I'm going to enable stickiness.Joe
On Wed, Mar 12, 2014 at 9:30 AM, Richard Dallaway <ric...@dallaway.com> wrote:
Yeah, I didn’t define it very well, partly because it’s a slippery concept. For a better discussion, see Simply Lift: http://simply.liftweb.net/index-Chapter-20.html
I was thinking about something local in the memory to one machine (or instance, or cell, or whatever terminology is used) that you don’t want to (or can’t) recreate on a request in the short term. So a SessionVar would usually count, as would comet and ajax and the SHtml.* methods you give a function too one way or another. I’m not aware of an exhaustive list.
For example, if I had a SessionVar[Box[Basket]] and I was running my application across > 1 machines, I’d want to use sticky session. Likewise, if I’m rendering links using a.link(“Click me”, () => thingClicked()), I’d need to use sticky sessions.Except :-) … if my SessionVar had a default that allowed it to recover state reliably, then I might not care. E.g., SessionVar[Box[basket](myRecoverFromDatabaseFunction).BTW, AWS changes from time to time, so if the cookbook is out of date, feel free to send a pull request. https://github.com/d6y/lift-cookbook/blob/master/11-Deployment.asciidoc (wow, when did GitHub start rendering Asciidoc so well?)Richard
On 12 Mar 2014 14:08:40, Joe Barnes <barn...@gmail.com> wrote:I'm deploying a Lift application on AWS Elastic Beanstalk, and I'm referencing Richard Dallaway's Lift Cookbook to help me get it right the first time. In there I see that I need "Session Stickiness" if I'm utilizing any of Lift's "state features"... While I think that means SessionVars, etc, I'd like to know if anyone can clarify what Richard meant by "state features". Any tips are appreciated. Thanks!--
Joe
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to a topic in the Google Groups "Lift" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/liftweb/M-0DNnuae4w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to liftweb+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to liftweb+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to a topic in the Google Groups "Lift" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/liftweb/M-0DNnuae4w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to liftweb+u...@googlegroups.com.
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.