Chat SDK now supports PostgreSQL as a state backend, allowing teams to skip adding Redis to their infrastructure.
- •PostgreSQL joins Redis and ioredis as a production-ready state backend option in Chat SDK
- •The adapter persists subscriptions, distributed locks, and key-value cache state using PostgreSQL
- •Uses pg (node-postgres) with raw SQL queries and automatically creates required tables on first connect
- •Supports TTL-based caching, distributed locking across multiple instances, and namespaced state via a configurable key prefix
- •The adapter was based on a community contribution by @bai in PR #154
This summary was automatically generated by AI based on the original article and may not be fully accurate.