In the quickstart guide for Akka Http: https://developer.lightbend.com/guides/akka-http-quickstart-java/http-server.html there is this snippet of code being used:
CompletionStage<ActionPerformed> userCreated = PatternsCS .ask(userRegistryActor, new CreateUser(user), timeout) .thenApply(obj ->(ActionPerformed) obj);
However PatternsCS is deprecated. I’m currently unable to find an alternative when using Akka Http. I’ve found many solutions using Akka but I can’t seem to get my head around how to transfer this into Akka Http.
Any help will be greatly appreciated.