Fixing spelling errors in docs
This commit is contained in:
parent
9c1a50ba2c
commit
e3e389e14f
5 changed files with 6 additions and 4 deletions
|
|
@ -13,7 +13,7 @@ The Dispatcher is an important piece that allows you to configure the right sema
|
||||||
|
|
||||||
Akka supports dispatchers for both event-driven lightweight threads, allowing creation of millions threads on a single workstation, and thread-based Actors, where each dispatcher is bound to a dedicated OS thread.
|
Akka supports dispatchers for both event-driven lightweight threads, allowing creation of millions threads on a single workstation, and thread-based Actors, where each dispatcher is bound to a dedicated OS thread.
|
||||||
|
|
||||||
The event-based Actors currently consume ~600 bytes per Actor which means that you can create more than 6.5 million Actors on 4 G RAM.
|
The event-based Actors currently consume ~600 bytes per Actor which means that you can create more than 6.5 million Actors on 4 GB RAM.
|
||||||
|
|
||||||
Default dispatcher
|
Default dispatcher
|
||||||
------------------
|
------------------
|
||||||
|
|
@ -84,6 +84,7 @@ The 'Dispatcher' binds a set of Actors to a thread pool backed up by a 'Blocking
|
||||||
The event-driven dispatchers **must be shared** between multiple Typed Actors and/or Actors. One best practice is to let each top-level Actor, e.g. the Actors you define in the declarative supervisor config, to get their own dispatcher but reuse the dispatcher for each new Actor that the top-level Actor creates. But you can also share dispatcher between multiple top-level Actors. This is very use-case specific and needs to be tried out on a case by case basis. The important thing is that Akka tries to provide you with the freedom you need to design and implement your system in the most efficient way in regards to performance, throughput and latency.
|
The event-driven dispatchers **must be shared** between multiple Typed Actors and/or Actors. One best practice is to let each top-level Actor, e.g. the Actors you define in the declarative supervisor config, to get their own dispatcher but reuse the dispatcher for each new Actor that the top-level Actor creates. But you can also share dispatcher between multiple top-level Actors. This is very use-case specific and needs to be tried out on a case by case basis. The important thing is that Akka tries to provide you with the freedom you need to design and implement your system in the most efficient way in regards to performance, throughput and latency.
|
||||||
|
|
||||||
It comes with many different predefined BlockingQueue configurations:
|
It comes with many different predefined BlockingQueue configurations:
|
||||||
|
|
||||||
* Bounded LinkedBlockingQueue
|
* Bounded LinkedBlockingQueue
|
||||||
* Unbounded LinkedBlockingQueue
|
* Unbounded LinkedBlockingQueue
|
||||||
* Bounded ArrayBlockingQueue
|
* Bounded ArrayBlockingQueue
|
||||||
|
|
|
||||||
|
|
@ -115,6 +115,7 @@ Methods that return something (e.g. non-void methods) are turned into ‘send-an
|
||||||
User user = service.getUser(username);
|
User user = service.getUser(username);
|
||||||
|
|
||||||
Generally it is preferred to use fire-forget messages as much as possible since they will never block, e.g. consume a resource by waiting. But sometimes they are neat to use since they:
|
Generally it is preferred to use fire-forget messages as much as possible since they will never block, e.g. consume a resource by waiting. But sometimes they are neat to use since they:
|
||||||
|
|
||||||
# Simulates standard Java method dispatch, which is more intuitive for most Java developers
|
# Simulates standard Java method dispatch, which is more intuitive for most Java developers
|
||||||
# Are a neat to model request-reply
|
# Are a neat to model request-reply
|
||||||
# Are useful when you need to do things in a defined order
|
# Are useful when you need to do things in a defined order
|
||||||
|
|
|
||||||
|
|
@ -524,7 +524,7 @@ Release 0.6 - January 5th 2010
|
||||||
- **ADD** - New and much improved docs (Jonas Bonér)
|
- **ADD** - New and much improved docs (Jonas Bonér)
|
||||||
- **ADD** - Enhanced trapping of failures: 'trapExit = List(classOf[..], classOf[..])' (Jonas Bonér)
|
- **ADD** - Enhanced trapping of failures: 'trapExit = List(classOf[..], classOf[..])' (Jonas Bonér)
|
||||||
- **ADD** - Upgraded to Netty 3.2, Protobuf 2.2, ScalaTest 1.0, Jersey 1.1.3, Atmosphere 0.4.1, Cassandra 0.4.1, Configgy 1.4 (Jonas Bonér)
|
- **ADD** - Upgraded to Netty 3.2, Protobuf 2.2, ScalaTest 1.0, Jersey 1.1.3, Atmosphere 0.4.1, Cassandra 0.4.1, Configgy 1.4 (Jonas Bonér)
|
||||||
- **FIX** - Lowered actor memory footprint; now an actor consumes ~600 bytes, which mean that you can create 6.5 million on 4 G RAM (Jonas Bonér)
|
- **FIX** - Lowered actor memory footprint; now an actor consumes ~600 bytes, which mean that you can create 6.5 million on 4 GB RAM (Jonas Bonér)
|
||||||
- **FIX** - Remote actors are now defined by their UUID (not class name) (Jonas Bonér)
|
- **FIX** - Remote actors are now defined by their UUID (not class name) (Jonas Bonér)
|
||||||
- **FIX** - Fixed dispatcher bugs (Jonas Bonér)
|
- **FIX** - Fixed dispatcher bugs (Jonas Bonér)
|
||||||
- **FIX** - Cleaned up Maven scripts and distribution in general (Jonas Bonér)
|
- **FIX** - Cleaned up Maven scripts and distribution in general (Jonas Bonér)
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ The Dispatcher is an important piece that allows you to configure the right sema
|
||||||
|
|
||||||
Akka supports dispatchers for both event-driven lightweight threads, allowing creation of millions of threads on a single workstation, and thread-based Actors, where each dispatcher is bound to a dedicated OS thread.
|
Akka supports dispatchers for both event-driven lightweight threads, allowing creation of millions of threads on a single workstation, and thread-based Actors, where each dispatcher is bound to a dedicated OS thread.
|
||||||
|
|
||||||
The event-based Actors currently consume ~600 bytes per Actor which means that you can create more than 6.5 million Actors on 4 G RAM.
|
The event-based Actors currently consume ~600 bytes per Actor which means that you can create more than 6.5 million Actors on 4 GB RAM.
|
||||||
|
|
||||||
Default dispatcher
|
Default dispatcher
|
||||||
------------------
|
------------------
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ The 'actorOf' factory method can be imported like this:
|
||||||
|
|
||||||
From now on we will assume that it is imported like this and can use it directly.
|
From now on we will assume that it is imported like this and can use it directly.
|
||||||
|
|
||||||
Akka Actors are extremely lightweight. Each Actor consume ~600 bytes, which means that you can create 6.5 million on 4 G RAM.
|
Akka Actors are extremely lightweight. Each Actor consume ~600 bytes, which means that you can create 6.5 million on 4 GB RAM.
|
||||||
|
|
||||||
Messages are sent using the '!' operator:
|
Messages are sent using the '!' operator:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue