---
lang: en
title: 'API docs: pooling'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/extensions/pooling
permalink: /doc/en/lb4/apidocs.pooling.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/pooling](./pooling.md)

## pooling package

[@loopback/pooling](https://github.com/loopbackio/loopback-next/tree/master/extensions/pooling)

## Classes

|  Class | Description |
|  --- | --- |
|  [PoolingService](./pooling.poolingservice.md) | A singleton service to maintain a pool of resources. This pool service can be bound to different keys to represent multiple pools. Each binding is a singleton so that the state stays the same for injections into multiple instances for other artifacts. |

## Functions

|  Function | Description |
|  --- | --- |
|  [createPooledBindingFactory(bindingAddress)](./pooling.createpooledbindingfactory.md) | Create a function to return a pooled binding factory |
|  [getPooledValue(poolingService, requestCtx)](./pooling.getpooledvalue.md) | Acquire a resource from the pooling service or pool |

## Interfaces

|  Interface | Description |
|  --- | --- |
|  [Poolable](./pooling.poolable.md) | Life cycle methods that a poolable resource can optionally implement so that they can be triggered by the pooling service |
|  [PooledValue](./pooling.pooledvalue.md) | Pooled resource instance |
|  [PoolFactory](./pooling.poolfactory.md) | Factory for the pooling service |
|  [PoolingServiceOptions](./pooling.poolingserviceoptions.md) | Options to configure a resource pool |


