Can anyone please tell me if the Spring Cloud Feign Client provides or supports Http Connection Pooling, and if so how to configure settings like pool size? I can't seem to find this in the official documentation. Thank you.
相关问题
- Do you need to close the connection you get from j
- How to add an Airflow Pool via environment variabl
- Struggling to create MySQL Connection Pool on Glas
- Hikaricp Oracle connection issue
- Application vs Database Resident Connection Pool
相关文章
- Best way to manage DB connections without JNDI
- JBoss AS 5 database connection pool re-connect rou
- java.sql.SQLRecoverableException: No more data to
- Spring Data Pageable not supported as RequestParam
- ODP.NET Connection Pooling Issues - Fault Tolleran
- How do I get connection pooling working on a PHP-C
- Correct way to implement HTTP Connection Pooling
- Can I use multiple C3P0 datasources for DB instanc
From investigation I will try to answer my own question:
Spring Cloud Feign uses Netflix Feign. Netflix Feign in turn creates connections using java.net.HttpURLConnection which makes use of 'persistent connections' but not a connection pool.
It is possible to override the Client, for example using Apache HttpClient instead, and Netflix provide a library for this (feign-httpclient). When using this approach the connection pool size can be set using SystemProperties.
In Spring Cloud Brixton it seems that if Apache HttpClient or OkHttpClient are available (via @ConditionalOnClass) then they are automatically used.