Chat SDK adds PostgreSQL state adapter
Chat SDK adds a PostgreSQL state adapter supporting subscriptions, distributed locks, and TTL-based key-value caching, letting teams avoid adding Redis to their infrastructure.
Chat SDK now supports PostgreSQL as a state backend, joining Redis and ioredis as a production-ready option with the new .PostgreSQL adapter Teams that already run PostgreSQL can persist subscriptions, distributed locks, and key-value cache state without adding Redis to their infrastructure. Try the PostgreSQL state adapter today: The adapter uses (node-postgres) with raw SQL queries and automatically creates the required tables on first connect.
It supports TTL-based caching, distributed locking across multiple instances, and namespaced state via a configurable key prefix.pg Read the to get started or browse the .documentationadapters directory Special thanks to , whose community contribution in laid the groundwork for this adapter.@baiPR #154 Read more