# Prestatie-optimalisatie (Spring Boot) > Prestatie-optimalisatie: profiling, caching, lazy loading, paginering, connection pooling, DB-indexering - 30 gespreksvragen - Senior - [Gespreksvragen: Spring Boot](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen.md) ## 1. Wat is HikariCP in de context van Spring Boot? **Antwoord** HikariCP is sinds versie 2.0 de standaard connection pool-manager in Spring Boot. Het biedt uitzonderlijke prestaties dankzij een geoptimaliseerde implementatie (lage overhead, efficiƫnt concurrency-beheer) en wordt algemeen beschouwd als de snelste connection pool op de markt. Spring Boot gebruikt het automatisch wanneer spring-boot-starter-data-jpa of spring-boot-starter-jdbc aanwezig is in de dependencies. ## 2. Welke HikariCP-parameter definieert het maximale aantal verbindingen in de pool? **Antwoord** De parameter maximumPoolSize definieert het maximale aantal verbindingen (actief en inactief) dat HikariCP in de pool zal handhaven. De door HikariCP aanbevolen waarde is over het algemeen gebaseerd op de formule: connections = ((core_count * 2) + effective_spindle_count), vaak tussen 10 en 20 voor typische applicaties. Een te hoge waarde kan de database verzadigen, terwijl een te lage waarde verbindingswachttijden kan veroorzaken. ## 3. Wat is het verschil tussen maximumPoolSize en minimumIdle in HikariCP? **Antwoord** maximumPoolSize definieert het totale maximale aantal verbindingen (actief en inactief) in de pool, terwijl minimumIdle het minimale aantal inactieve verbindingen definieert dat HikariCP permanent handhaaft. HikariCP raadt aan om minimumIdle niet in te stellen en maximumPoolSize de pool te laten beheren (standaardgedrag: minimumIdle = maximumPoolSize), aangezien de pool zich automatisch aanpast aan de belasting om de prestaties te optimaliseren. ## Nog 27 vragen beschikbaar - Welke formule beveelt HikariCP aan om maximumPoolSize te berekenen? - Welke HikariCP-parameter bepaalt de maximale wachttijd om een verbinding uit de pool te verkrijgen? Meld je gratis aan: https://sharpskill.dev/nl/login ## Andere Spring Boot-sollicitatieonderwerpen - [Spring Core - IoC & DI](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/spring-core-ioc-di.md): 22 vragen, Junior - [Spring Boot Auto-Configuration](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/spring-boot-auto-configuration.md): 20 vragen, Junior - [Spring Boot Starters](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/spring-boot-starters.md): 18 vragen, Junior - [Application Properties & YAML](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/application-properties-yml.md): 16 vragen, Junior - [Logging met SLF4J & Logback](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/logging.md): 20 vragen, Junior - [Spring Boot DevTools](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/spring-boot-devtools.md): 15 vragen, Junior - [Spring MVC Basics](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/spring-mvc-basics.md): 20 vragen, Mid-Level - [Spring REST Controllers](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/spring-rest-controllers.md): 20 vragen, Mid-Level - [Request & Response Handling](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/request-response-handling.md): 20 vragen, Mid-Level - [Uitzonderingsafhandeling](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/exception-handling.md): 25 vragen, Mid-Level - [Bean Validation](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/bean-validation.md): 25 vragen, Mid-Level - [Spring Data JPA-basis](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/spring-data-jpa-basics.md): 25 vragen, Mid-Level - [JPA-entiteiten en relaties](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/jpa-entities-relationships.md): 30 vragen, Mid-Level - [JPA-query's](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/jpa-queries.md): 30 vragen, Mid-Level - [Spring Data Repositories](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/spring-data-repositories.md): 25 vragen, Mid-Level - [Spring Security Basis](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/spring-security-basics.md): 25 vragen, Mid-Level - [Spring Boot Actuator](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/spring-boot-actuator.md): 20 vragen, Mid-Level - [Unit testing met JUnit & Mockito](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/testing-junit-mockito.md): 30 vragen, Mid-Level - [Spring Boot testen](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/spring-boot-testing.md): 30 vragen, Mid-Level - [Profiles en Environment](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/profiles-environment.md): 20 vragen, Mid-Level - [RestTemplate en WebClient](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/resttemplate-webclient.md): 24 vragen, Mid-Level - [Async & Scheduling](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/async-scheduling.md): 25 vragen, Mid-Level - [Caching met Spring](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/caching.md): 25 vragen, Mid-Level - [Spring WebFlux (Reactive)](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/spring-webflux.md): 25 vragen, Mid-Level - [Spring-transacties](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/transactions.md): 30 vragen, Senior - [Geavanceerde authenticatie en autorisatie](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/authentication-authorization.md): 30 vragen, Senior - [JWT & stateless beveiliging](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/jwt-stateless-security.md): 20 vragen, Senior - [OAuth2 & Authorization Server](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/oauth2-authorization-server.md): 20 vragen, Senior - [Spring Boot en Docker](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/spring-boot-docker.md): 19 vragen, Senior - [Microservices met Spring](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/microservices-basics.md): 25 vragen, Senior - [Spring Cloud Config](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/spring-cloud-config.md): 19 vragen, Senior - [GraalVM Native Images](https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/graalvm-native-images.md): 20 vragen, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/nl/technologies/spring-boot/sollicitatievragen/performance-optimization