Erlang works with passing messages between participants as a concurrency model.
Suppose I have 3 actors who sell items . The total number of items is 7. How do they sell 7 items ? How do they coordinate themselves? We can have one actor with the number of available items, acting on the message "buy" (actor inventory). It will be SPOF , though.
The same applies to concurrency in other languages, such as Java, when using message queues for concurrency instead of locks.
(Best without Amdahl bottleneck )
You have a process that is a thing - in this case inventory. When other processes want to buy, they ask for inventory, do you have one? can i buy it?
The process representing the delivery will tell the inventory, here are 20 new things ...
, , . dets Mnesia backend. , , , . - 3 , , - , , . , , , , .
? 7 , 7 . , .
Source: https://habr.com/ru/post/1705187/More articles:UIFont with a custom host? - cocoa-touchCan I use HttpHandler to fake the existence of aspx pages? - asp.nethttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1705184/how-do-i-use-htaccess-to-force-www-while-using-zend-framework&usg=ALkJrhikBa43sWQ847_lWjekzCexlt9iZApython: random order - pythonКаков обходной путь для исключенного исключения доступа к памяти на ARM9 с использованием C? - c++Django syncdb locks on table creation - pythonFxCop is just as valuable on VB.NET as on C # - vb.netWPF - FocusVisualStyle, where do I use it? - wpfHow can I make msi overwrite old files? - installerHow to convert 1400-1500 to 2 pm - 3 hours? - datetimeAll Articles