Andrew
Andrew

Reputation: 85

Can you launch a Spring boot rest application on multiple threads?

I have a Rest application built with spring boot. I want to launch multiple instances of that application to different threads in order to reduce the time needed to run the integration test.

Has anybody tried this before, if yes how did you do it and what did you use? If it is not possible could you please explain why?

Thank you in advance.

Upvotes: 0

Views: 816

Answers (1)

BigGinDaHouse
BigGinDaHouse

Reputation: 1346

As said already, it is multithreaded already and it is not about having multiple instances or threads to increase the speed of your integration tests, it is about tests themselves.

As an example, if your REST application using SQL database, make sure that your tests are using H2 database and etc, etc.

Also, check how often your Spring Context is start/stoping.

Upvotes: 1

Related Questions