3 ms·
Bleeding out the akka-ness is a feature, at least if you live in akkaland. For example: path("get_a_list" / PathElement) { externalKey => get {
by yummyfajitas 13y ago
Bleeding out the akka-ness is a feature, at least if you live in akkaland. For example:
path("get_a_list" / PathElement) { externalKey =>
get {
complete {
for {
internalKey <- redis.get("internal_keys_from_external":externalKey)
finalResult <- redis.smembers(internalKey)
} yield (finalResult.toList)
}
}
}
Spray already expects an akka future, as does everything else, so this library fits in perfectly.
- shpxnvz 13y agoAnd it appears to use futures that are part of Scala core (which Akka now uses as well) so I'm not sure how much this can be said to be Akka-ness anyway.