How useful is JDBC in an event driven program?

I am writing an event-driven architecture in Scala and I need to manage it using a database.

I was wondering if using JDBC supporting only synchronous calls would be a good solution to my problem?

I was thinking of writing an asynchronous shell for JDBC calls, but would this really solve my problems with a thread that is blocking due to a database call?

+4
source share
3 answers

This is a really good question, and in fact there is not a single good answer to it.

, . , , . Cassandra, , . , , ? - , .

, , , ? - , .

, , , , JDBC . (, , , , , , PinnedDispatcher).

JDBC, Future, , .

, , , RabbitMQ, RPC .

+3

, JDBC- . , , "" "JDBC", JDBC?

0

asnyc-, - . , - JDBC C3P0 . Scala . - , . , , . C3P0

-1
source

All Articles