commucat-storage

Crates.iocommucat-storage
lib.rscommucat-storage
version1.0.103
created_at2025-09-24 04:12:18.821125+00
updated_at2025-10-22 00:40:51.350363+00
descriptionPostgreSQL and Redis data access layer for CommuCat
homepagehttps://commucat.tech
repositoryhttps://github.com/ducheved/commucat
max_upload_size
id1852485
size137,858
MrDucheved (Ducheved)

documentation

README

commucat-storage

Asynchronous PostgreSQL + Redis data access layer for CommuCat.

  • Migrations (migrations/*.sql) provision users, devices, pairing tokens, relay queue, secret rotation, federation peers, outbox and audit logs.
  • connect, migrate, readiness wire up the database backends and run lightweight health probes.
  • CRUD helpers for users/devices, CSR-based rotations, pairing flows, groups and federation peers.
  • Offline message delivery via relay_queue/InboxOffset, presence and routing state in Redis (presence:*, route:*).
  • Federation support: enqueue/claim/delete/reschedule helpers for the federation_outbox, idempotency tracking and access to device rotation history.

Limitations: there is no connection pooling yet and the Redis connection is wrapped in a Mutex, so production setups should introduce pooling/backpressure before heavy use.

Commit count: 41

cargo fmt