Skip to content

0.5.0

Compare
Choose a tag to compare
@mreiferson mreiferson released this 26 Jul 13:37
· 327 commits to master since this release

This release drops the concept of "tasks" in Reader (in favor of a single message handler). This greatly simplifies internal RDY state handling and is a cleaner API as we head towards 1.0.

These changes modify the public API and break backwards compatibility. To ease the transition we've added a LegacyReader class that accepts the previous version's arguments and facilitates instantiating new Reader instances for each task with the same automatic channel naming conventions.

We suggest you begin to migrate towards using the new API directly (LegacyReader will not be in the 1.0 release), but for now the upgrade is as simple as:

from nsq import LegacyReader as Reader

Finally, TLS support is available via tls_v1 and tls_options params to Reader (available in nsqd as of 0.2.22+).

  • #42 - TLS support
  • #39 - distribute requests to lookupd
  • #38 - fix edge case where conn would never get RDY; RDY fairness when # conns > max_in_flight
  • #36/#37 - refactor internal connection, backoff, and RDY handling
  • #29/#34/#35 - refactor public API (drop "tasks"); improve RDY count handling
  • #28/#31 - improve backoff handling