3

Does cockroachdb support spring reactive api?

I know none of the relational data base support reactive api as they are blocking calls. is coachroach DB any different?

Chandresh Mishra
  • 1,081
  • 3
  • 24
  • 45
  • I'm not sure the question makes sense; it's more about the driver to the database - have you tried `R2DBC` for Postgres when working with CockroachDB? – Martin Gallagher Apr 27 '20 at 11:51
  • yes, I know. I am in the discovery phase and new to the cockroach. Does R2DBC supports non-blocking or reactive API? I am trying to decide whether to use the spring reactive API or not with Cockroach DB. Last time when I used the reactive API, I have to drop it as I was using oracle database. – Chandresh Mishra Apr 27 '20 at 13:47
  • https://r2dbc.io/ Spring support & Postgres protocol. – Martin Gallagher Apr 27 '20 at 13:51

1 Answers1

4

Yes, CockroachDB supports Spring reactive API. Under the hood, CockroachDB relies on PostgreSQL Java drivers to connect to applications. So, if there is a Java driver that works with Spring reactive and Postgres, it will work with CockroachDB too.

Jordan Lewis
  • 16,900
  • 4
  • 29
  • 46