Akka Typed: Stateful and Stateless Actors | Rock the JVM

  Рет қаралды 6,796

Rock the JVM

Rock the JVM

Күн бұрын

Пікірлер: 23
@nimatrueway
@nimatrueway 4 жыл бұрын
I love your tutorials! They are in perfect form. By the way, I can't wait to watch more of "Scala 3" series.
@rockthejvm
@rockthejvm 4 жыл бұрын
Will do more!
@no_more_free_nicks
@no_more_free_nicks 2 жыл бұрын
Thanks that was a great introduction, I have a job interview where I have to create a simple service using actors.
@aethermass
@aethermass 4 жыл бұрын
Great intro to Behaviors with Akka Typed. I recommend doing a video with an example of an Akka Typed timer/scheduler. Cheers =)
@rockthejvm
@rockthejvm 4 жыл бұрын
Will do - lots more incoming!
@vicc8881
@vicc8881 4 жыл бұрын
myHappiness += 100
@Nick-mp4jl
@Nick-mp4jl 4 жыл бұрын
Thank you Daniel, really nice explained
@rockthejvm
@rockthejvm 4 жыл бұрын
Glad it helped!
@GVLPedro
@GVLPedro 4 жыл бұрын
Great !! very useful for PR :)
@rockthejvm
@rockthejvm 4 жыл бұрын
Glad it helps!
@GVLPedro
@GVLPedro 4 жыл бұрын
@@rockthejvm I would like a video showing the different types of ExecutionContext (scala.concurrent.ExecutionContext.Implicits.global) and when to use.
@javierramosrodriguez5512
@javierramosrodriguez5512 4 жыл бұрын
Maybe it is just terminology, but for me both actors are stateful. They have internal state. One is mutable and another one is not.
@rockthejvm
@rockthejvm 4 жыл бұрын
Sure - as long as you got the idea, that's all I wanted
@javierramosrodriguez5512
@javierramosrodriguez5512 4 жыл бұрын
@@rockthejvm yes, as always, this video was very helpful. Thank you!
@christianvalverde1247
@christianvalverde1247 4 жыл бұрын
There is something thats not clear to me. when using persistent typed actors, there is a trait EventSource which should not be extended wich is good for functional style actors .....all the samples use a singleton object ... what if i wanted to map each item in a warehouse to a persistent actor, then the problem is functional style forces me to use singleton objects ... so i cant find a way to use persistente actors in the scenario. ....... any clue would be appreciated.
@rockthejvm
@rockthejvm 4 жыл бұрын
Having each item with its own persistent actor might be too granular.
@christianvalverde1247
@christianvalverde1247 4 жыл бұрын
@@rockthejvm what should be the ideal case ?
@rockthejvm
@rockthejvm 4 жыл бұрын
@@christianvalverde1247 it depends on what items you hold and how you access them, but the "DAO" should be a persistent actor
@prashantsable7982
@prashantsable7982 2 жыл бұрын
Great Video. Quick question - For some if I wanted to retry the message, How can we achieve it without waiting for the next message. i.e. If you just send "emotionalActorSystem ! EatChocolate" I wanted to execute it 2 times based on some condition without waiting for the next message. Can we do context.self ! EatChocolate
@rockthejvm
@rockthejvm 2 жыл бұрын
You can simply send the message twice, i.e. call `emotionalActorSystem ! EatChocolate` two times?
@prashantkumar-hx1dv
@prashantkumar-hx1dv 3 жыл бұрын
you an crate the actor using the actor system or by extending the actor trait
@mangos1346
@mangos1346 3 жыл бұрын
akka-typed seems unnecessary complicated than akka-actor, and with constant creation of new object of behavior for every incoming message, it seems like a performance penalty. Why would we use akka-typed in the first place?
@rockthejvm
@rockthejvm 3 жыл бұрын
Boilerplate has nothing to do with performance. This code is what aesthetics sacrifice for type safety, which was one of the major flaws of "old" actors.
Миллионер | 3 - серия
36:09
Million Show
Рет қаралды 1,8 МЛН
Amazing remote control#devil  #lilith #funny #shorts
00:30
Devil Lilith
Рет қаралды 16 МЛН
МЕНЯ УКУСИЛ ПАУК #shorts
00:23
Паша Осадчий
Рет қаралды 4,7 МЛН
What the Functor? | Functors in Scala | Rock the JVM
24:43
Rock the JVM
Рет қаралды 12 М.
Sync, Async, Blocking and Non-Blocking | Rock the JVM
16:19
Rock the JVM
Рет қаралды 12 М.
AKKA TYPED Actors with  Java in  15 minutes
16:29
NMFS
Рет қаралды 2,6 М.
Given and Using Clauses in Scala 3 | Rock the JVM
20:24
Rock the JVM
Рет қаралды 6 М.
Algebraic Data Types (ADT) in Scala | Rock the JVM
14:19
Rock the JVM
Рет қаралды 10 М.
Islands in the Stream  Integrating Akka Streams and Akka Actors
44:29
Reactive Summit
Рет қаралды 9 М.
Akka Streams - Working with Stage Actors
29:10
Rock the JVM
Рет қаралды 2,7 М.
Farewell Any - Unit, welcome Akka Typed! by Heiko Seeberger
42:22
Scala Days Conferences
Рет қаралды 2,5 М.
Миллионер | 3 - серия
36:09
Million Show
Рет қаралды 1,8 МЛН