Akka Kai绍

Welcome Akka, Akka is used is a set of open source tool is designed elastically extensible and a correlation between the multi-core processor and the network. Akka allows you to pay more attention to business needs, rather than writing low-level code to provide reliability, fault tolerance and high performance.

Many common design practices and model programs that have been accepted can not solve some of the important challenges that modern computer architecture is usually inherent. In order for the project to succeed, the distributed system must be able to cope with some of the environmental problems arise, such as the collapse of the components can not respond to messages sent no trace of it was lost, in order to allow a distributed system to run successfully, and network delay and fluctuations problem. Data center under good management and environmental monitoring of these issues have often happens, the more prone to these problems above for the virtual infrastructure environment.

To help you deal with these real problems mentioned above, Akka provides:
  • Do not use low-level concurrent multi-threaded architecture, such as atoms or lock; you from having to consider the visibility of memory problems.
  • Remote communication transparency between systems and components; you from having property and maintain complex network code.
  • A high-availability cluster architecture, this cluster has considerable flexibility, online; so you really can deploy a reaction system.

Reactive System. A reactive system is a system that responds (reacts) to external events。

Response system is a system able to make the appropriate response to external events. Early so-called reactive system is a branch of the software system, as its name meaning described. Later, this concept is clearly down American David Harel, its main part is to describe the reaction behavior.

What is the reaction behavior? Let's look at a switching system of the example of the input (Start) -> software system (after a period of time is stopped) -> (and) output example user data input to a computer, the software of these data has been calculated period of time, and finally to the output result, we can be seen as a monthly billing or accounting of a measure of statistical data.
Can know, the input data is converted through a particular rule, and the result is given after the end of the calculation procedure. The reactive system just the opposite happened.

In contrast to the conversion system, the reactive system where often there is no clear scheduling. In general, reactive system represents the runtime system is not limited, and the external environment to which interaction is reflected in the external stimulus (reactive), for example, and different users or other external hardware, but It includes an internal AC behavior occurs because the reactive system is integrated in the rules run in parallel in a distributed system.

For example, a computer operating system is a reactive system, it does not stop running, but always to the reaction user input, and to communicate between various components in a computer.

In the field of telecommunications, production control or there are many examples in the configuration of the hardware environment (embedded system). In the information system, which is based on the application database also used reactive system. In a typical example is a warning system (Early Warning System).

Akka actor using an abstract model allows Akka easier to create the correct concurrent, parallel distributed systems. Akka actor model throughout the library, you can make it easier to understand and use them, and to ensure better integrity. Akka therefore provides a deeper integration and integration, if you can not solve by choosing the library to individual problems, you can try them together.

By learning how to use Akka actor and model, you will have access to a large and deep set of tools to solve the difficulties and challenges encountered in distributed parallel system, through a unified programming model, in which everything can be closely and efficiently combined together.

 

https://www.cwiki.us/display/AkkaZH/Introduction+to+Akka

Guess you like

Origin www.cnblogs.com/huyuchengus/p/11229461.html