GithubHelp home page GithubHelp logo

whitepoplar022 / orleans Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dotnet/orleans

0.0 2.0 0.0 41.68 MB

Orleans - Distributed Virtual Actor Model

Home Page: http://dotnet.github.io/orleans

License: MIT License

Batchfile 0.26% HTML 3.68% PowerShell 2.26% Groovy 0.02% C# 92.62% F# 0.06% Smalltalk 0.02% PLpgSQL 0.68% Visual Basic 0.36% GLSL 0.01% Protocol Buffer 0.03%

orleans's Introduction

Orleans - Distributed Actor Model

Orleans logo

Build status NuGet Issue Stats Issue Stats

Gitter

![Help Wanted Issues](https://badge.waffle.io/dotnet/orleans.svg?label=up-for-grabs&title=Help Wanted Issues)

Orleans is a framework that provides a straight-forward approach to building distributed high-scale computing applications, without the need to learn and apply complex concurrency or other scaling patterns.

It was created by Microsoft Research implementing the Virtual Actor Model and designed for use in the cloud.

Orleans has been used extensively running in Microsoft Azure by several Microsoft product groups, most notably by 343 Industries as a platform for all of Halo 4 and Halo 5 cloud services, as well as by a number of other projects and companies.

Installation

Installation is performed via NuGet. There are several packages, one for each different project type (interfaces, grains, silo, and client).

In the grain interfaces project:

PM> Install-Package Microsoft.Orleans.Templates.Interfaces

In the grain implementations project:

PM> Install-Package Microsoft.Orleans.Templates.Grains

In the server (silo) project:

PM> Install-Package Microsoft.Orleans.Server

In the client project:

PM> Install-Package Microsoft.Orleans.Client

Official Builds

The stable production-quality release is located here.

The latest clean development branch build from CI is located: here

Building From Source

Clone the sources from the GitHub repo

Run run the Build.cmd script to build the binaries locally, then reference the required NuGet packages from Binaries\NuGet.Packages\*.

Documentation

Documentation is located here

Code Examples

Create an interface for your grain:

public interface IHello : Orleans.IGrainWithIntegerKey
{
  Task<string> SayHello(string greeting);
}

Provide an implementation of that interface:

public class HelloGrain : Orleans.Grain, IHello
{
  Task<string> SayHello(string greeting)
  {
    return Task.FromResult($"You said: '{greeting}', I say: Hello!");
  }
}

Call the grain from your Web service (or anywhere else):

// Get a reference to the IHello grain with id '0'.
var friend = GrainClient.GrainFactory.GetGrain<IHello>(0);

// Send a greeting to the grain and await the response.
Console.WriteLine(await friend.SayHello("Good morning, my friend!"));

Community

License

This project is licensed under the MIT license.

Quick Links

orleans's People

Contributors

gabikliot avatar sergeybykov avatar jthelin avatar jason-bragg avatar jdom avatar dvakulen avatar reubenbond avatar shayhatsor avatar veikkoeeva avatar jkonecki avatar cata avatar attilah avatar carlm-ms avatar richorama avatar ningnad avatar pherbel avatar galvesribeiro avatar kucheruk avatar davidpodhola avatar yevhen avatar mmitche avatar michaelahern avatar zerhacken avatar sebastianburckhardt avatar repne avatar onionhammer avatar zcarson avatar lnaie avatar liversage avatar brinkrob avatar

Watchers

James Cloos avatar 记忆者 avatar

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.