انتقل إلى المحتوى
أمين أبوزيد
درس مخطط لهMID-017-L02

البنية الداخلية لـ HikariCP

  • الدرس 2 من 5
  • Mid-level
في هذا الدرس 4 موضوعات

هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.

نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.

في هذا الدرس

know how HikariCP lends and manages connections.

الموضوعات المخطط لها

  • HikariCP is the default pool in Spring Boot.
  • getConnection() takes an idle connection or waits up to connectionTimeout; then it throws.
  • Connections are validated and retired after maxLifetime (set below any database or proxy limit) and idleTimeout (only relevant when minimumIdle < 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.
تفاصيل المخطط المبدئي

عرض عملي

yaml
spring:
  datasource:
    hikari:
      maximum-pool-size: 10
      connection-timeout: 3000
      max-lifetime: 1500000

Verify property names and defaults for your Boot version before recording.

اختبر فهمك

What does close() do on a pooled connection?

أظهر الإجابة

Returns it to the pool.

التطبيق

طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.

المختبر والتمارين الاختبار

تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.

اكتب للبحث في المستويات والمراحل والوحدات والدروس.