How to transform a Scala application into a single-instance persistant HTTP service?
I've developed an application making intense use of runtime memoization.
I'd like to convert it into a web service. The service main class should exist in one instance to process all the requests and not shut down but wait (keeping all the values) for further requests when all requests are processed.
There are meant to be only a couple of clients (all of them 100% trusted) and pretty rare requests (so I don't need a too serious application server and can even survive without requests processing parallelization), but heavy data-crunching-intense tasks to be made on req开发者_开发百科uests (unless all needed data is already memoized).
I have no skill of web/EE Java and servlets yet.
Easiest would be to embed Jetty.
精彩评论