<commit_before># NSQPHP

PHP client for [NSQ](https://github.com/bitly/nsq).

### NSQ basics

You can read all about NSQ via the [readme on Github](https://github.com/bitly/nsq),
or via the [Bitly blog post](http://word.bitly.com/post/33232969144/nsq)
describing it. More details on nsqd, nsqlookupd are provided within
each folder within the project.

Here's some thing I have learned:

  - Clustering is provided only in the sense that nsqlookupd will discover
    which machines hosts messages for a particular topic. To consume from a
    cluster, you simply ask an instance of `nslookupd` where to find messages
    and then connect to every `nsqd` it tells you to (this is one of the things
    that makes nsq good).
  - HA (for pub) is easy due to the fact that each `nsqd` instance is isolated;
    you can simply connect to _any_ and send publish your message (so far I
    haven't got a publish interface that achieves this for you, you would
    have to write code to do it like the `test-pub.php` example.
  - Resilience is provided by simply writing to more than one `nsqd` and then<commit_msg>Minor tweak to match current featureset<commit_after># NSQPHP

PHP client for [NSQ](https://github.com/bitly/nsq).

### NSQ basics

You can read all about NSQ via the [readme on Github](https://github.com/bitly/nsq),
or via the [Bitly blog post](http://word.bitly.com/post/33232969144/nsq)
describing it. More details on nsqd, nsqlookupd are provided within
each folder within the project.

Here's some thing I have learned:

  - Clustering is provided only in the sense that nsqlookupd will discover
    which machines hosts messages for a particular topic. To consume from a
    cluster, you simply ask an instance of `nslookupd` where to find messages
    and then connect to every `nsqd` it tells you to (this is one of the things
    that makes nsq good).
  - HA (for pub) is easy due to the fact that each `nsqd` instance is isolated;
    you can simply connect to _any_ and send publish your message (I have built
    this into the client).
  - Resilience is provided by simply writing to more than one `nsqd` and then
{'fraction_non_alphanumeric': 0.06613508442776736, 'fraction_numerical': 0.010318949343339587, 'mean_word_length': 3.7086092715231787, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5024625', 'n_tokens_mistral': 652, 'n_tokens_neox': 620, 'n_words': 317}