Тёмный

Akka Typed: Stateful and Stateless Actors | Rock the JVM 

Rock the JVM
Подписаться 24 тыс.
Просмотров 7 тыс.
50% 1

Опубликовано:

 

16 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 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!
@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
@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.
@Nick-mp4jl
@Nick-mp4jl 3 года назад
Thank you Daniel, really nice explained
@rockthejvm
@rockthejvm 3 года назад
Glad it helped!
@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?
@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!
@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.
@christianvalverde1247
@christianvalverde1247 3 года назад
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 3 года назад
Having each item with its own persistent actor might be too granular.
@christianvalverde1247
@christianvalverde1247 3 года назад
@@rockthejvm what should be the ideal case ?
@rockthejvm
@rockthejvm 3 года назад
@@christianvalverde1247 it depends on what items you hold and how you access them, but the "DAO" should be a persistent actor
@prashantkumar-hx1dv
@prashantkumar-hx1dv 2 года назад
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.
Далее
Let's Talk About Scala 3 Indentation | Rock the JVM
22:14
ROBLOX TRAND AGAIN. Part 7☠️🗿🙋🏻‍♀️
00:16
Eminem НА РУССКОМ💔
00:30
Просмотров 212 тыс.
Given and Using Clauses in Scala 3 | Rock the JVM
20:24
Dependency Injection, The Best Pattern
13:16
Просмотров 851 тыс.
Akka Streams - Working with Stage Actors
29:10
Просмотров 2,7 тыс.
What the Functor? | Functors in Scala | Rock the JVM
24:43
AKKA TYPED Actors with  Java in  15 minutes
16:29
Просмотров 2,6 тыс.
Sync, Async, Blocking and Non-Blocking | Rock the JVM
16:19
Microservices are Technical Debt
31:59
Просмотров 521 тыс.
ROBLOX TRAND AGAIN. Part 7☠️🗿🙋🏻‍♀️
00:16