• Stars
    star
    546
  • Rank 81,396 (Top 2 %)
  • Language
    C#
  • License
    Apache License 2.0
  • Created almost 10 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Akka.NET professional reference code samples

Akka.NET Code Samples

Akka.NET is a radically different way of developing concurrent and networked applications in .NET, and so it's important to have a number of high quality reference applications developers can explore in order to better understand how to design and model software using Actors and Akka.NET.

The goals of this repository are to provide users with shovel-ready Akka.NET samples that follow "Pit of Success" paradigms for the following areas:

  • Akka.NET features: Persistence, Clustering, and Streams;
  • Integrating Akka.NET with other popular technologies: RabbitMQ, Apache Kafka, and more; and
  • Deploying Akka.NET into popular and common deployment environments: Kubernetes, Azure, AWS, and more.

These samples aren't designed to teach how to model complex domains using actors - they are pimarily designed to demosntrate copy-and-pasteable approaches to running AKka.NET infrastructure correctly and succinctly.

Current Samples:

  1. Akka.NET Cluster.Sharding with Akka.Persistence.SqlServer and Razor Pages
  2. Akka.Streams.Amqp.RabbitMQ with Akka.Cluster.Sharding - Reliable Delivery + Backpressure Support

Contributing

We accept pull requests for new samples or changes to existing ones, but we maintain a strict quality standard;

  1. All samples should be framed as self-hosted services and should rely on https://github.com/akkadotnet/Akka.Hosting for management of the ActorSystem;
  2. Samples that require multiple nodes to operate should, ideally, be run inside of Kubernetes or docker compose ;
  3. Each sample needs a complete README.md that explains what the sample does, what a user needs to run it, and a what types of steps they need to execute it;
  4. If a sample requires Kubernetes or docker compose then a .cmd and .sh script must be provided to setup the infrastructure and another to tear it down;
  5. Samples should not ship with a full blown nuke build system - that's overkill;
  6. All samples should reference a single Directory.Build.props file (it's already in this repository, don't add a new one) which will determine the version of Akka.NET, Akka.Hosting, ASP.NET, .NET Runtime, and Microsoft.Extensions.* used;
  7. The samples should be contained in their own solution files, rather than one giant one; and
  8. Samples should be coherently organized by folder.

Questions?

Please create a Github issue for any questions you might have.

Code License

All source code is licensed under the language of Apache 2.0. See LICENSE for more details.

Diagrams and Visuals

All of the visuals used to explain our samples are licensed under Creative Commons Attribution 4.0 International.

Creative Commons Attribution 4.0 International License

You are free to modify and use these diagrams in your own derivative works as long as you comply with the text of the Creative Commons Attribution 4.0 International license.

About Petabridge

Petabridge logo

Petabridge is a company dedicated to making it easier for .NET developers to build distributed applications.

Petabridge provides Akka.NET consulting and training, including advanced training in Akka.Remote, Akka.Cluster, and Akka.NET Design Patterns!


Copyright 2015 - 2022 Petabridge, LLC

More Repositories

1

akka-bootcamp

Self-paced training course to learn Akka.NET fundamentals from scratch
C#
1,035
star
2

NBench

Performance benchmarking and testing framework for .NET applications 📈
C#
532
star
3

lighthouse

Lighthouse - a simple service discovery platform for Akka.Cluster (Akka.NET)
F#
175
star
4

akka-monitoring

Monitoring system instrumentation for Akka.NET actor systems
C#
114
star
5

akkadotnet-cluster-workshop

Akka.NET + Kubernetes + Akka.Cluster Training Course
C#
99
star
6

akkadotnet-helpers

Akka.NET helper classes to assist with common production needs
C#
73
star
7

Incrementalist

Git-based incremental build and testing platform for .NET and .NET Core.
C#
67
star
8

petabridge-dotnet-new

.NET CLI template for Petabridge-style projects
F#
67
star
9

TurboMqtt

The fastest Message Queue Telemetry Transport (MQTT) client for .NET.
C#
65
star
10

Cluster.WebCrawler

K8s, DevOps-ified version of the Akka.Cluster WebCrawler code sample
JavaScript
62
star
11

DrawTogether.NET

C#
53
star
12

Petabridge.Tracing.Zipkin

Professionally supported Zipkin + OpenTracing driver in C#
C#
33
star
13

Petabridge.Tracing.ApplicationInsights

OpenTracing adapter for Microsoft Application Insights
C#
28
star
14

akkadotnet-bootstrap

Akka.Remote and Akka.Cluster Bootstrapping Tools for Akka.NET
C#
28
star
15

faker-csharp

Faker for C#
C#
20
star
16

Petabridge.App.Web

ASP.NET Core + Akka.NET Integrated Template
C#
20
star
17

akkadotnet-healthcheck

Healthchecks for Akka.NET Applications 🏥
C#
20
star
18

Akka.Persistence.Extras

Akka.NET Persistence extras and ideas
C#
19
star
19

http-playback

Capture, store, and reuse live HTTP requests for QA and load testing.
C#
14
star
20

Akka.Persistence.Azure

Azure-powered Akka.Persistence for Akka.NET actors
C#
13
star
21

AkkaDotNet.LargeNetworkTests

Network stress tests designed to measure Akka.NET "background radiation" in large clusters (100+ nodes)
C#
13
star
22

azure-app-service-akkadotnet

Demo for Akka.NET on Azure App Service
C#
12
star
23

Petabridge.Collections

A set of specialized collections and data structures that probably should be in CoreFx
C#
11
star
24

petabridge.cmd-quickstart

Quickstart tutorial sample for Petabridge.Cmd
PowerShell
11
star
25

phobos-infrastructure

Infrastructure used for trying out Phobos® monitoring 👁️ and tracing 🎯
10
star
26

Petabridge.App

Akka.NET Template for Cluster Applications
C#
10
star
27

Petabridge.Phobos.Web

Phobos-enabled Akka.NET + ASP.NET Core application
PowerShell
8
star
28

azure-container-app-akkadotnet

C#
6
star
29

spark-installer-windows

Versioned Apache Spark installation scripts for Windows.
PowerShell
6
star
30

Petabridge.Library

Petabridge project template repository for libraries.
C#
5
star
31

kinesis-sample

Akka.NET Streams + Cluster + AWS Kinesis Sample
C#
5
star
32

Versionator

.NET library for programmatically generating assemblies and assembly versions
F#
4
star
33

akkadotnet-integration-samples

Samples for demonstrating how to integrate Akka.NET into other popular OSS and .NET technologies
Batchfile
4
star
34

Akka.Cluster.Sharding.RepairTool

An automated cleanup tool for purging Akka.Cluster.Sharding data from Akka.Persistence
C#
3
star
35

Akka.Cluster.Chunking

Akka.Remote transport adapter that incorporates Akka.Delivery to chunk large messages
C#
3
star
36

Phobos.Actor.Common

Common interfaces for use within Phobos applications
F#
3
star
37

phobos-dashboards

Shared Grafana / Datadog / Application Insights / etc dashboards for plotting Phobos Akka.NET metrics
3
star
38

phobos-samples

Sample projects for working with Phobos® and Akka.NET
C#
3
star
39

Petabridge.Phobos.Web.ApplicationInsights

Azure Application Insights + Phobos tutorial for monitoring and tracing Akka.NET Clusters + ASP.NET Core
PowerShell
3
star
40

Petabridge.Phobos.Web.InfluxDb

Phobos-enabled Akka.NET + ASP.NET Core application using InfluxDb
PowerShell
2
star
41

Petabridge.Phobos.Web.DataDog

DataDog + Phobos tutorial for monitoring and tracing Akka.NET Clusters + ASP.NET Core
PowerShell
2
star
42

phobos-issues

Public issues and bug tracker for Phobos®
2
star
43

petabridge.cmd-issues

Issue tracker for Petabridge.Cmd
2
star
44

Petabridge.Monitoring.PCF

Driver for the Metrics Forwarder in Pivotal Cloud Foundry (PCF)
C#
1
star
45

Phobos.Samples

Various samples for integrating Phobos, Akka.NET, and other technologies
C#
1
star
46

SocketLeakDetection

C#
1
star