dotnetomaniak.pl - Artykuły z tagiem akka

A while ago I wrote about creating Actor System and top-level actors. Sadly it was stored in a static field. And keyword static is … let’s say it’s not one of my favourites. Today I’ll show you how I’m doing the exact same thing but in Dependency Injection container.

Źródło: hryniewski.net
Dziel się z innymi:
Akka.NET #7: Creating and accessing Actor System with Dependency Injection Container – Hryniewski.NET

Sztuka programowania 2387 dni, 8 godzin, 7 minut temu Rafał Hryniewski 84 źrodło rozwiń

In the previous post, I’ve briefly described part of a process of persisting state of our actor. I’ve told you about storing events and I’ve mentioned things called snapshots. This post is entirely about them.

Źródło: hryniewski.net
Dziel się z innymi:
Akka.NET #6: Persisting actors state – snapshots – Hryniewski.NET

Daj się poznać 2017 2531 dni, 3 godziny, 17 minut temu Rafał Hryniewski 24 źrodło rozwiń

As I’ve mentioned in previous posts about Akka.NET, everything that actor knows is stored in memory. While we can skip any database or IO related bottlenecks because things in memory are generally speaking very fast, we must remember that memory is not a place where you can store your data for an extended period of time and keep it. So let’s talk about persisting it.

Źródło: hryniewski.net
Dziel się z innymi:
Akka.NET #5: Persisting actors state – events – Hryniewski.NET

Daj się poznać 2017 2535 dni, 17 godzin, 50 minut temu Rafał Hryniewski 45 źrodło rozwiń

One of the concepts of actor model that could be hard to grasp at the begining is fact that we will not operate on direct reference to actor instance. This can be a bit confusing before you’ll get used to it but by not using any direct references you’re sure to achieve very good level of encapsulation.

Źródło: hryniewski.net
Dziel się z innymi:
Akka.NET #3: Actor selections, paths and references – where should you send your messages – Hryniewski.NET

Daj się poznać 2017 2573 dni, 9 godzin, 25 minut temu Rafał Hryniewski 44 źrodło rozwiń

Let’s take a closer look at our actors, how their life looks like, what exactly they’ve been doing and what they can do. As they are basic building block of applications built on actor model it’s crucial to understand and being able to communicate with them.

Źródło: hryniewski.net
Dziel się z innymi:
Akka.NET #2: A day in the life of an Actor – Hryniewski.NET

Daj się poznać 2017 2584 dni, 19 godzin, 28 minut temu Rafał Hryniewski 34 źrodło rozwiń

In previous post I’ve explained briefly what actor model is and why it’s so fun. Today we’ll create our ActorSystem instance, learn what it is and send first messages to them. I hope it will be nice and easy start.

Źródło: hryniewski.net
Dziel się z innymi:
Akka.NET #1 – Creating Actor System and making first contact – Hryniewski.NET

Actor model concept fascinated me since I’ve heard about it for the first time. It’s been on my todo list ever since and Get Noticed 2017 is great opportunity to give it a try. That’s why there is an actor responsible for almost anything in Me2.0. But, what is an actor, actor model and are benefits of using it in our projects? You’ll find out in a minute.

Źródło: hryniewski.net
Dziel się z innymi:
Akka.NET #0 – Actor Model Basics – Hryniewski.NET

Daj się poznać 2017 2590 dni, 6 godzin, 40 minut temu Rafał Hryniewski 138 źrodło rozwiń

Jak wspomniałem w jednym z wcześniejszych już wpisów, nie ma znaczenia, gdzie aktor jest zlokalizowany. Dzięki AKKA.NET jest to szczegół  konfiguracyjny. Jeśli pewnego dnia, stwierdzimy, że wykonywanie obliczeń na jednym komputerze nie wystarcza, wtedy po prostu  zmieniamy konfigurację, aby hostować danego aktora gdzieś indziej. Framework zadba o komunikację (TCP) między węzłami znajdującymi się w innych sieciach. W ten sposób, bardzo łatwo jest sk...

Dziel się z innymi:
AKKA.NET – zdalni aktorzy

Programowanie rozproszone 2990 dni, 21 godzin, 11 minut temu rroszczyk 79 źrodło rozwiń

W poprzednim wpisie pokazałem, w jaki sposób możemy zaprojektować obsługę błędów. Jak widać mamy do dyspozycji sporo opcji. Z punktu widzenia AKKA.NET nie jest to jednak tak skomplikowane. Wystarczy przeładować jedną metodę i zwrócić odpowiedni obiekt. Tak jak w poprzednim wpisie będziemy testować kod na następującym “systemie”: Dla przypomnienia nasz ApplicationUserActor wygląda następująco: public class ApplicationUserActor : UntypedActo...

Tagi: .Net, akka, C#, rozproszone
Dziel się z innymi:
AKKA.NET – Przykład obsługi błędów

Programowanie rozproszone 3022 dni, 5 godzin, 31 minut temu rroszczyk 102 źrodło rozwiń

W poprzednim poście użyliśmy metody ActorSelection w celu uzyskania referencji do aktora: var actor1 = system.ActorSelection("/user/ApplicationUserControllerActor/Piotr") Dzisiaj chciałbym bardziej skupić się na definiowaniu ścieżki do aktora. Pełna ścieżka może zawierać następujące elementy: – protokół – nazwa systemu – adres ip aktora – seria nazw aktorów opisująca hierarchie np. ApplicationUserControllerActor/actor1/actor2 itp.

Dziel się z innymi:
AKKA .NET – definiowanie ścieżki aktora

Najaktywniejsi w tym miesiącu