diff_months: 11

Scaling Out With Actors Assignment

Download Solution Now
Added on: 2023-06-14 08:59:22
Order Code: //fb
Question Task Id: 0
  • Country :

    Australia

The goal of this assignment is to explore the scale-out capacity of actors running on multiple hosts.

Prerequisites

  1. To complete this assignment, you need two hosts. They don't have to be of the same operating system but both must have compatible JVMs.
  2. The hosts must have the ability to open ports outside the well-known range, 0-1024. For purposes of this assignment, call these hosts, HOSTA and HOSTB.
  3. Read the Scala style guide here.

Background

A case class differs from a regular class in that it does not require a new operation to instantiate it. Case classes also permit Scala to do switch-like case pattern matching on arbitrary objects using the match function. (The match function in Scala is, indeed, like switch in other languages except it is more general.)

A case class, like regular classes, must extend Serializable if it's going to be persisted in secondary storage or transmitted between JVMs and/or hosts. Forgetting to extend Serializable in these cases results in a serialization exception. These are the reasons Y is a serializable case class in the figure below and receive, an actor method, needs a match to retrieve a Y instance from its mailbox.

Study the attached code which implements the sequence diagram in the figure below.

remote-1686732942.jpg

Figure 1. Message passing using remote actors.

Tasks

Part 1-Setup the project on HOSTA

  1. Launch IntelliJ and create a new Scala project, 679-project. If you don't recall how to do this, see Lab 3 for instructions.
  2. Create a ParaScale artifact as follows
    1. Open the ParaScale project > File> Project Structure> Artifacts and under the rightmost panel under "Available Elements, right-click on ParaScale2' compile output > Put into Output Root and click OK. (If the compile output is already in the left column, skip this step.)
    2. Do Build Build Artifacts> Build artifact > parascale > Build

Are you struggling to keep up with the demands of your academic journey? Don't worry, we've got your back! Exam Question Bank is your trusted partner in achieving academic excellence for all kind of technical and non-technical subjects.

Our comprehensive range of academic services is designed to cater to students at every level. Whether you're a high school student, a college undergraduate, or pursuing advanced studies, we have the expertise and resources to support you.

To connect with expert and ask your query click here Exam Question Bank

  • Uploaded By : Katthy Wills
  • Posted on : June 14th, 2023
  • Downloads : 0
  • Views : 126

Download Solution Now

Can't find what you're looking for?

Whatsapp Tap to ChatGet instant assistance

Choose a Plan

Premium

80 USD
  • All in Gold, plus:
  • 30-minute live one-to-one session with an expert
    • Understanding Marking Rubric
    • Understanding task requirements
    • Structuring & Formatting
    • Referencing & Citing
Most
Popular

Gold

30 50 USD
  • Get the Full Used Solution
    (Solution is already submitted and 100% plagiarised.
    Can only be used for reference purposes)
Save 33%

Silver

20 USD
  • Journals
  • Peer-Reviewed Articles
  • Books
  • Various other Data Sources – ProQuest, Informit, Scopus, Academic Search Complete, EBSCO, Exerpta Medica Database, and more