Akka is a library written in Scala that simplifies writing fault-tolerant, highly scalable Java and Scala Actor model applications. It has been successfully used in the telecommunications industry. The system will hardly go down (high availability 99.9999999 per year only for Ms Downtime.)Calculate the pi with Akka and calculate the formula:In this way, we divide this formula into a section of each successi
includes Spark, Mesos, Akka, Cassandra, and Kafka, with the following features:
Contains lightweight toolkits that are widely used in big data processing scenarios
Powerful community support with open source software that is well-tested and widely used
Ensures scalability and data backup at low latency.
A unified cluster management platform to manage diverse, different load applications.
When deploying specific applications,
Akka send a message to the actor in the following way! Tell means "Fire-and-forget", that is, asynchronously sending a message without waiting for the result to be returned
? Ask asynchronously sends a message and returns a future that represents a possible reply.
Messages are ordered on a per-sender basis. MailBox
The Akka mailbox contains messages destined for the actor. Usually each actor has its own mai
Build Akka development on IntelliJ idea.Reason for using idea: there is no need to spend time learning to configure; using idea will make it more natural and more intelligent.Support is better on MAVEN,SBT.Some of Maven's features are described, and Maven is much more used.Sample word Count code for a simple explanation.DT Big Data Dream Factory public account: Dt_spark.DT Big Data Dream Factory's public number is Dt_spark, every day will have big dat
Akka.net Current Roadmapakka.net is a community-driven port of the popular Java/scala framework Akka to. NET.
Subscribe to the Akka.net Dev Feed:https://twitter.com/akkadotnet (@AkkaDotNet)
Support Forum:https://groups.google.com/forum/#!forum/akkadotnet-user-list
Mail: [email protected]
Stack overflow:http://stackoverflow.com/questions/tagged/akka.net
Documentation and Resourcesakka.net Community Siteinstall akka.net via NuG
")}//#printer-actor//#main-class Object Akkaquickstart Extends App {import greeter._//Create the ' Helloakka ' actor system val System:actorsystem = Actorsystem ("Helloa Kka ")//#create-actors//Create the printer actor Val printer:actorref = System.actorof (Printer.props," Printerac Tor ")//Create the ' greeter ' actors val howdygreeter:actorref = System.actorof (Greeter.props (" Howdy ", printer), "Howdygreeter") val hellogreeter:actorref = System.actorof (Greeter.props ("Hello", printer), "He
What is Akka.
Akka usually refers to a distributed toolset, which is used to coordinate remote computing resources to do some work, and is an implementation of the actor concurrency model.
The origin of the actor.
A theoretical model of concurrent computing is proposed in this paper.
What is actor.
In the actor model, the actor is a concurrency primitive.
Actor and Message delivery
If multithreading r
Scala Beginner's intermediate-Advanced Classic (66th: Scala concurrent programming experience and its application in Spark source code) content introduction and video link2015-07-24DT Big Data Dream FactoryFrom tomorrow onwards, be a diligent person.Watch videos, videos, share videosDT Big Data Dream Factory-scala--Advanced Classic: 66th: The first experience of Scala concurrent programming and its application in spark source codeThis video illustrates the drawbacks of the Java language-based co
The specific error message is as follows:Error:scalac:missing or invalid dependency detected while loading class file ' Actorsystem.class '. Could not access term typesafe in package com,because it (or its dependencies) is missing. Check your build definition formissing or conflicting dependencies. (Re-run with '-ylog-classpath ' to see the problematic classpath.) A full rebuild could help if ' Actorsystem.class ' is compiled against an incompatible version of COM.In fact, I have added the
1.RPC: The simple point is that the communication between multithreading, we use Scala and Akka todayTo make it simple.Some simple contents of the RPC framework, a face including, heartbeat, Interval time,Registration and some questions,Pattern matching some things, although relatively simple, but belong to the small, perfectly formedThere are a total of four files in this:Master.scalaRemotemessage.scalaWorker.scalaWorkerinfo Master.scalaPackage Cn.w
For a, B, and C, the Akka is automatically executed sequentially by default, but for database operations we want to execute a few operations in order, and we need to use syntax to declareThere are two ways to declare a future relationship, the first is FlatMap, and the second is forImportScala.Concurrent.FutureImportScala.Concurrent.ExecutionContext.Implicits.GlobalImportScala.Concurrent.BlockingImportScala.Concurrent.Duration._DefF(Item: Int): Future
Download akka
Introduction
Akka is a library written in scala. It is used to simplify the compilation of fault tolerant and highly scalable Java and Scala actor model applications. It has been successfully applied in the telecom industry. The system almost never goes down (High Availability 99.9999999% a year only 31 MS down actor model is nothing new, it was proposed by Carl Hewitt in the 1970s s, the pu
Akka working with the future Functionally_map method Look at the code, Packagecom.usoft;importakka.dispatch.executioncontexts;importakka.dispatch.futures;import akka.dispatch.mapper;importakka.dispatch.oncomplete;importakka.dispatch.onfailure;import akka.dispatch.OnSuccess;importscala.concurrent.ExecutionContextExecutorService;import scala.concurrent.future;importjava.util.concurrent.callable;importjava.util.concurrent.executors;/ ***createdbyliyanxi
order to prevent a single acotr from occupying threads, Set the maximum number of messages that this ACOTR will be scheduled to execute
Detect-dispatcher {
# Dispatcher is the name of the event-based dispatcher
type = Dispatcher
# What kind of Ex Ecutionservice to use
executor = ' fork-join-executor '
# Configuration for the fork join Pool
fork-join-executor {
# Min number of threads to cap factor-based parallelism number to
parallelism-min = 2
# P Arallelism (Threads)
Akka has many advantages, such as high performance, high reliability, high concurrency, distributed, fault tolerant, extensible, event-driven, and not described. Different versions of the API vary widely, and this article runs on Scala 2.10.3 and Akka 2.3.2.
definition
Defining the actor is simple, inheriting akka.actor.Actor, and implementing the Receive method.
Class Hel
Actorsystem Jian Masteractor.Akka's actor is a tree-shaped structure that can be used to find actors that are distributed across multiple machines, as well as to inherit some of the configuration to sub-actors.The Masteractor is the receiving and forwarding side of the message.Actorsystem run out to shutdown.650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/73/0C/wKioL1Xy6jLg3na0AAHWtddXN6k639.jpg "title=" Akka_ Practice.png "alt=" Wkiol1xy6jlg3na0aahwtddxn6k639.jpg "/>DT Big Data Dream
, PostID) }} Bot generated data to the worker actor, pay attention to the Postregion method, it first from the Actorsystem to get Clustersharding collection (a actorsystem may have more than Shard), and then according to SH The ardname is positioned to the unique shard. Finally, the message sent to Postregin,postregin will be forwarded.The StartUp function of the Main methoddef startup (Ports:seq[string]): Unit = {ports foreach {port =//Override The configuration of the port val config
, if users according to the age of user classification simple classification-youth. Middle age, old age. The basic characteristics of measuring user purchasing ability are divided into the following five categories: time processing characteristics. Location processing characteristics, consumption processing characteristics. Commodity type processing characteristics and potential purchase characteristics; Abstract classes define multiple hook functions according to the computed dimension. Realize
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.