Skip to content

feat(adapter/postgres): wip postgres remote adapter#689

Draft
Totodore wants to merge 30 commits intomainfrom
postgres-adapter
Draft

feat(adapter/postgres): wip postgres remote adapter#689
Totodore wants to merge 30 commits intomainfrom
postgres-adapter

Conversation

@Totodore
Copy link
Copy Markdown
Owner

@Totodore Totodore commented Mar 29, 2026

Motivation

Add a postgres adapter implementation for socket.io clusters.

Closes issue #423

TODO:

  • Offload binary / > 8KB payloads to attachment table
  • Implement attachment item pruning
  • Documentation / Examples

@Totodore Totodore added C-Enhancement Related to an enhancement A-postgres-adapter Area related to postgres-adapter labels Mar 29, 2026
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Mar 29, 2026

Merging this PR will not alter performance

✅ 87 untouched benchmarks


Comparing postgres-adapter (4df422d) with main (779de3d)

Open in CodSpeed

Comment thread crates/socketioxide-postgres/src/drivers/mod.rs Fixed
Comment thread crates/socketioxide-postgres/src/drivers/mod.rs Fixed
Comment thread crates/socketioxide-postgres/src/drivers/mod.rs Fixed
Comment thread crates/socketioxide-postgres/src/drivers/mod.rs Fixed
Comment thread crates/socketioxide-postgres/src/drivers/mod.rs Fixed
Comment thread crates/socketioxide-postgres/src/drivers/mod.rs Fixed
Comment thread crates/socketioxide-postgres/src/drivers/mod.rs Fixed
Comment thread crates/socketioxide-postgres/src/drivers/sqlx.rs Fixed
Comment thread crates/socketioxide-postgres/src/lib.rs Fixed
Comment thread crates/socketioxide-postgres/src/lib.rs Fixed
@Totodore Totodore linked an issue Mar 29, 2026 that may be closed by this pull request
Comment thread crates/socketioxide-postgres/src/drivers/mod.rs Fixed
Comment thread crates/socketioxide-postgres/src/drivers/mod.rs Fixed
Comment thread crates/socketioxide-postgres/src/lib.rs Fixed
Comment thread crates/socketioxide-postgres/tests/fixture.rs Fixed
Comment thread crates/socketioxide-postgres/tests/fixture.rs Fixed
Comment thread crates/socketioxide-postgres/tests/fixture.rs Fixed
Comment thread crates/socketioxide-postgres/tests/fixture.rs Fixed
Comment thread crates/socketioxide-postgres/tests/fixture.rs Fixed
Comment thread crates/socketioxide-postgres/tests/fixture.rs Fixed
Comment thread crates/socketioxide-postgres/tests/fixture.rs Fixed
Comment thread crates/socketioxide-postgres/tests/fixture.rs Fixed
Comment thread crates/socketioxide-postgres/tests/fixture.rs Fixed
Comment on lines +49 to +53
fn get_attachment(
&self,
table: &str,
id: i32,
) -> impl Future<Output = Result<Vec<u8>, Self::Error>> + Send;
Comment on lines +49 to +53
fn get_attachment(
&self,
table: &str,
id: i32,
) -> impl Future<Output = Result<Vec<u8>, Self::Error>> + Send;
Comment on lines +54 to +63
pub(crate) fn new<D: Driver>(
local: S,
remote: mpsc::Receiver<ResponsePayload>,
timeout: Duration,
serv_cnt: u16,
req_sid: Sid,
handlers: Arc<Mutex<ResponseHandlers>>,
driver: D,
table: Cow<'static, str>,
) -> Self {
Comment on lines +54 to +63
pub(crate) fn new<D: Driver>(
local: S,
remote: mpsc::Receiver<ResponsePayload>,
timeout: Duration,
serv_cnt: u16,
req_sid: Sid,
handlers: Arc<Mutex<ResponseHandlers>>,
driver: D,
table: Cow<'static, str>,
) -> Self {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-postgres-adapter Area related to postgres-adapter C-Enhancement Related to an enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Postgres adapter

2 participants