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?
This is a really good question, and in fact there is not a single good answer to it.
, . , , . Cassandra, , . , , ? - , .
, , , ? - , .
, , , , JDBC . (, , , , , , PinnedDispatcher).
PinnedDispatcher
JDBC, Future, , .
, , , RabbitMQ, RPC .
, JDBC- . , , "" "JDBC", JDBC?
asnyc-, - . , - JDBC C3P0 . Scala . - , . , , . C3P0