0

I have number of servers and database on each of them. I want to deploy Spring Boot application on each server to get information I need and gather all in presentation layer which would be in Angular.

How should I manage HTTP calls from Angular to Spring Boot ?

Is there any specific approach I should take ? Example would be great.

1
  • 1
    Take a look at the JHipster tool. It's a code generator that creates applications with Spring Boot backend and Angular frontend. You can use it to see how the services are exposed in the backend / invoked in the frontend, or you could also build your actual application with the generator. Commented Mar 29, 2020 at 3:47

1 Answer 1

1

You would follow the MVC pattern for each Spring Boot application you want to deploy on the servers. I recommend this tutorial.

Your Angular application would send HTTP requests for the corresponding SpringBoot application's endpoint (app1/getUsers) for example. Check here.

You can use the classic Servlet architecture with the synchronous blocking module of thread per request.

Or, you can use Spring's new Reactor stack for asynchronous handling of requests.

Check here for comparison.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.