Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8810807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:12:29+00:00 2026-06-14T03:12:29+00:00

Play has been described as a ‘reactive’ framework, being useful for async programming. I’d

  • 0

Play has been described as a ‘reactive’ framework, being useful for async programming. I’d like to know more about play’s architecture, mainly:

  • Does it have an event loop?

  • Does it have many akka actor systems? are they backed by a number of thread pools?

  • If so how many thread pools are there and what are they objectives (routing, request handling, promise redeeming, anorm, etc.)

  • Which is the thread of execution we are ok to block (where can we make some expensive computation)? Which is the thread of execution we should never ever block?

Any resource/wiki/advice on this is really helpful. Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T03:12:30+00:00Added an answer on June 14, 2026 at 3:12 am

    Note: the following content holds for Play! 2.1.x. For Play! 2.0.4 see nico_ekito’s answer.

    The interactions with a client can be summarized by the following chart:

    Play!’s architecture

    Play’s HTTP handler (built on top of Netty) lives in its own execution context. When it receives a request, it tries to find the application’s entry point to call according to the URL (using the application’s conf/routes file). At this point, only the headers of the HTTP request are loaded in memory.

    Then, the entry point is called. It is usually an action, which loads the remaining body, if any. This happens in a different execution context, the Play! “user” execution context, defined as an Akka actor dispatcher that can be configured in the applications’s conf/application.conf file.

    Finally, inside an action you can perform asynchronous calls (e.g. to call a Web Service). All these asynchronous calls use Scala’s Future API, so they use the execution context available in the scope at the call site. So you can use the Play! “user” execution context (defined in play.api.libs.concurrent.Execution.defaultContext).

    In summary, Play! uses distinct execution contexts for the following tasks:

    • receive requests (Netty HTTP handler) ;
    • call actions (“user” execution context).

    And you are free to use whatever execution context you want for your asynchronous computations (including the Play! “user” execution context).

    The idea is that all user code uses by default the Play! “user” execution context. If you block it you won’t be able to run more user code but can continue doing everything else.

    If you’re doing expansive computations I suggest you to use a dedicated execution context.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anyone used Hazelcast (preferably 2.1) with play framework 2.0/2.1 (not 1.2+)? I am
Has anyone succeeded in using Squeryl's externalTransactionManagementAdapter with play framework 2.0?: object Global extends
I have a Play Framework (1.2.4) project with PlayMorphia that has two different database
I know this question has been asked quite a few times, however, I have
Ok, I have been thinking of developing a web application using the play framework
I know this has been asked a few times but please bear with me.
I've been looking into the Play! framework and I'm interested in converting one of
I would like my app to wake up after it has been updated using
Android Market has been renamed to Google Play. What, if any, consequences will the
I know there has been similar questions before, but I can't find a solution

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.