开发者

How to transform a Scala application into a single-instance persistant HTTP service?

开发者 https://www.devze.com 2023-01-23 08:38 出处:网络
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 a

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.

0

精彩评论

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

关注公众号