24.12.11

ActiveMQ in Action–NIO

  • The most prominent features of NIO are selectors and nonblocking I/O programming, allowing developers to use the same resources to handle more network clients and generally heavier loads on their servers.

Situations:

  • A large number of clients connecting to the broker.
    • Generally, the number of clients that can connect to the broker is limited by the number of threads supported by the operating system.
    • NIO => fewer threads per client.
  • A heavy network traffic to the broker.
    • The NIO connector generally offers better performance than the TCP connector.

No comments: