akka.net/docs/index.md

7.2 KiB
Исходник Ответственный История

documentType title tagline
index Akka.NET Documentation A straightforward approach to building distributed, high-scale applications in .NET

Try Akka.NET now!

Follow our tutorial and build your first Akka.NET application today.

Professionally Maintained and Supported by Petabridge

Petabridge, the Akka.NET Company.

Build powerful concurrent & distributed applications more easily.

Akka.NET is a toolkit and runtime for building highly concurrent, distributed, and fault tolerant event-driven applications on .NET & Mono.

This community-driven port brings C# & F# developers the capabilities of the original Akka framework in Java/Scala.

Learn about Akka for the JVM here.

        <div class="col-md-4 col-sm-6 col-xs-12">
            <h4><i class="fa fa-arrows-alt"></i> Simple Concurrency &amp; Distribution</h4>
            <p>Asynchronous and Distributed by design. High-level abstractions like Actors and FSM.</p>
        </div>

        <div class="col-md-4 col-sm-6 col-xs-12">
            <h4><i class="fa fa-flash"></i> High Performance</h4>
            <p>50 million msg/sec on a single machine. Small memory footprint; ~2.5 million actors per GB of heap.</p>
        </div>

        <div class="col-md-4 col-sm-6 col-xs-12">
            <h4><i class="fa fa-shield"></i> Resilient by Design</h4>
            <p>Write systems that self-heal. Remote and/or local supervisor hierarchies.</p>
        </div>


        <div class="col-md-4 col-sm-6 col-xs-12">
            <h4><i class="fa fa-th-large"></i> Elastic & Decentralized</h4>
            <p>Adaptive load balancing, routing, partitioning and configuration-driven remoting.</p>
        </div>

        <div class="col-md-4 col-sm-6 col-xs-12">
            <h4><i class="fa fa-plus-circle"></i> Extensible</h4>
            <p>Use Akka.NET Extensions to adapt Akka to fit your needs.</p>
        </div>

        <div class="col-md-4 col-sm-6 col-xs-12">
            <h4><i class="fa fa-exclamation"></i> Open Source </h4>
            <p>Akka.NET is released under the Apache 2 license</p>
        </div>

    </div>
    <!-- /FEATURED BOXES 3 -->

</div>


    <div class="row">
        <div class="col-md-6">

Actor Model

The Actor Model provides a higher level of abstraction for writing concurrent and distributed systems. It alleviates the developer from having to deal with explicit locking and thread management, making it easier to write correct concurrent and parallel systems.

Actors were defined in the 1973 paper by Carl Hewitt but have been popularized by the Erlang language, and used for example at Ericsson with great success to build highly concurrent and reliable telecom systems.

Read more

        <div class="col-md-6 text-center">

            <img class="img-responsive img-rounded appear-animation" data-animation="fadeIn" style="border:2px solid white;width:100%;border-radius:10px" src="/images/actor.png" alt="" />
        </div>
    </div>
    <div class="row">
        <div class="col-md-6">

Distributed by Default

Everything in Akka.NET is designed to work in a distributed setting: all interactions of actors use purely message passing and everything is asynchronous.

This effort has been undertaken to ensure that all functions are available equally when running within a single process or on a cluster of hundreds of machines. The key for enabling this is to go from remote to local by way of optimization instead of trying to go from local to remote by way of generalization. See this classic paper for a detailed discussion on why the second approach is bound to fail.

Read more

        <div class="col-md-6 text-center">
            <img class="img-responsive img-rounded appear-animation" data-animation="fadeIn" style="border:2px solid white;width:100%;border-radius:10px" src="/images/network.png" alt="" />
        </div>
    </div>
    <div class="row">
        <div class="col-md-6">

Supervision & monitoring

Actors form a tree with actors being parents to the actors they've created.

As a parent, the actor is responsible for handling its childrens failures (so-called supervision), forming a chain of responsibility, all the way to the top. When an actor crashes, its parent can either restart or stop it, or escalate the failure up the hierarchy of actors. This enables a clean set of semantics for managing failures in a concurrent, distributed system and allows for writing highly fault-tolerant systems that self-heal.

Read more

        <div class="col-md-6 text-center">
            <img class="img-responsive img-rounded appear-animation" data-animation="fadeIn" style="border:2px solid white;width:100%;border-radius:10px" src="/images/supervision.png" alt="" />
        </div>
    </div>
</div>