Example of integration Akka with existing java project

后端 未结 2 1841
庸人自扰
庸人自扰 2021-01-30 15:03

If I already have existing java web application that uses spring and servlet container. What is the proper way to integrate Akka in it?

2条回答
  •  攒了一身酷
    2021-01-30 15:34

    I have come across a similar problem.

    I agree that there is little benefit of adding AKKA to simple web appliaciton with a small number of users.

    But I don't think that it is hard to attach AKKA to existing spring mvc app. In case your project needs to scale you can wrap your @Service layer into actors. Hence, @Controllers do not need to be inside actors.

    Here is a presentation on merging spring with akka: https://www.youtube.com/watch?v=fALUf9BmqYE

    Source code for the presentation: https://github.com/jsuereth/spring-akka-sample/tree/master/src/main/java/org/springframework/samples/travel

提交回复
热议问题