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 8734035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:45:53+00:00 2026-06-13T09:45:53+00:00

EDIT: One important thing I forgot mentioning: the actor creation described below depends on

  • 0

EDIT: One important thing I forgot mentioning: the actor creation described below depends on the data – sometimes few processing actors are required, and sometimes many.

One component I’m working on needs to create a number of actors (possibly, round-robin routed ones), that each get a rather large amount of messages to process. Each of those actors belongs to a “processing batch” which has a the same initialization parameters.

When I’m running this on the production machine with many messages, I quickly get a number of actor creation timeouts. I’m creating the actors directly with ActorSystem.actorOf().

What’s surprising me though is that all in all there aren’t that many actors being created I’d think (8 “processing sinks” with 5 round-robin routed actors would be 40 actors, which doesn’t seem very much).

I’m shutting down the actors once they’re not needed anymore by having another actor (which counts the amount of successes and failures that it gets via the “processing” actors) send them a PoisonPill so I’d think that they are all shut down correctly.

Am I perhaps doing something wrong here in the way that I am creating those actors, e.g. should I perhaps create them differently? Or would an appropriate strategy be to wait for some of the batches to be done before creating new actors?

  • 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-13T09:45:54+00:00Added an answer on June 13, 2026 at 9:45 am

    Since you did not specify which version you are using I’m assuming that you will be interested in reading this:

    http://doc.akka.io/docs/akka/2.0.3/scala/actors.html#Creating_Actors_with_default_constructor (especially the warning)

    Besides the technical argument, creating your actors at top level is not a good design, missing out on the fault handling benefits.

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

Sidebar

Related Questions

[edit] So I used one of the javascript tooltips suggested below. I got the
I have 2 customer views one for create and one for edit. I am
Is there any external library using which one can edit and save XML files
I am creating a login register page which contains two edit text boxes(one for
EDIT I'm looking for the actual one or two liner that does what the
Edit 4/4/12 I STILL HAVE ONE QUESTION: I solved my issue but it adds
edit: I completely rewrote the question as the original one didn't clearly explain my
I have following function in one Activity public void AppExit() { Editor edit =
On one of my packages, which was adapted from another using Save-As and edit,
how does one use code to do this: produce 15 random numbers [EDIT: from

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.