RSocket Database (Cassandra or Postgresql) Performance study

323 Views Asked by At

I am trying to use RSocket for Microservices within my org. As we have lot to communicate and fetch from databases like Cassandra and Postgresql, I observed a dip in performance.

When I run a sample Rsocket Client and Rsocket Server that returns a mocked response, I am getting a throughput of 12k TPS. Once I integrate to get the same codebase with Cassandra it is 300 TPS and Postgresql is 400 TPS. If I add HikariCP to Postgresql, it is 700 TPS.

For the same usecase with blocking HTTP it is 800 TPS and non-blocking HTTP is 1900 TPS.

This study is made on Mac Laptop 8 cores, 16 GB, rsocket-java (No Spring or RPC).

I am confused whether RSocket is suited for Microservices usecase or not.

Please provide your experience and any benchmark available for further studies.

0

There are 0 best solutions below