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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:56:25+00:00 2026-06-11T13:56:25+00:00

I am building a system of clustered computers with several nodes. there is a

  • 0

I am building a system of clustered computers with several nodes. there is a master node that is suppose to schedule task to several nodes in the cluster. the nodes are separate PCs that are connected to the master node via network cables. the whole system is expected to be implemented with java akka and play framework platform.
is there a way to implement this with akka remote clustering with play framework.

I am aware of the remote calculator tutorials but it seems to be runned with the SBT platform
but I will love to know if a similar tutorials exist with the play framework.

Or any link to help me with my project

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-11T13:56:27+00:00Added an answer on June 11, 2026 at 1:56 pm

    An instance of Play! framework application can connect to a remote Akka node (i.e: your master node) using a simple configuration.

    There are two ways:

    1. override the default actor system
    2. define a new actor system

    I suggest you to use the second one.
    In this case you have to add in application.conf something like

    master {
        akka {
            actor {
                provider = "akka.remote.RemoteActorRefProvider"
            }
            remote {
                transport = "akka.remote.netty.NettyRemoteTransport"
                netty {
                    hostname = "your-master-host-name"
                    port = 0
                }
            }
        }
    }
    

    Then in your Play! app you can connect to te remote master node in this way

     ActorSystem system = ActorSystem.create("master", ConfigFactory.load().getConfig("master"))
    
     ActorRef master = system.actorFor("akka://master@your-master-host-name:your-master-port/user/master")
    

    If you prefer to override de default Play Akka actor system. Here is the reference configuration: http://www.playframework.org/documentation/2.0.3/AkkaCore

    For the master and computational cluster nodes I suggest you to use the architecture and the code described here: http://letitcrash.com/post/29044669086/balancing-workload-across-nodes-with-akka-2

    If your master and computational nodes does not required a web or REST interface you can implement them as simple Java program.

    In the cited article the node are not exposed remotely. To do that just add an application.conf in master node app:

    master {
        akka {
            actor {
                provider = "akka.remote.RemoteActorRefProvider"
            }
            remote {
                transport = "akka.remote.netty.NettyRemoteTransport"
                netty {
                    hostname = "your-master-host-name"
                    port = your-master-port
                }
            }
        }
    }
    

    And instantiate it in with actorOf method

    ActorSystem system = ActorSystem.create("master", ConfigFactory.load().getConfig("master"))
    
    ActorRef master = system.actorOf(new Props(Master.class), "master")
    

    The computational nodes must be configured in the same way of Play! node.

    Notice that only master node has a TCP-IP port defined. Non-master nodes use 0 port, which configure Akka to choose a random free port for them. This is correct because the only well-known host:port address you need is the master one, where every nodes, when its startup, has to point to.

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

Sidebar

Related Questions

I'm building a system in Node.js that is supposed to find all files in
I'm building a system that works with web clients (Django) and remote APIs (probably
I'm building a system that will create a tournament based on a list of
I'm building a plugin system for my application. I've read that anyone can decomple
I'm designing/building a system of classes that all derive from a single base class.
I'm building a system using django, Sphinx and MySQL that's very quickly becoming quite
I am building a system that stores articles and tags that categorize the article.
I am building a training system in Asp.net coded in C# that will allow
I'm building a system of apps that listen for files dumped into a folder
I'm building a system that need to collect some user sensitive data via secured

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.