deltanovember
deltanovember

Reputation: 44051

Where should I look for a Scala framework that supports bidirectional asynchronous communication?

I have a single server which can have multiple clients. Each client sends an asynchronous message to the server which immediately routes the message to a third party provider. At some point in the future, the server receives a response from the third party provider which should immediately be routed back to the sending client. I have had a look at Akka but had trouble figuring out how to route messages from the server back to clients at arbitrary points in the future. If I can be given some pointers even to the right parts of documentation I'm happy to take it from there. At the moment I am bewildered by the array of frameworks and options available.

Upvotes: 1

Views: 153

Answers (4)

fmpwizard
fmpwizard

Reputation: 2768

If your clients are browsers, you can use Lift and its comet support. This post gives you one example of doing async work using Lift

Upvotes: -1

Viktor Klang
Viktor Klang

Reputation: 26579

"I have had a look at Akka but had trouble figuring out how to route messages from the server back to clients at arbitrary points in the future."

When a message comes in from a client, store away the reference of the sender, so you can send to it later.

Perhaps if you elaborate on the problem you experienced we can assist?

Cheers, √

Upvotes: 3

Christian
Christian

Reputation: 4593

You could also use atmosphere.

Upvotes: 1

Jed Wesley-Smith
Jed Wesley-Smith

Reputation: 4706

BlueEyes is designed for this kind of workflow.

Upvotes: 2

Related Questions