CONNECTION POOL
คือ ช่วยให้ Client สามารถเชื่อมต่อกับ Database โดยการใช้ Connection ที่เตรียมไว้ให้แล้วใน Pool (Cache ของ connection) ทำให้ Client ไม่ต้องสร้าง Connection ใหม่ทุกครั้งที่มีการเชื่อมต่อกับ Database
ทุกครั้งที่มีการร้องขอที่จะเชื่อมต่อกับ Database ตัว Connection Pool จะทำการค้นหา Connection ที่ว่างขึ้นมาให้ หากมี Connection เข้ามาเยอะ (อย่างกรณี High concurrent) ตัว Pool ก็จะทำการเข้าคิว (จำนวนคิวและจำนวน Connection ขึ้นกับเราตั้งค่า) รอจนกว่าจะมี Connection ว่างจึงจะหยิบ connection นั้นมาให้คนที่ต่อคิวทำงาน (วิธีการเลือกคนในคิวขึ้นมาทำงานขึ้นกับ Algorithm ของ Pool นั้นๆ) เมื่อ Client จบการทำงานที่ต้องใช้ Connection นั้นแล้ว ตัว Pool ก็จะนำ connection นั้นคืนกับเข้า Pool เพื่อให้คนอื่นเอาไปใช้ต่อ
ิby:http://magickiat.wordpress.com/
มารู้จักกับ connection pool กัน
Moderators: mindphp, ผู้ดูแลกระดาน
-
- Similar Topics
- Replies
- Views
- Last post
-
-
ดู log ของ application pool
by jataz2 » 22/07/2016 10:01 am » in Programming - C/C++ & java & Python - 1 Replies
- 533 Views
-
Last post by jataz2
22/07/2016 2:33 pm
-
-
-
มารู้จักกับ LibGDX กันเถอะ !!
by M030 » 16/09/2015 6:04 pm » in Mobile Programming - Android, iOS, Window Phone - 0 Replies
- 2110 Views
-
Last post by M030
16/09/2015 6:04 pm
-
-
- 0 Replies
- 248 Views
-
Last post by khwanchanok
22/05/2019 5:52 pm
-
-
มารู้จักกับ Genymotion กันเถอะ โปรแกรมจำลองเครื่องโทรศัพท์
by Sarunyou » 02/06/2016 5:39 pm » in Mobile Programming - Android, iOS, Window Phone - 0 Replies
- 2696 Views
-
Last post by Sarunyou
02/06/2016 5:39 pm
-
-
-
มารู้จักกับ Nimbus Screen Capture
by M032 » 13/01/2016 5:00 pm » in Microsoft Office Knowledge & line & Etc - 0 Replies
- 895 Views
-
Last post by M032
13/01/2016 5:00 pm
-
-
-
มารู้จักกับ Android Application กันเถอะ
by M030 » 19/09/2015 6:03 pm » in Microsoft Office Knowledge & line & Etc - 0 Replies
- 514 Views
-
Last post by M030
19/09/2015 6:03 pm
-
Who is online
Users browsing this forum: Google Adsense [Bot] and 8 guests