2014.8.12-akka and Actor Model distributed development environment learning Summary

Source: Internet
Author: User

I have been learning to use akka for a year. At present, I am still used to writing programs under akka in Java. For native Scala, there is still no time and interest to learn it. After all, learning a language requires interest and time.


Akka learning resources are not rich yet. I have read the official Programming Manual and the akka essenins. There are not many programs written by myself, but they are also put on GitHub. In addition, it takes a lot of time to compile and configure akka, upgrade versions, and deploy multiple servers to build an akka cluster. As required by the project, two Mac desktops and a ThinkPad t400 were re-deployed in the office last week to form an akka cluster distributed development environment.


There are two methods to compile the akka project:

First, use SBT. This is the method officially recommended by akka. You can use SBT to generate the javassse project and import it to eclipse for running. However, my compilation is done through the SBT command line. If you have a good method, please correct it.

SBT Installation Method reference: http://www.scala-sbt.org/download.html

How to Write a Scala file, build and run with SBT.
Http://www.scala-sbt.org/0.13/tutorial/Hello.html

Akka: http://akka.io/

Scala for Eclipse IDE Bundle: http://scala-ide.org/(this integrated development tool is also recommended, containing the akka actor and Scala library needed for compilation)


Second, Maven is used, which is used by akka essentials. I personally tried to compile the old projects of akka 2.0.5 and 2.1.2. I have verified most examples in this book. Therefore, if you want to compile the debugging program from start to end, try the maven Elipse plug-in.

Install MVNHttp://maven.apache.org/download.cgiThen follow the README installation steps.

Akka-essenessensource code https://github.com/write2munish/Akka-Essentials

Refer:

Maven practice (3) Build a Maven project in eclipse
Http://tangyanbo.iteye.com/blog/1503782



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.