My webapp will need to use multiple database shards, and occasionally need to query these shards in parallel. Are there any web scripting languages that have mature, stable support for parallel non blocking database access? If so, can you point me in the right direction? Free open source is preferred, but I mostly want something that will work.
Threads are fine with me, but I don't require real multi-threading support. All I want is for five 10-second database queries to five different database servers to take 10 seconds and not 50. It doesn't matter to me how many CPUs it actually used.