Code Monkey home page Code Monkey logo

akka-demo's Introduction

Akka-demo

Akka的学习 简单实用地址 https://blog.csdn.net/liubenlong007/article/details/54093889

Akka提供可扩展的实时事务处理。
Akka是一个运行时与编程模型一致的系统,为以下目标设计:
垂直扩展(并发)
水平扩展(远程调用)
高容错

特点

Akka的核心,Akka-actor是非常小的,可以非常方便地放进你的应用中,
提供你需要的异步无锁并行功能,不会有任何困扰。

优点

AKKA提供一种Actor并发模型,其粒度比线程小很多,这意味着你可以在项目
中使用大量的Actor
Akka提供了一套容错机制,允许在Actor出错时进行一些恢复或者重置操作
AKKA不仅可以在单机上构建高并发程序,也可以在网络中构建分布式程序,
并提供位置透明的Actor定位服务 

Actor

actorakka执行的基本单元,比线程更轻量级,使用akka可以忘掉线程了。
事实上,线程调度已经被akka封装。
这个akka应用是有消息驱动的,消息是除了actor之外最重要的核心组件。
actor之前投递消息应该满足不可变性,也就是不便模式
消息投递有3种策略:之多一次投递,至少一次投递,精确的消息投递。
BUT ,没必要在akka层面保证消息的可靠性,一般在业务层在保证

模块使用

!	发送异步消息,没有返回值。
!?	发送同步消息,等待返回值。
!!	发送异步消息,返回值是 Future[Any]。

akka-demo's People

Contributors

lprodreamall avatar

Stargazers

 avatar  avatar  avatar

Forkers

pandazzzzzzz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.