Skip to content

Illustrates a puzzle to be worked through in understanding Iteratees in the Play Framework.

Notifications You must be signed in to change notification settings

langley/wsPuzzle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WsPuzzle: How do we use Itertees/Enumerators the right way in a Play web service?
=====================================

The puzzle can basically be expressed as "How do we create a web service that invokes another web service with a POST request and use the Play Iteratee/Enumerator framework to deliver the response"? 

The original code illustrates a lack of understanding of how the Concurrent.broadcast pair of Enumerator/Iteratee works. Comments in the code explain the flaw in understanding and why the solution addresses it. 

The solution illustrates how to create a web service that can POST to another web service, retrieve the results and send them back to the original client in a non-blocking, non-threaded way w/out having to read the whole response into memory first! 

This short solution illustrates the power and elegance of  Iteratees/Enumeratees/Enumerators in a concrete way within a functioning Play! web application. 

**Props to James Roper for clarifying how to implement this!** 

About

Illustrates a puzzle to be worked through in understanding Iteratees in the Play Framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages