Re:No More Callbacks: 10,000 Actors, 10,000 Threads, 10,000 ...
by jeremyjh on Wednesday October 16, 2013 @02:20PM
(#6561239)
That is not a correct assumption. Most DB vendors only provide JDBC drivers. There are some async drivers, but there is no standard for them and availability and quality varies substantially. This problem is repeated for other network libraries - if they weren't written specific for NIO then you have to KNOW that and you have to be sure you run that Actor in it's own thread. Its a leaky abstraction.
Must not issue a synchronous db call, if I'm reading you correctly. I assume most DBs also provide async interfaces, or you could create one yourself.