3 ms·
> An Akka actor simply must not issue a DB call: it's as simple as that. Must not issue a synchronous db call, if I'm reading you correctly. I assume most DBs
by jamesaguilar 13y ago
> An Akka actor simply must not issue a DB call: it's as simple as that.
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.
- jeremyjh 13y agoThat 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.