What are the pros and cons of using an embedded server in Spring Boot?

An embedded server bundles Tomcat, Jetty, or Undertow directly inside the Spring Boot JAR, trading some server-level control for a much simpler, more portable deployment model.

Key Points

Example

A team running dozens of small microservices benefits from embedded servers since each service is independently deployable, whereas a large enterprise consolidating many legacy apps onto one shared, centrally administered Tomcat cluster benefits more from external deployment.

Interview Tip

A concise interview answer is

Embedded servers make deployment trivially simple and portable -- one JAR, run with java -jar, which fits microservices and containers well. The tradeoff is less control over shared server-level configuration, which matters more in enterprise setups where many applications need to run on one centrally managed server.

Last updated: 16 July 2026

Previous question: What is the difference between embedded and external application server deployment in Spring Boot?

Next question: You need to migrate an application from an embedded Tomcat to an external Tomcat server. What steps would you follow?

More Spring Boot - Level IV (Advanced) interview questions

All Spring Boot - Level IV (Advanced) questions