AiSkillz

Early "As-Is" Access - free for the first 20 accounts. 18 of 20 places left: complete registration to claim one. No credit card needed.

← Back to skills
Backend & APIsVia MCPAny / model-agnosticLicense: My own work (all rights reserved)

Homegrown pub/sub (Redis, Postgres, in-process)

Created by CodeCraft LLC

Build, debug and review publish/subscribe messaging on infrastructure you already run

Product and technology names are trademarks of their respective owners, used only to identify what this skill covers. CodeCraft LLC is not affiliated with or endorsed by them.

by Jace (@jamick)v1.4.2 · updated 2026-12-01Report copyright infringement

Description

Build, debug and review publish/subscribe messaging on infrastructure you already run - in-process event buses (Node EventEmitter, .NET Channel and notifications), Redis and Valkey Pub/Sub and sharded pub/sub, Redis Streams with consumer groups (XADD, XREADGROUP, XACK, XPENDING, XAUTOCLAIM, trimming), Postgres LISTEN/NOTIFY and table-backed event logs, fan-out to WebSocket servers across instances, delivery guarantees (at-most-once vs at-least-once), ordering, idempotent consumers, replay, retention, poison messages, connection handling behind poolers, monitoring, and when to graduate to Kafka, RabbitMQ, NATS or a cloud service. Use whenever code uses PUBLISH/SUBSCRIBE, XADD/XREADGROUP, LISTEN/NOTIFY or pg_notify, an EventEmitter or in-memory event bus between features, or the user asks how to broadcast events between services or instances without adding a broker, or reports lost, duplicated or out-of-order events.

#backend#pubsub#homegrown

Included with all-access

$15.00 one-time, permanent access

Get all-access · $12.00/mo, billed yearly

or

Buy 2 or more together for up to 40% off · View cart

You get a licence, not ownership. Access lasts while this skill is available on AiSkillz; if it's removed within 90 days of purchase, we'll send you a copy to keep. Terms

Official and free skills are included with the all-access subscription

Changelog

Subscribers also see which files changed in each version.

v1.4.2Dec 1, 2026Latest

Added

  • README: a **Sources** line listing the official pages the skill is written from, each link checked, so the source-overlap check can run against them.
v1.4.1Nov 29, 2026

Changed

  • Added a contents list to reference files over 100 lines (redis-pubsub-and-streams.md), so a partial read still shows every section.
v1.4.0Nov 28, 2026

Fixed

  • Events-table cursor: a created_at safety lag can still skip rows, because now() is the transaction start time; added a txid xid8 column and the pg_snapshot_xmin(pg_current_snapshot()) filter (tested on Postgres 18).
  • XAUTOCLAIM example now loops on the returned cursor and processes what it claims.
  • Review checklist report format corrected to Level · type · file:line · finding · proposed fix.

Added

  • Redis 8.2+/Valkey 9.2+ group-aware trimming (XTRIM ... ACKED, KEEPREF/DELREF) and XACKDEL; Redis 8.6 IDMP and 8.8 XNACK noted with caveats.
  • Patch-level rule: Redis 2026 security releases (August, September, October); current versions Redis 8.12.0, Valkey 9.2.1.
v1.3.0Nov 20, 2026

Added

  • Review method: every code review starts by mapping the code flows in scope and gives each flow its own sub-agent at high effort, which reviews that flow end to end against this checklist; the main agent merges, re-checks Blockers and de-duplicates. Covers single-flow reviews, nested sub-agents, failed sub-agents and environments without sub-agents.
v1.2.0Nov 6, 2026

Changed

  • Review report rule: reviews that cover changes (a diff, PR or uncommitted work) open with a short "What the changes do" section - factual bullets grouped by purpose, inferred intent marked, deploy or migration impact stated.
v1.1.0Nov 4, 2026

Changed

  • Review report rule at the top of the skill, loaded before any review: one entry per finding as Level · type · file:line · finding · proposed fix, outside facts sourced or marked unverified, and no narrative.
v1.0.1Oct 31, 2026

Changed

  • References updated for renamed skills: supabase is now supabase-platform, eas-workflows is now eas-workflows-ci, skill-creator is now skill-creator-aiskillz.
v1.0.0Oct 19, 2026

Added

  • First release.