本文介绍了从Akka / Scala发送出站HTTP请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道如何在Akka中,但是我想要我的基于Akka的网络应用程序还可以通过发送出站呼叫通过HTTP API与Facebook和CouchDB进行通信。这有什么好的做法吗?应该调用异步?
I know how to handle incoming http requests in Akka, but I want my Akka-based web app also to communicate with Facebook and CouchDB through HTTP APIs by sending outbound calls. Is there any good practice of this? Should calls be async?
推荐答案
对于Couch Debasish有SCouchDB:
For Couch Debasish has SCouchDB: https://github.com/debasishg/scouchdb
至于与Facebook说话,我不知道,但是如果要执行异步http呼出呼叫,可以尝试:
As for speaking with Facebook, I do not know, but if you want to do async http outbound calls you can try: https://github.com/AsyncHttpClient/async-http-client
有帮助吗?
这篇关于从Akka / Scala发送出站HTTP请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!