Akka.NET Actors: Async / Await vs PipeTo

  Рет қаралды 1,567

Petabridge

Petabridge

Күн бұрын

Пікірлер: 8
@AndreLoker
@AndreLoker 7 ай бұрын
It would have been interesting to compare async/await to a more complex approach with PipeTo including behavior switching/stashing/unstashing (to mimic suspension of the mailbox during asynchronous processing).
@ihsanislam651
@ihsanislam651 2 жыл бұрын
how can we implement AKKT with nodeJS? i need this for my bots trading platform, any direction would be much appreciated
@willemdrost9721
@willemdrost9721 Ай бұрын
Instead of using PipeTo, would it not be better to simply spawn a separate actor for each concurrent action? PipeTo seems very anti-pattern to me, it gives me the same vibes I get from the "friend" construction in C++ (where friends can touch your privates).
@Stannardian
@Stannardian Ай бұрын
PipeTo is more like an integration between the TPL (Task) APIs and actors - it takes the results of a Task and lets it get piped back into the actor's mailbox like a normal IActorRef.Tell would. If you have a really long-running Task or if you want to run several of them all concurrently from the same actor, this pattern in combination with something like behavior switching allows the actor to still be responsive to additional messages while those tasks are running
@MladenMihajlovic
@MladenMihajlovic 3 жыл бұрын
Nice video. One thing I was totally confused by PipeTo in the beginning was what return type was being piped. In reality I was really trying to just call a DB Async method using Dapper's QueryAsync method, and I was confused if using PipeTo would somehow convert the result to some new Message Object or something (which of course it doesn't, so you would want to wrap the results into your own message type and receive on that).
@RizaMarhaban
@RizaMarhaban Жыл бұрын
Awesome!
@dosomething3
@dosomething3 3 жыл бұрын
iho. throughput should not be an issue in your actor based system. you should have multiple actors keeping your hardware busy.
@Petabridge
@Petabridge 3 жыл бұрын
Agree - you can solve the throughput problem by scaling horizontally with more actors. But, you can also accomplish that through running more detached tasks via PipeTo if those Tasks are simple.
Introduction to Akka.NET Streams
1:40:48
Petabridge
Рет қаралды 4,7 М.
Continuous Deployment with Akka.Cluster and Kubernetes (Akka.NET)
1:26:56
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Akka.Remote: How to Remotely Deploy Actors
23:41
Petabridge
Рет қаралды 9 М.
Akka.NET Actors' Hidden Super Power: Switchable Behaviors
12:55
62. .NET Framework vs .NET Core vs .NET vs .NET Standard vs C#
25:14
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 851 М.
Actor Model Explained
4:33
Finematics
Рет қаралды 129 М.
The Hardest .NET Bug I've Ever Fixed
1:38:35
Petabridge
Рет қаралды 1,2 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19