I have not settled yet with the title of my NSQ reference book. In the process of writing it, these are some articles that I have completed already. (Use #nsqio hashtag on Twitter)
Take note that this is still a work in progress so follow this post for updates!
Meanwhile, this is the tentative Table of Contents (still in flux, may change over time).
- Topics and Channels
- Basic Example
- Balancing Example
- Broadcast Example
- Simulating Consumer Error
- Scenario 1 – Run nsqd and nsqadmin on one node
- Scenario 2 – Scenario 1 + run nsq producer on the same node
- Scenario 3 – Scenario 2 + run nsq consumer on the same node
- Scenario 1 – Run nsqd on one node and nsq producer on another
- Scenario 2 – Run nsqd on one node and nsqadmin on another
- Scenario 3 – Run nsqd on one node and nsqlookupd on another
Assumption: The following scenarios assume you are running nsqd and/or its components on one or more Turnkey Linux VMs (virtual machines) using host-only networking.
Scenario 1: Run nsqd and nsqadmin on one node
Assumption: ip address = 192.168.56.101
1) Run nsqd
- by default, nsqd listens on all network interfaces
- by default, nsqd listens on port 4151 for HTTP clients like nsqadmin
2) Run nsqadmin daemon
- nsqadmin requires –nsqd-http-address or –lookupd-http-address
3) Run nsqadmin UI
On your Web browser, type