Lift Web Framework

Lift allows you to execute multiple snippets in parallel during the rendering of a page. This allows you to fork off multiple long-running jobs (e.g., talking to an external ad server) and run them in parallel. All the jobs must complete before the final page render is sent back to the browser. The lift:parallel="true" attribute designates a snippet as parallel.

Exec inline:
This snippet evaluated on btpool0-96093
Exec parallel:
This snippet evaluated on pool-3-thread-24
Exec parallel:
This snippet evaluated on pool-3-thread-29
Exec inline:
This snippet evaluated on btpool0-96093

The Markup:

  <div>
    Exec parallel:
    <lift:Parallel  lift:parallel="true"/>
  </div>

The Scala Code:

object Parallel {
  def render = {
    <div>This snippet evaluated on 
    {
      Thread.currentThread.getName()
    } 
    </div>
  }
}

Lift is Copyright 2007-2010 WorldWide Conferencing, LLC. Distributed under an Apache 2.0 License.
Lift version 2.3 built on Tue Apr 05 13:24:00 PDT 2011.
Stats: Total Memory: 518,193,152 Free Memory: 469,970,888 Open Sessions: 138
Updated At: Sat Feb 04 09:42:52 PST 2012 Started At: Thu Jul 07 11:17:57 PDT 2011