Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create "Swarm-ful" HTTP server library #7

Open
sanity opened this issue Jun 9, 2011 · 3 comments
Open

Create "Swarm-ful" HTTP server library #7

sanity opened this issue Jun 9, 2011 · 3 comments

Comments

@sanity
Copy link
Owner

sanity commented Jun 9, 2011

The ideal Swarm web framework would treat the open HTTP connection to the web browser as just another Swarm object, referenced through a Ref(), but, of course, tied to a specific computer.

This would mean that a HTTP request could come in, and the resultant continuation could move around to other computers, before coming back to the original computer in order to send the HTTP response.

Most existing Java (and Scala?) web frameworks are unsuitable for this, as typically they'll call a method with HTTP request and response objects, but they expect that when this method returns, that the response is ready to be sent. Unfortunately, this method will not typically be within a continuation "reset {}" block.

@earldouglas
Copy link
Collaborator

Jetty Continuations could provide some good insight into this. An example usage is Akka's Mist.

@earldouglas
Copy link
Collaborator

Also this article

@sanity
Copy link
Owner Author

sanity commented Aug 11, 2011

Indeed, in fact on of my first exposures to continuations on the JVM was the RIFE web framework, which implemented continuations using some kind of bytecode mainipulation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants