Actor Model Explained

Поділитися
Вставка
  • Опубліковано 23 січ 2025

КОМЕНТАРІ • 90

  • @paullee2449
    @paullee2449 6 років тому +48

    Excellent explanation. Concise and unambiguous.

  • @dmytromelnychuk1909
    @dmytromelnychuk1909 6 років тому +6

    Thanks! High level model, short and informative. Such videos are the best!

  • @ShoaibKhanZ
    @ShoaibKhanZ Рік тому +2

    This has to be the best explanation! Clear and concise!

    • @aammssaamm
      @aammssaamm Рік тому

      Which means you do not get the concept either, cause he doesn’t.

  • @Kaslor1000
    @Kaslor1000 3 роки тому +17

    Not Elixir, but Erlang, give credit where credit is due.

  • @mmubeen1189
    @mmubeen1189 4 роки тому +3

    Perfect Level of information passed to understand the concept, Great Job :)

    • @Finematics
      @Finematics  4 роки тому

      Thanks!

    • @mmubeen1189
      @mmubeen1189 4 роки тому

      @@Finematics It will be great if you also make a video on Spring framework. I'm waiting :)

  • @TheHenry1127
    @TheHenry1127 29 днів тому

    Thanks for a new learning

  • @dna1238
    @dna1238 3 роки тому +1

    many thanks for posting this explanation .

  • @atelesh
    @atelesh 2 місяці тому

    First you state an actor can only create other actors or send messages, but then it appears they can check whether other actors are alive and retarget messages to other actors. How do they healthcheck other actors if they don't wait for the response and only send messages in "fire and forget" manner?

  • @SunilPatil-hs8wd
    @SunilPatil-hs8wd 3 роки тому +2

    Thanks Dude. Awesome video.

  • @MohamedAli-nr2dr
    @MohamedAli-nr2dr 2 роки тому +1

    Magnificent explanation

  • @RajeshRai-dk7ed
    @RajeshRai-dk7ed 3 роки тому

    perfect video to easily understand the actor model

  • @artyomkuznetsov8050
    @artyomkuznetsov8050 5 років тому +1

    Hello. Your explanation is very good. Thanks!

  • @dmitrym3757
    @dmitrym3757 5 років тому +5

    Thanks a lot!
    Is there any chance to see a CSP explaination in near future?

    • @avimehenwal
      @avimehenwal 3 роки тому +1

      I understood how CSP work in clojure through a rich hickey's video. He explains it like a CS god, in full glory

  • @sapnokiranii
    @sapnokiranii 4 роки тому +1

    Great and clear explanation, thanks!

  • @CoolITTrends
    @CoolITTrends 4 роки тому +1

    Great job! Thanks mate!

  • @dansanger5340
    @dansanger5340 4 роки тому +3

    What about Erlang? Is there some dispute that Erlang uses the Actor model?

    • @aDifferentJT
      @aDifferentJT 3 роки тому +1

      Elixir is built on BEAM, same as Erlang, they are fairly similar.

    • @davidshipman5964
      @davidshipman5964 3 місяці тому

      Elixir and Lisp Flavored Erlang are just different frontends for Erlang. They all use the actor model.

  • @APEF92
    @APEF92 6 років тому +2

    Really informative, thanks¡

  • @namooman6447
    @namooman6447 6 років тому

    Very well explained. Thanks

  • @prasanthmp500
    @prasanthmp500 3 роки тому

    why cant we use spring cloud technologies instead of Actor model ?

  • @lulu4882
    @lulu4882 4 роки тому +1

    how is code reuse usually implemented in the actor model?

    • @aammssaamm
      @aammssaamm 4 роки тому +1

      By breaking it into a single responsibility functions.

    • @lulu4882
      @lulu4882 4 роки тому

      @@aammssaamm interesting, thanks. could you provide an example please?

    • @aammssaamm
      @aammssaamm 4 роки тому

      @@lulu4882 Excuse me?

    • @lulu4882
      @lulu4882 4 роки тому

      @@aammssaamm an example of actors sharing a single responsibility function.

  • @strong1019
    @strong1019 6 років тому

    Great explaining!

  • @billmoney1
    @billmoney1 3 роки тому +1

    Awesome vid

  • @JB-nw1ix
    @JB-nw1ix 6 років тому

    Great video!

  • @MrErtghj23
    @MrErtghj23 5 років тому +2

    GOOD JOB!! ❤️💪🏻

  • @bilelkhedira
    @bilelkhedira 5 років тому +1

    Thanks

  • @Werna8Pumba
    @Werna8Pumba 4 роки тому

    Great explanation :)

  • @JK-sy4ym
    @JK-sy4ym 6 років тому +1

    best explanation! really appreciate this.

  • @sadaneotmane1437
    @sadaneotmane1437 5 років тому

    Thanks !

  • @thechhavibansal
    @thechhavibansal 4 роки тому +3

    best🔥

  • @ishunyu
    @ishunyu 5 років тому +1

    Sounds very similar to goroutines in terms of the theory. Anybody know the diff?

    • @sdwvit
      @sdwvit 5 років тому +1

      also similar to javascript event loop

  • @张小亮-j5k
    @张小亮-j5k 5 років тому +1

    awsome~

  • @kokizzu
    @kokizzu 5 років тому +5

    umm.. how actor model susceptible to deadlock?

    • @Guncraker
      @Guncraker 5 років тому

      Due to no usage of locks at all

    • @IvoYueh
      @IvoYueh 5 років тому +2

      Although actors are asynchronous and don't have to wait for other actors, their state changes may rely on conditions from other actors. If there is a circular dependency between actors, then they can deadlock each other.

  • @Ilyushya
    @Ilyushya Рік тому

    You forgot about Erlang, GParS and Kotlin

  • @bilelkhedira
    @bilelkhedira 5 років тому +1

    fantastic +1

  • @0xssff
    @0xssff 4 роки тому

    thank you

  • @sawthinkar
    @sawthinkar 6 років тому +1

    Thanks for the video. Could you please set up BAT payment for your website, finematics, so that I can make contributions while learning stuff posted there?

    • @Finematics
      @Finematics  5 років тому

      done, better late than never

  • @izzatzr
    @izzatzr 2 роки тому

    the term of mailbox is not a requirement for the actor model

  • @Андрей-й2р2ъ
    @Андрей-й2р2ъ 6 років тому +1

    Thanks for the video man. I found it really helpful for my friend with his course project so he doesn't need to read an akka book. 😁

    • @MilanVVVVV
      @MilanVVVVV 5 років тому

      Tip: he probably should

  • @gSalomeV
    @gSalomeV 6 років тому

    sweet

  • @masteryoda9044
    @masteryoda9044 2 роки тому

    Actor models are good looking people who can act.

  • @flogginga_dead_horse4022
    @flogginga_dead_horse4022 4 роки тому +2

    seems a lot like how processes are implemented in Elixir, I could be wrong :P edit: oops I missed the ending

  • @piyushmajgawali1611
    @piyushmajgawali1611 4 роки тому

    This is certainly what I don't need

  • @hpal
    @hpal 4 роки тому

    this sounds like Abramov

  • @AdrianBoyko
    @AdrianBoyko Рік тому

    It’s mind-boggling that people produce content about the actor model without mentioning the Pony programming language.

  • @aammssaamm
    @aammssaamm 4 роки тому

    There should be no actor's mailbox overflowing as there are not so many messages which can be sent to an actor. In any case the number of messages can be optimized by the system optimization.

    • @Finematics
      @Finematics  4 роки тому

      Correct. The Actor Model can be susceptible to mailbox overflowing, but with a proper implementation this issue can be mitigated and never occur.

    • @aammssaamm
      @aammssaamm 4 роки тому

      @@Finematics Sorry, you don't seem to understand the topic.

    • @Finematics
      @Finematics  4 роки тому +2

      Interesting. I'm looking forward to your explanation of the topic.

  • @bobj8690
    @bobj8690 4 роки тому +2

    “two actors with the same identity can have different addresses”
    why do two actors have the identity?

    • @Fridrih123
      @Fridrih123 4 роки тому +10

      Let's say, I have counter and a button. When I perss the button (one actor), I send message to counter (another actor) about this event. This two actors have different identities. If I add another button into UI, I'll have two actors with same identities (they're both buttons and respond to click), but they will have different internal state (hovered, pressed, idle) and different addresses.
      If we take implementation of this system in HTML, we will have two HTMLButtonElments (identity) inside our DOM tree (system) with different addresses (e.g position inside DOM tree)

    • @thisisnotajoke
      @thisisnotajoke 3 роки тому +2

      @@Fridrih123 Aren't you mixing up identity with "type"? Two buttons on a page are both of type "" , but do not have the same identity. Of course with HTML it is somehow ambiguous what exactly "identity" means if no "id" attribute has been specified, but then I would argue that the address is actually part of the id (even everything else about both buttons is the same and they do not have an "id", then we can still identify them by their location in the tree).
      Now going back to the original comment, I too think that the sentence at hand was a bit confusing. A better wording would have been: "two (or more) addresses can point to the same actor".

  • @nickeldan
    @nickeldan 11 місяців тому

    So, Erlang.

  • @pagenotfound_code_404
    @pagenotfound_code_404 2 місяці тому

    > actors are lightweight and it's easy to create thousands or even millions of them as they require fewer resources than threads
    NOT TRUE!
    for actors to be asynchronous they must be implemented using threads or processes (preferably using threads).
    That's how asynchronous processes work!
    actors by logic do NOT consume less resources than threads as its just an abstraction.
    anyways i'm not listening to rest of this nonsense

  • @coatiguriguazu
    @coatiguriguazu Рік тому

    The video would have been even nicer if the host wasn't chewing bubble gum

  • @web3.yuanming
    @web3.yuanming Рік тому

    1

  • @cvetanvelikov2440
    @cvetanvelikov2440 3 роки тому

    Thanks for the explanation but please do not chew gum while talking, it's disgusting

  • @aammssaamm
    @aammssaamm 4 роки тому +1

    Message is not explained.

    • @Finematics
      @Finematics  4 роки тому +1

      Hi Anne, in this context a message is just a simple piece of data (any data) that is usually send to a specific recipient.

    • @aammssaamm
      @aammssaamm 4 роки тому +1

      @@Finematics But you don't understand how exactly it works.

    • @Finematics
      @Finematics  4 роки тому +3

      Looking forward to your explanation what a message in the Actor Model is

    • @flogginga_dead_horse4022
      @flogginga_dead_horse4022 4 роки тому

      Still looking forward to Anne's video :D

    • @aammssaamm
      @aammssaamm 4 роки тому +1

      @@flogginga_dead_horse4022 Sorry, I do not work for free.

  • @lherfel
    @lherfel 2 роки тому

    thanks

  • @babafunmiseadebowale7746
    @babafunmiseadebowale7746 Рік тому

    “two actors with the same identity can have different addresses”
    why do two actors have the identity?