Skip to content
This repository was archived by the owner on Feb 12, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Interface:
### Publishing

The client supports publishing to N `nsqd` servers, which must be specified
explicitly by hostname. Unlike with subscription, there is no facility to
explicitly by hostname. Unlike with subscription, there is no facility to
lookup the hostnames via `nslookupd` (and we probably wouldn't want to anyway
for speed).

Expand Down Expand Up @@ -270,8 +270,8 @@ The client currently ships with one; a fixed delay strategy:
### De-duplication on subscribe

Recall that to achieve HA we simply duplicate on publish into
two different `nsqd` servers. To perform de-duplication we simply need to
supply an object that implements `nsqphp\Dedupe\DedupeInterface`.
two different `nsqd` servers. To perform de-duplication we simply need to
supply an object that implements `nsqphp\Dedupe\DedupeInterface`.

public function containsAndAdd($topic, $channel, MessageInterface $msg);

Expand Down Expand Up @@ -338,7 +338,7 @@ file:
$dedupe = new nsqphp\Dedupe\OppositeOfBloomFilterMemcached;
$lookup = new nsqphp\Lookup\Nsqlookupd;
$logger = new nsqphp\Logger\Stderr;
$nsq = new nsqphp\nsqphp($lookup, $dedupe, $requeueStrategy, logger);
$nsq = new nsqphp\nsqphp($lookup, $dedupe, $requeueStrategy, $logger);
$nsq->subscribe('mytopic', 'somechannel', 'msgCallback')
->run();

Expand All @@ -355,4 +355,3 @@ file:

- main client based on event loop (powered by React PHP) to allow us to
handle multiple connections to multiple `nsqd` instances