开发者

Sending outbound HTTP request from Akka / Scala

开发者 https://www.devze.com 2023-02-19 13:15 出处:网络
开发者_StackOverflowI 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

开发者_StackOverflowI 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?


For Couch Debasish has SCouchDB: https://github.com/debasishg/scouchdb

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

Does that help?


A little while back, I posted a sample WebGL app using Akka talking to Facebook and Google Maps. It's nothing special, but it may help. You can find it here: https://github.com/dsciamma/fbgl1

0

精彩评论

暂无评论...
验证码 换一张
取 消