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

The Archive Base Latest Questions

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

I am looking to build an Akka-based application in the cloud, for a garage

  • 0

I am looking to build an Akka-based application in the cloud, for a garage startup that I’m bootstrapping; by the nature of the app, it’s semi-stateful, with as much as possible cached in RAM for performance. (It’ll be tolerant of being shut down and restarted periodically, but we want to mostly operate via cached information inside the Actors.)

The architecture is designed for a cluster of servers, communicating between them as necessary so that a user session on node A can query a middleware Actor on node B when appropriate. So my question is, how hard is that in CloudBees?

My understand from this page is that there is no automatic directory service to manage this sort of intra-cluster communication yet, but I can probably live with that — worse comes to worst, I should be able to manage discovery via the DB, with each node registering itself when it comes up and opening up many-to-many communications with the others.

What I want to check, though, is that this communication is straightforward. Does each node have a reliable local IP that it can advertise for others to contact it on, that is at least stable during this run of the application? Or is there another/better way for a node to advertise its address to the rest of the nodes running this app?

(I assume that the nodes of an app all share the same DB instance.)

Any guidance here would be greatly appreciated. I’d like to choose a hosting provider soon, and keep returning to CloudBees as the most promising-looking of the options…

  • 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-13T22:45:32+00:00Added an answer on June 13, 2026 at 10:45 pm

    There are no limitations currently on instances communicating with each other – the trick is in discovering membership. There is an api that will be shortly be released that will allow you to track membership – but for now, the following may work:

    • To get the port, look at the file names in $PWD/.genapp/ports (as applications can have multiple ports) – (eg System.getenv(“PWD”) + “.genapp/ports” – list the files in that directory – generally will be just 1 – the file name is the port). There are other ways – for example the “sun.java.command” system property on JVM apps too.
    • The hostname can be obtained via the usual means (eg InetAddress.getLocalHost().getHostName()): this host
      name will be the private name – ie it will resolve to a private IP –
      good for node to node communication.
    • Public IP/hostname: perform a HTTP get (from the server) to the following URL:
      http://instance-data/latest/meta-data/public-hostname (will only
      return the public IP on the server side of course).

    (see http://developer-blog.cloudbees.com/2012/11/finding-port-or-address-of-your.html)

    You can then, as you say, on startup, register the appropriate port/private hostname with a DB, and then read that on each node to “seed” the cluster (akka doesn’t have to know about all members – just enough seeds) I would think a 2 phase startup: 1: register host/port, 2, look for other members, add them as seed members to the local Akka configuration (may need to periodically do the same for a while, as other nodes startup – to ensure it is seeded enough)

    From my reading of Akka setup here: http://doc.akka.io/docs/akka/snapshot/scala/remoting.html

    It looks like you can specify the port – so if possible, I would set that to be the app_port environment variable – that means each node can communicate via the private hostname with that port. However, http traffic will also be routed to it – can akka handle this as well – or does it need to have a discrete port for akka and another for any http interface?

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

Sidebar

Related Questions

I'm looking to build a messaging system that handles conversation much like how Facebook
I'm looking to build an application that will rely on adding menu extensions to
I am looking to build an app to be used on smartphones that can
I am looking to build a contacts list style application that saves contact information
I'm looking to build an Android app(for learning) that searches for music files in
I'm looking to build a simple application that allows the visualization of graphs on
I am looking to build software that has an Iphone application as well as
I am looking to build an application that has a couple different modes. The
I'm looking to build a Silverlight application and want to display a Tag Cloud
I'm looking to build a downloader application that downloads files from file-hosting services. What

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.