First of all, this is my first post in this forum, bigs thanks for this project.
Here is my question:
We first started with Play 2.4 and liked this framework quite a lot. We have some 350+ handlers in this project, so far so good, we never felt the need for a migration and could answer all of our business needs (until now).
Recently, we are interfacing with another service, written in Spring Boot Webflux framework. (the purpose of this post is not a Play versus Spring, but a real integration question).
As you may know, Spring Boot Webflux offers reactive stack. If we use our traditional Play 2.4 WsClient, we can successfully get our payload from Spring, but in a blocking way.
We then started to break a micro service, with Play 2.7 and pretty much everything latest version. Magic, we can consume Spring in a reactive way!
We even have our Angular front end integrated, we build both frontend and backend in the same project then use play static routes to serve frontend and communicate with backend using the REST interface.
We use Observable on the front end, and quite amazing, we see a full end to end stack, where the webpage stream the results, from a Play 2.7 that is also streaming it results (play.api.http.HttpEntity + play.mvc.Result) over a non blocking HTTP call to a Spring Webflux application feeding Flux. Our business teams really liked that.
Now, here is our question. How can we combine the two? If we brut force copy paste the 2.7 micro service into our 2.4 monolith, as you can imagine, nothing is working, since from the core level, 2.4 is not reactive. Fully breaking a micro service is not quite possible, as Microservice 2.7 have dependencies on the 2.4 monolith. Is there a way to make the two live together inside one same project?
Or maybe a way to have reactivity within the 2.4 monolith?
Thank you for your help.