البنية الداخلية لـ HikariCP
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
know how HikariCP lends and manages connections.
الموضوعات المخطط لها
- HikariCP is the default pool in Spring Boot.
getConnection()takes an idle connection or waits up toconnectionTimeout; then it throws.- Connections are validated and retired after
maxLifetime(set below any database or proxy limit) andidleTimeout(only relevant whenminimumIdle < maximumPoolSize). close()on a pooled connection returns it to the pool; it does not close the socket.- Metrics (active, idle, pending, timeouts) are exposed through Micrometer.
تفاصيل المخطط المبدئي
عرض عملي
spring:
datasource:
hikari:
maximum-pool-size: 10
connection-timeout: 3000
max-lifetime: 1500000Verify property names and defaults for your Boot version before recording.
اختبر فهمك
What does close() do on a pooled connection?
أظهر الإجابة
Returns it to the pool.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.