• Stars
    star
    1,035
  • Rank 44,530 (Top 0.9 %)
  • Language
    C#
  • License
    Apache License 2.0
  • Created almost 10 years ago
  • Updated 9 months ago

Reviews

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

Repository Details

Self-paced training course to learn Akka.NET fundamentals from scratch

Akka.NET Bootcamp

Welcome to Akka.NET Bootcamp! This is a free, self-directed learning course brought to you by the folks at Petabridge.

Get Akka.NET training material & updates at https://petabridge.com/bootcamp/signup

Join the chat at https://gitter.im/petabridge/akka-bootcamp

Over the three units of this bootcamp you will learn how to create fully-functional, real-world programs using Akka.NET actors and many other parts of the core Akka.NET framework!

We will start with some basic actors and have you progressively work your way up to larger, more sophisticated examples.

The course is self-directed learning. You can do it at whatever pace you wish. You can sign up here to have one Akka.NET Bootcamp lesson emailed to you daily if you'd like a little help pacing yourself throughout the course.

NOTE: F# support is in progress (see the FSharp branch). We will happily accept F# pull requests. Feel free to send them in.

What will you learn?

In Akka.NET Bootcamp you will learn how to use Akka.NET actors to build reactive, concurrent applications.

You will learn how to build types of applications that may have seemed impossible or really, really hard to make prior to learning Akka.NET. You will walk away from this bootcamp with the confidence to handle bigger and harder problems than ever before!

Unit 1

In Unit 1, we will learn the fundamentals of how the actor model and Akka.NET work.

*NIX systems have the tail command built-in to monitor changes to a file (such as tailing log files), whereas Windows does not. We will recreate tail for Windows and use the process to learn the fundamentals.

In Unit 1 you will learn:

  1. How to create your own ActorSystem and actors;
  2. How to send messages actors and how to handle different types of messages;
  3. How to use Props and IActorRefs to build loosely coupled systems.
  4. How to use actor paths, addresses, and ActorSelection to send messages to actors.
  5. How to create child actors and actor hierarchies, and how to supervise children with SupervisionStrategy.
  6. How to use the Actor lifecycle to control actor startup, shutdown, and restart behavior.

Begin Unit 1.

Unit 2

In Unit 2, we're going to get into some more of the intermediate Akka.NET features to build a more sophisticated application than what we accomplished at the end of unit 1.

In Unit 2 you will learn:

  1. How to use HOCON configuration to configure your actors via App.config and Web.config;
  2. How to configure your actor's Dispatcher to run on the Windows Forms UI thread, so actors can make operations directly on UI elements without needing to change contexts;
  3. How to handle more sophisticated types of pattern matching using ReceiveActor;
  4. How to use the Scheduler to send recurring messages to actors;
  5. How to use the Publish-subscribe (pub-sub) pattern between actors;
  6. How and why to switch actor's behavior at run-time; and
  7. How to Stash messages for deferred processing.

Begin Unit 2.

Unit 3

In Unit 3, we will learn how to use actors for parallelism and scale-out using Octokit and data from Github repos!

In Unit 3 you will learn:

  1. How to perform work asynchronously inside your actors using PipeTo;
  2. How to use Ask to wait inline for actors to respond to your messages;
  3. How to use ReceiveTimeout to time out replies from other actors;
  4. How to use Group routers to divide work among your actors;
  5. How to use Pool routers to automatically create and manage pools of actors; and
  6. How to use HOCON to configure your routers.

Begin Unit 3.

How to get started

Here's how Akka.NET bootcamp works!

Use Github to Make Life Easy

This Github repository contains Visual Studio solution files and other assets you will need to complete the bootcamp.

Thus, if you want to follow the bootcamp we recommend doing the following:

  1. Sign up for Github, if you haven't already.
  2. Fork this repository and clone your fork to your local machine.
  3. As you go through the project, keep a web browser tab open to the Akka.NET Bootcamp ReadMe so you can read all of the instructions clearly and easily.

Bootcamp Structure

Akka.NET Bootcamp consists of three modules:

  • Unit 1 - Beginning Akka.NET
  • Unit 2 - Intermediate Akka.NET
  • Unit 3 - Advanced Akka.NET

Each module contains the following structure (using Unit 1 as an example:)

src\Unit1\README.MD - table of contents and instructions for the module
src\Unit1\DoThis\ - contains the .SLN and project files that you will use through all lessons
-- lesson 1
src\Unit1\Lesson1\README.MD - README explaining lesson1
src\Unit1\Lesson1\DoThis\ - C# classes, etc...
src\Unit1\Lesson1\Completed\ - "Expected" output after completing lesson
-- repeat for all lessons

Start with the first lesson in each unit and follow the links through their README files on Github. We're going to begin with Unit 1, Lesson 1.

Lesson Layout

Each Akka.NET Bootcamp lesson contains a README which explains the following:

  1. The Akka.NET concepts and tools you will be applying in the lesson, along with links to any relevant documentation or examples
  2. Step-by-step instructions on how to modify the .NET project inside the Unit-[Num]/DoThis/ to match the expected output at the end of each lesson.
  3. If you get stuck following the step-by-step instructions, each lesson contains its own /Completed/ folder that shows the full source code that will produce the expected output. You can compare this against your own code and see what you need to do differently.

When you're doing the lessons...

A few things to bear in mind when you're following the step-by-step instructions:

  1. Don't just copy and paste the code shown in the lesson's README. You'll retain and learn all of the built-in Akka.NET functions if you type out the code as it's shown.
  2. You might be required to fill in some blanks during individual lessons. Part of helping you learn Akka.NET involves leaving some parts of the exercise up to you - if you ever feel lost, always check the contents of the /Completed folder for that lesson.
  3. Don't be afraid to ask questions. You can reach the Petabridge team and other Akka.NET users in our Gitter chat here.

Docs

We will provide explanations of all key concepts throughout each lesson, but of course, you should bookmark (and feel free to use!) the Akka.NET docs.

Tools / prerequisites

This course expects the following:

  • You have some programming experience and familiarity with C#
  • A Github account and basic knowledge of Git.
  • You are using a version of Visual Studio (it's free now!)
    • These lessons are designed to run on Windows only due to the limitation of the WindowsForms framework.

Enough talk, let's go!

Let's begin!

About Petabridge

Petabridge logo

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

Petabridge also offers Akka.NET consulting and training - so please sign up for our mailing list!


Copyright 2015-2020 Petabridge, LLC

More Repositories

1

akkadotnet-code-samples

Akka.NET professional reference code samples
C#
546
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