# Difference between Redis and Postgresql action cable adapters for Turbo Stream broadcasting in Rails?

**URL:** <https://discuss.hotwired.dev/t/difference-between-redis-and-postgresql-action-cable-adapters-for-turbo-stream-broadcasting-in-rails/4785>\
**Category:** General\
**Created:** [February 8, 2023, 3:33am UTC](https://discuss.hotwired.dev/t/difference-between-redis-and-postgresql-action-cable-adapters-for-turbo-stream-broadcasting-in-rails/4785 "2023-02-08T03:33:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![6temes](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/6temes/32/3085_2.png) [@6temes](https://discuss.hotwired.dev/u/6temes)\
**Post date:** [February 10, 2023, 2:51pm UTC](https://discuss.hotwired.dev/t/difference-between-redis-and-postgresql-action-cable-adapters-for-turbo-stream-broadcasting-in-rails/4785/2 "2023-02-10T14:51:12Z")

</div>

The limit of 8KB in the Postgres adapter will give you troubles sooner than later.

The Postgres adapter made sense when ActionCable was used to send short messages, but its payload size limit makes it impractical when sending HTML over the wire.

Been there, seen `PG::InvalidParameterValue: ERROR: payload string too long`. 🙂

---

_[View the full topic](https://discuss.hotwired.dev/t/difference-between-redis-and-postgresql-action-cable-adapters-for-turbo-stream-broadcasting-in-rails/4785)._
