Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[rest-dev] Proposal: Create a set of interface, api to standardize http client and Http ConnetionPool
  • From: Angelo Rubini <angelorubini@xxxxxxxxxx>
  • Date: Wed, 26 Feb 2025 13:06:01 +0000
  • Accept-language: it-IT, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=VdCGaUjAKKLJhud6z1tl27seRehafHuFl8ep9bDZRM8=; b=GMG2sLry9aeBNJl+OP/jQ2jQrnHMLfTZ9+m7G9/69ngDL6UWU7ywpBo6UOqXcul7TPkYV3JorLlSPjXGUehsjZTXVs56u9eFIT93ueW4lxwfznO85ZsdJ9MFitWML8GY6fStGxtpOo8hmkX6d6V5pVrz6oyGjdSAmk2DoFl1dHJnZWLtyDCmqS7vCkZOkIORV5fJeLbEIRNeEGd5rEhQzYc+g7lKDdNG09/0X7QZUdaDVsBs9OBqWYV7crc9piM5s0ghjjPwJEdeaYPf/85aMZEDvhm1CUQgk1BKz4LToh3agt7QhMjbhEVORdFKwLwHDA3+h53AK/rd3tkMlYHsBg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UQbwHgVK0wNSLjbQvBmip+c2C7sK8MEIT+SLiGv0jzfAMCpPmpVKC2aQOv61M3QfdcRE6vgbCKIwozrksaJ16+rktZm+jhzBzmTRK5m1oOOJPq1l7bluUMjsW4JLCGnBAnOitu0kKeY3eM4jpqSnzIs6oiAOXNmTDWsU9WPd4bVgvy7UAOBHhu7uPohKGaZKjT17utQj/I9ojvHzocDmLVCyv3neJJDTD6bm6JhToSSdH0N/86QthLL2Ecnh4fWYJKcI0Mc429GO25Q7XtBznxaJTCTyhsycEVMB26eb6Mwq3itDQ2hMnMzbSiKIdVvHwFxMpDaXwEi17x71/k1JBA==
  • Delivered-to: rest-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/rest-dev/>
  • List-help: <mailto:rest-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/rest-dev>, <mailto:rest-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/rest-dev>, <mailto:rest-dev-request@eclipse.org?subject=unsubscribe>
  • Msip_labels:
  • Thread-index: AQHbiCwo3h7T3j/Y4k2VNWZJZ+8kMLNZTTK3gAACapSAADz13Q==
  • Thread-topic: Proposal: Create a set of interface,api to standardize http client and Http ConnetionPool

Hello everyone,

I recently posted a proposal to standardize interface/api for http/https client implementations and the possible pooling mechanism.
Could it be a hook to leverage a standard API inside Jakarta RESTful Web Services that can also be leveraged by the standard MicroProfile Rest Client?

" into jdk-net channel
Proposal: Create a set of api,interface to standardize http clients (like internal jdk client, apache httpClient etc).
And also create, as done for jdbc, an example of an Interface as a DataSource: The DataSource interface is implemented by a driver vendor. There are three types of implementations:    1)Basic implementation -- produces a standard Connection object    2)Connection pooling implementation -- produces a Connection object that will automatically participate in connection pooling. This implementation works with a middle-tier connection pooling manager.        to also have a standard for the creation and management of http connection pools."
How do you think?

Regards
Angelo Rubini



Da: Angelo Rubini <angelorubini@xxxxxxxxxx>
Inviato: mercoledì 26 febbraio 2025 10:14
A: net-dev@xxxxxxxxxxx <net-dev@xxxxxxxxxxx>
Oggetto: Proposal: Create a set of interface,api to standardize http client and Http ConnetionPool
 
Hello everyone,

for a long time there have been various different implementations of clients to manage http and https connections as well as custom solutions,
to manage the connection pools of the same http/https connections.

Wouldn't it be a good idea to standardize a set of interfaces and APIs as done for database connections with jdbc and datasource?
It's nice to have an interface similar to https://docs.oracle.com/javase/8/docs/api/javax/sql/DataSource.html for Http Connection and  ConnectionPool.
Proposal: Create a set of api,interface to standardize http clients (like internal jdk client, apache httpClient etc).
And also create, as done for jdbc, an example of an Interface as a DataSource: The DataSource interface is implemented by a driver vendor. There are three types of implementations:    1)Basic implementation -- produces a standard Connection object    2)Connection pooling implementation -- produces a Connection object that will automatically participate in connection pooling. This implementation works with a middle-tier connection pooling manager.        to also have a standard for the creation and management of http connection pools.

How do you think?

Regards
Angelo Rubini


Back to the top