I want to use AWS SQS in my Play 2.4 project.
There are two options at moment:
1. There is a SQS wrapper called https://github.com/kifi/franz which supports reactive way of using that. But it seems not quite popular on Github not sure how mature it is? Whether the developers will continue to maintain it.
2. There is Java SQS SDK, but it doesn't support Scala Future (reactive way). If I want to make it non-blocking, could I use Akka or?
Thanks.
def futureOf[X <: AmazonWebServiceRequest, T](call: (X,AsyncHandler[X, T]) => JuncFuture[T], req: X): Future[T] = { | |
val p = Promise[T]() | |
val h = new AsyncHandler[X, T] { | |
def onError(exception: Exception) { p.complete(Failure(exception)) } | |
def onSuccess(request: X, result: T) { p.complete(Success(result)) } | |
} | |
call(req, h) | |
p.future | |
} | |
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/71a17867-15b8-4e68-a7e9-ece490a81a5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.