Akka

来自开放百科 - 灰狐
跳转到: 导航, 搜索

Akka:是一套构建基于 JVM 之上的高并发、分布式、容错、事件驱动应用的工具集和运行时,使用 JavaScala 编程语言,采用 Apache v2 许可协议。

Akka提供类似Erlang那样健壮的基于消息的计算,其高性能表现:50 million msg/sec on a single machine. Small memory footprint; ~2.5 million actors per GB of heap.

目录

简介

功能

理论

交互模式

Interaction Patterns

  • Fire and Forget(点火和忘记)
  • Request-Response(请求-响应)
  • Adapted Response(适配的响应)
  • Request-Response with ask between two actors(请求-响应,两个参与者之间有询问)
  • Request-Response with ask from outside an Actor(请求-响应,来自外部参与者的询问)
  • Generic response wrapper(通用响应包装器)
  • Ignoring replies(忽略回复)
  • Send Future result to self(给自己发送Future结果)
  • Per session child Actor(每会话子参与者)
  • General purpose response aggregator(通用目的响应聚合器)
  • Latency tail chopping(延迟尾部去掉)
  • Scheduling messages to self(将消息安排给自己)
  • Responding to a sharded actor(响应给一个共享参与者)

指南

项目

Akka ecosystem Akka community projects

Modules

  • akka-actor – Classic Actors, Typed Actors, IO Actor etc.
  • akka-agent – Agents, integrated with Scala STM
  • akka-camel – Apache Camel integration
  • akka-cluster – Cluster membership management, elastic routers.
  • akka-kernel – Akka microkernel for running a bare-bones mini application server
  • akka-osgi – base bundle for using Akka in OSGi containers, containing the akka-actor classes
  • akka-osgi-aries – Aries blueprint for provisioning actor systems
  • akka-remote – Remote Actors
  • akka-slf4j – SLF4J Logger (event bus listener)
  • akka-testkit – Toolkit for testing Actor systems
  • akka-zeromq – ZeroMQ integration

集群

用户

  • Paypal squbs
  • Apache Usergrid
  • BaasBox
  • "We're delivering the future of money to over 148 million people worldwide. Using Scala and Akka, we can rapidly develop, test, and deliver services that are reliable and performant at massive scale." - PayPal
  • Google: 1000 node Akka cluster on Google Compute Engine (GCE)

开发者

文档

图集

链接

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱